Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Collar) predicate.Collar
- func ColorEQ(v Color) predicate.Collar
- func ColorIn(vs ...Color) predicate.Collar
- func ColorNEQ(v Color) predicate.Collar
- func ColorNotIn(vs ...Color) predicate.Collar
- func ColorValidator(c Color) error
- func HasPet() predicate.Collar
- func HasPetWith(preds ...predicate.Pet) predicate.Collar
- func ID(id int) predicate.Collar
- func IDEQ(id int) predicate.Collar
- func IDGT(id int) predicate.Collar
- func IDGTE(id int) predicate.Collar
- func IDIn(ids ...int) predicate.Collar
- func IDLT(id int) predicate.Collar
- func IDLTE(id int) predicate.Collar
- func IDNEQ(id int) predicate.Collar
- func IDNotIn(ids ...int) predicate.Collar
- func Not(p predicate.Collar) predicate.Collar
- func Or(predicates ...predicate.Collar) predicate.Collar
- func ValidColumn(column string) bool
- type Color
Constants ¶
View Source
const ( // Label holds the string label denoting the collar type in the database. Label = "collar" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // EdgePet holds the string denoting the pet edge name in mutations. EdgePet = "pet" // Table holds the table name of the collar in the database. Table = "collars" // PetTable is the table that holds the pet relation/edge. PetTable = "collars" // PetInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetInverseTable = "pets" // PetColumn is the table column denoting the pet relation/edge. PetColumn = "pet_collar" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldColor, }
Columns holds all SQL columns for collar fields.
View Source
var ForeignKeys = []string{
"pet_collar",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "collars" table and are not defined as standalone fields in the schema.
Functions ¶
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func ColorValidator ¶
ColorValidator is a validator for the "color" field enum values. It is called by the builders before save.
func HasPetWith ¶
HasPetWith applies the HasEdge predicate on the "pet" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
Click to show internal directories.
Click to hide internal directories.