Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Owner
- func AgeEQ(v int) predicate.Owner
- func AgeGT(v int) predicate.Owner
- func AgeGTE(v int) predicate.Owner
- func AgeIn(vs ...int) predicate.Owner
- func AgeLT(v int) predicate.Owner
- func AgeLTE(v int) predicate.Owner
- func AgeNEQ(v int) predicate.Owner
- func AgeNotIn(vs ...int) predicate.Owner
- func And(predicates ...predicate.Owner) predicate.Owner
- func HasPets() predicate.Owner
- func HasPetsWith(preds ...predicate.Pet) predicate.Owner
- func ID(id uuid.UUID) predicate.Owner
- func IDEQ(id uuid.UUID) predicate.Owner
- func IDGT(id uuid.UUID) predicate.Owner
- func IDGTE(id uuid.UUID) predicate.Owner
- func IDIn(ids ...uuid.UUID) predicate.Owner
- func IDLT(id uuid.UUID) predicate.Owner
- func IDLTE(id uuid.UUID) predicate.Owner
- func IDNEQ(id uuid.UUID) predicate.Owner
- func IDNotIn(ids ...uuid.UUID) predicate.Owner
- func Name(v string) predicate.Owner
- func NameContains(v string) predicate.Owner
- func NameContainsFold(v string) predicate.Owner
- func NameEQ(v string) predicate.Owner
- func NameEqualFold(v string) predicate.Owner
- func NameGT(v string) predicate.Owner
- func NameGTE(v string) predicate.Owner
- func NameHasPrefix(v string) predicate.Owner
- func NameHasSuffix(v string) predicate.Owner
- func NameIn(vs ...string) predicate.Owner
- func NameLT(v string) predicate.Owner
- func NameLTE(v string) predicate.Owner
- func NameNEQ(v string) predicate.Owner
- func NameNotIn(vs ...string) predicate.Owner
- func Not(p predicate.Owner) predicate.Owner
- func Or(predicates ...predicate.Owner) predicate.Owner
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the owner type in the database. Label = "owner" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // EdgePets holds the string denoting the pets edge name in mutations. EdgePets = "pets" // Table holds the table name of the owner in the database. Table = "owners" // PetsTable is the table that holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "owner_pets" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, FieldAge, }
Columns holds all SQL columns for owner fields.
View Source
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.