Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Object) predicate.Object
- func Content(v []byte) predicate.Object
- func ContentEQ(v []byte) predicate.Object
- func ContentGT(v []byte) predicate.Object
- func ContentGTE(v []byte) predicate.Object
- func ContentIn(vs ...[]byte) predicate.Object
- func ContentLT(v []byte) predicate.Object
- func ContentLTE(v []byte) predicate.Object
- func ContentNEQ(v []byte) predicate.Object
- func ContentNotIn(vs ...[]byte) predicate.Object
- func Hash(v string) predicate.Object
- func HashContains(v string) predicate.Object
- func HashContainsFold(v string) predicate.Object
- func HashEQ(v string) predicate.Object
- func HashEqualFold(v string) predicate.Object
- func HashGT(v string) predicate.Object
- func HashGTE(v string) predicate.Object
- func HashHasPrefix(v string) predicate.Object
- func HashHasSuffix(v string) predicate.Object
- func HashIn(vs ...string) predicate.Object
- func HashLT(v string) predicate.Object
- func HashLTE(v string) predicate.Object
- func HashNEQ(v string) predicate.Object
- func HashNotIn(vs ...string) predicate.Object
- func ID(id int) predicate.Object
- func IDEQ(id int) predicate.Object
- func IDGT(id int) predicate.Object
- func IDGTE(id int) predicate.Object
- func IDIn(ids ...int) predicate.Object
- func IDLT(id int) predicate.Object
- func IDLTE(id int) predicate.Object
- func IDNEQ(id int) predicate.Object
- func IDNotIn(ids ...int) predicate.Object
- func Not(p predicate.Object) predicate.Object
- func Or(predicates ...predicate.Object) predicate.Object
- func Package(v string) predicate.Object
- func PackageContains(v string) predicate.Object
- func PackageContainsFold(v string) predicate.Object
- func PackageEQ(v string) predicate.Object
- func PackageEqualFold(v string) predicate.Object
- func PackageGT(v string) predicate.Object
- func PackageGTE(v string) predicate.Object
- func PackageHasPrefix(v string) predicate.Object
- func PackageHasSuffix(v string) predicate.Object
- func PackageIn(vs ...string) predicate.Object
- func PackageLT(v string) predicate.Object
- func PackageLTE(v string) predicate.Object
- func PackageNEQ(v string) predicate.Object
- func PackageNotIn(vs ...string) predicate.Object
- func Type(v int8) predicate.Object
- func TypeEQ(v int8) predicate.Object
- func TypeGT(v int8) predicate.Object
- func TypeGTE(v int8) predicate.Object
- func TypeIn(vs ...int8) predicate.Object
- func TypeLT(v int8) predicate.Object
- func TypeLTE(v int8) predicate.Object
- func TypeNEQ(v int8) predicate.Object
- func TypeNotIn(vs ...int8) predicate.Object
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldPackage, FieldType, FieldHash, FieldContent, }
Columns holds all SQL columns for object fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Package ¶
Package applies equality check predicate on the "package" field. It's identical to PackageEQ.
func PackageContains ¶
PackageContains applies the Contains predicate on the "package" field.
func PackageContainsFold ¶
PackageContainsFold applies the ContainsFold predicate on the "package" field.
func PackageEqualFold ¶
PackageEqualFold applies the EqualFold predicate on the "package" field.
func PackageGTE ¶
PackageGTE applies the GTE predicate on the "package" field.
func PackageHasPrefix ¶
PackageHasPrefix applies the HasPrefix predicate on the "package" field.
func PackageHasSuffix ¶
PackageHasSuffix applies the HasSuffix predicate on the "package" field.
func PackageLTE ¶
PackageLTE applies the LTE predicate on the "package" field.
func PackageNEQ ¶
PackageNEQ applies the NEQ predicate on the "package" field.
func PackageNotIn ¶
PackageNotIn applies the NotIn predicate on the "package" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.