object

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the object type in the database.
	Label = "object"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPackage holds the string denoting the package field in the database.
	FieldPackage = "package"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// Table holds the table name of the object in the database.
	Table = "objects"
)

Variables

Columns holds all SQL columns for object fields.

Functions

func And

func And(predicates ...predicate.Object) predicate.Object

And groups predicates with the AND operator between them.

func Content

func Content(v []byte) predicate.Object

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentEQ

func ContentEQ(v []byte) predicate.Object

ContentEQ applies the EQ predicate on the "content" field.

func ContentGT

func ContentGT(v []byte) predicate.Object

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v []byte) predicate.Object

ContentGTE applies the GTE predicate on the "content" field.

func ContentIn

func ContentIn(vs ...[]byte) predicate.Object

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v []byte) predicate.Object

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v []byte) predicate.Object

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v []byte) predicate.Object

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...[]byte) predicate.Object

ContentNotIn applies the NotIn predicate on the "content" field.

func Hash

func Hash(v string) predicate.Object

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Object

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Object

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Object

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Object

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Object

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Object

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Object

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Object

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Object

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Object

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Object

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Object

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Object

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int) predicate.Object

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Object

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Object

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Object

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Object

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Object

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Object

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Object

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Object

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Object) predicate.Object

Or groups predicates with the OR operator between them.

func Package

func Package(v string) predicate.Object

Package applies equality check predicate on the "package" field. It's identical to PackageEQ.

func PackageContains

func PackageContains(v string) predicate.Object

PackageContains applies the Contains predicate on the "package" field.

func PackageContainsFold

func PackageContainsFold(v string) predicate.Object

PackageContainsFold applies the ContainsFold predicate on the "package" field.

func PackageEQ

func PackageEQ(v string) predicate.Object

PackageEQ applies the EQ predicate on the "package" field.

func PackageEqualFold

func PackageEqualFold(v string) predicate.Object

PackageEqualFold applies the EqualFold predicate on the "package" field.

func PackageGT

func PackageGT(v string) predicate.Object

PackageGT applies the GT predicate on the "package" field.

func PackageGTE

func PackageGTE(v string) predicate.Object

PackageGTE applies the GTE predicate on the "package" field.

func PackageHasPrefix

func PackageHasPrefix(v string) predicate.Object

PackageHasPrefix applies the HasPrefix predicate on the "package" field.

func PackageHasSuffix

func PackageHasSuffix(v string) predicate.Object

PackageHasSuffix applies the HasSuffix predicate on the "package" field.

func PackageIn

func PackageIn(vs ...string) predicate.Object

PackageIn applies the In predicate on the "package" field.

func PackageLT

func PackageLT(v string) predicate.Object

PackageLT applies the LT predicate on the "package" field.

func PackageLTE

func PackageLTE(v string) predicate.Object

PackageLTE applies the LTE predicate on the "package" field.

func PackageNEQ

func PackageNEQ(v string) predicate.Object

PackageNEQ applies the NEQ predicate on the "package" field.

func PackageNotIn

func PackageNotIn(vs ...string) predicate.Object

PackageNotIn applies the NotIn predicate on the "package" field.

func Type

func Type(v int8) predicate.Object

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeEQ

func TypeEQ(v int8) predicate.Object

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT

func TypeGT(v int8) predicate.Object

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v int8) predicate.Object

TypeGTE applies the GTE predicate on the "type" field.

func TypeIn

func TypeIn(vs ...int8) predicate.Object

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v int8) predicate.Object

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v int8) predicate.Object

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v int8) predicate.Object

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...int8) predicate.Object

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL