Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Reference) predicate.Reference
- func Hash(v string) predicate.Reference
- func HashContains(v string) predicate.Reference
- func HashContainsFold(v string) predicate.Reference
- func HashEQ(v string) predicate.Reference
- func HashEqualFold(v string) predicate.Reference
- func HashGT(v string) predicate.Reference
- func HashGTE(v string) predicate.Reference
- func HashHasPrefix(v string) predicate.Reference
- func HashHasSuffix(v string) predicate.Reference
- func HashIn(vs ...string) predicate.Reference
- func HashLT(v string) predicate.Reference
- func HashLTE(v string) predicate.Reference
- func HashNEQ(v string) predicate.Reference
- func HashNotIn(vs ...string) predicate.Reference
- func ID(id int) predicate.Reference
- func IDEQ(id int) predicate.Reference
- func IDGT(id int) predicate.Reference
- func IDGTE(id int) predicate.Reference
- func IDIn(ids ...int) predicate.Reference
- func IDLT(id int) predicate.Reference
- func IDLTE(id int) predicate.Reference
- func IDNEQ(id int) predicate.Reference
- func IDNotIn(ids ...int) predicate.Reference
- func Not(p predicate.Reference) predicate.Reference
- func Or(predicates ...predicate.Reference) predicate.Reference
- func Package(v string) predicate.Reference
- func PackageContains(v string) predicate.Reference
- func PackageContainsFold(v string) predicate.Reference
- func PackageEQ(v string) predicate.Reference
- func PackageEqualFold(v string) predicate.Reference
- func PackageGT(v string) predicate.Reference
- func PackageGTE(v string) predicate.Reference
- func PackageHasPrefix(v string) predicate.Reference
- func PackageHasSuffix(v string) predicate.Reference
- func PackageIn(vs ...string) predicate.Reference
- func PackageLT(v string) predicate.Reference
- func PackageLTE(v string) predicate.Reference
- func PackageNEQ(v string) predicate.Reference
- func PackageNotIn(vs ...string) predicate.Reference
- func Ref(v string) predicate.Reference
- func RefContains(v string) predicate.Reference
- func RefContainsFold(v string) predicate.Reference
- func RefEQ(v string) predicate.Reference
- func RefEqualFold(v string) predicate.Reference
- func RefGT(v string) predicate.Reference
- func RefGTE(v string) predicate.Reference
- func RefHasPrefix(v string) predicate.Reference
- func RefHasSuffix(v string) predicate.Reference
- func RefIn(vs ...string) predicate.Reference
- func RefLT(v string) predicate.Reference
- func RefLTE(v string) predicate.Reference
- func RefNEQ(v string) predicate.Reference
- func RefNotIn(vs ...string) predicate.Reference
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the reference type in the database. Label = "reference" // 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" // FieldRef holds the string denoting the ref field in the database. FieldRef = "ref" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // Table holds the table name of the reference in the database. Table = "references" )
Variables ¶
var Columns = []string{ FieldID, FieldPackage, FieldRef, FieldHash, }
Columns holds all SQL columns for reference fields.
Functions ¶
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 RefContains ¶
RefContains applies the Contains predicate on the "ref" field.
func RefContainsFold ¶
RefContainsFold applies the ContainsFold predicate on the "ref" field.
func RefEqualFold ¶
RefEqualFold applies the EqualFold predicate on the "ref" field.
func RefHasPrefix ¶
RefHasPrefix applies the HasPrefix predicate on the "ref" field.
func RefHasSuffix ¶
RefHasSuffix applies the HasSuffix predicate on the "ref" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.