Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pet) predicate.Pet
- func Birthday(v time.Time) predicate.Pet
- func BirthdayEQ(v time.Time) predicate.Pet
- func BirthdayGT(v time.Time) predicate.Pet
- func BirthdayGTE(v time.Time) predicate.Pet
- func BirthdayIn(vs ...time.Time) predicate.Pet
- func BirthdayIsNil() predicate.Pet
- func BirthdayLT(v time.Time) predicate.Pet
- func BirthdayLTE(v time.Time) predicate.Pet
- func BirthdayNEQ(v time.Time) predicate.Pet
- func BirthdayNotIn(vs ...time.Time) predicate.Pet
- func BirthdayNotNil() predicate.Pet
- func Castrated(v bool) predicate.Pet
- func CastratedEQ(v bool) predicate.Pet
- func CastratedNEQ(v bool) predicate.Pet
- func Chip(v uuid.UUID) predicate.Pet
- func ChipEQ(v uuid.UUID) predicate.Pet
- func ChipGT(v uuid.UUID) predicate.Pet
- func ChipGTE(v uuid.UUID) predicate.Pet
- func ChipIn(vs ...uuid.UUID) predicate.Pet
- func ChipLT(v uuid.UUID) predicate.Pet
- func ChipLTE(v uuid.UUID) predicate.Pet
- func ChipNEQ(v uuid.UUID) predicate.Pet
- func ChipNotIn(vs ...uuid.UUID) predicate.Pet
- func HasBadge() predicate.Pet
- func HasBadgeWith(preds ...predicate.Badge) predicate.Pet
- func HasChildren() predicate.Pet
- func HasChildrenWith(preds ...predicate.Pet) predicate.Pet
- func HasFriends() predicate.Pet
- func HasFriendsWith(preds ...predicate.Pet) predicate.Pet
- func HasMentor() predicate.Pet
- func HasMentorWith(preds ...predicate.Pet) predicate.Pet
- func HasParent() predicate.Pet
- func HasParentWith(preds ...predicate.Pet) predicate.Pet
- func HasPlayGroups() predicate.Pet
- func HasPlayGroupsWith(preds ...predicate.PlayGroup) predicate.Pet
- func HasProtege() predicate.Pet
- func HasProtegeWith(preds ...predicate.Pet) predicate.Pet
- func HasSpouse() predicate.Pet
- func HasSpouseWith(preds ...predicate.Pet) predicate.Pet
- func HasToys() predicate.Pet
- func HasToysWith(preds ...predicate.Toy) predicate.Pet
- func Height(v int) predicate.Pet
- func HeightEQ(v int) predicate.Pet
- func HeightGT(v int) predicate.Pet
- func HeightGTE(v int) predicate.Pet
- func HeightIn(vs ...int) predicate.Pet
- func HeightLT(v int) predicate.Pet
- func HeightLTE(v int) predicate.Pet
- func HeightNEQ(v int) predicate.Pet
- func HeightNotIn(vs ...int) predicate.Pet
- func ID(id int) predicate.Pet
- func IDEQ(id int) predicate.Pet
- func IDGT(id int) predicate.Pet
- func IDGTE(id int) predicate.Pet
- func IDIn(ids ...int) predicate.Pet
- func IDLT(id int) predicate.Pet
- func IDLTE(id int) predicate.Pet
- func IDNEQ(id int) predicate.Pet
- func IDNotIn(ids ...int) predicate.Pet
- func Name(v string) predicate.Pet
- func NameContains(v string) predicate.Pet
- func NameContainsFold(v string) predicate.Pet
- func NameEQ(v string) predicate.Pet
- func NameEqualFold(v string) predicate.Pet
- func NameGT(v string) predicate.Pet
- func NameGTE(v string) predicate.Pet
- func NameHasPrefix(v string) predicate.Pet
- func NameHasSuffix(v string) predicate.Pet
- func NameIn(vs ...string) predicate.Pet
- func NameLT(v string) predicate.Pet
- func NameLTE(v string) predicate.Pet
- func NameNEQ(v string) predicate.Pet
- func NameNotIn(vs ...string) predicate.Pet
- func NicknamesIsNil() predicate.Pet
- func NicknamesNotNil() predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func SexEQ(v Sex) predicate.Pet
- func SexIn(vs ...Sex) predicate.Pet
- func SexNEQ(v Sex) predicate.Pet
- func SexNotIn(vs ...Sex) predicate.Pet
- func SexValidator(s Sex) error
- func ValidColumn(column string) bool
- func Weight(v float64) predicate.Pet
- func WeightEQ(v float64) predicate.Pet
- func WeightGT(v float64) predicate.Pet
- func WeightGTE(v float64) predicate.Pet
- func WeightIn(vs ...float64) predicate.Pet
- func WeightIsNil() predicate.Pet
- func WeightLT(v float64) predicate.Pet
- func WeightLTE(v float64) predicate.Pet
- func WeightNEQ(v float64) predicate.Pet
- func WeightNotIn(vs ...float64) predicate.Pet
- func WeightNotNil() predicate.Pet
- type Sex
Constants ¶
const ( // Label holds the string label denoting the pet type in the database. Label = "pet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHeight holds the string denoting the height field in the database. FieldHeight = "height" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldCastrated holds the string denoting the castrated field in the database. FieldCastrated = "castrated" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldNicknames holds the string denoting the nicknames field in the database. FieldNicknames = "nicknames" // FieldSex holds the string denoting the sex field in the database. FieldSex = "sex" // FieldChip holds the string denoting the chip field in the database. FieldChip = "chip" // EdgeBadge holds the string denoting the badge edge name in mutations. EdgeBadge = "badge" // EdgeProtege holds the string denoting the protege edge name in mutations. EdgeProtege = "protege" // EdgeMentor holds the string denoting the mentor edge name in mutations. EdgeMentor = "mentor" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeToys holds the string denoting the toys edge name in mutations. EdgeToys = "toys" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgePlayGroups holds the string denoting the play_groups edge name in mutations. EdgePlayGroups = "play_groups" // EdgeFriends holds the string denoting the friends edge name in mutations. EdgeFriends = "friends" // Table holds the table name of the pet in the database. Table = "pets" // BadgeTable is the table that holds the badge relation/edge. BadgeTable = "badges" // BadgeInverseTable is the table name for the Badge entity. // It exists in this package in order to avoid circular dependency with the "badge" package. BadgeInverseTable = "badges" // BadgeColumn is the table column denoting the badge relation/edge. BadgeColumn = "pet_badge" // ProtegeTable is the table that holds the protege relation/edge. ProtegeTable = "pets" // ProtegeColumn is the table column denoting the protege relation/edge. ProtegeColumn = "pet_mentor" // MentorTable is the table that holds the mentor relation/edge. MentorTable = "pets" // MentorColumn is the table column denoting the mentor relation/edge. MentorColumn = "pet_mentor" // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "pets" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "pet_spouse" // ToysTable is the table that holds the toys relation/edge. ToysTable = "toys" // ToysInverseTable is the table name for the Toy entity. // It exists in this package in order to avoid circular dependency with the "toy" package. ToysInverseTable = "toys" // ToysColumn is the table column denoting the toys relation/edge. ToysColumn = "pet_toys" // ParentTable is the table that holds the parent relation/edge. ParentTable = "pets" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "pet_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "pets" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "pet_children" // PlayGroupsTable is the table that holds the play_groups relation/edge. The primary key declared below. PlayGroupsTable = "pet_play_groups" // PlayGroupsInverseTable is the table name for the PlayGroup entity. // It exists in this package in order to avoid circular dependency with the "playgroup" package. PlayGroupsInverseTable = "play_groups" // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "pet_friends" )
Variables ¶
var ( // PlayGroupsPrimaryKey and PlayGroupsColumn2 are the table columns denoting the // primary key for the play_groups relation (M2M). PlayGroupsPrimaryKey = []string{"pet_id", "play_group_id"} // FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the // primary key for the friends relation (M2M). FriendsPrimaryKey = []string{"pet_id", "friend_id"} )
var ( // HeightValidator is a validator for the "height" field. It is called by the builders before save. HeightValidator func(int) error // WeightValidator is a validator for the "weight" field. It is called by the builders before save. WeightValidator func(float64) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultChip holds the default value on creation for the "chip" field. DefaultChip func() uuid.UUID )
var Columns = []string{ FieldID, FieldHeight, FieldWeight, FieldCastrated, FieldName, FieldBirthday, FieldNicknames, FieldSex, FieldChip, }
Columns holds all SQL columns for pet fields.
var ForeignKeys = []string{
"pet_mentor",
"pet_spouse",
"pet_children",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "pets" table and are not defined as standalone fields in the schema.
Functions ¶
func Birthday ¶
Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
func BirthdayEQ ¶
BirthdayEQ applies the EQ predicate on the "birthday" field.
func BirthdayGT ¶
BirthdayGT applies the GT predicate on the "birthday" field.
func BirthdayGTE ¶
BirthdayGTE applies the GTE predicate on the "birthday" field.
func BirthdayIn ¶
BirthdayIn applies the In predicate on the "birthday" field.
func BirthdayIsNil ¶
BirthdayIsNil applies the IsNil predicate on the "birthday" field.
func BirthdayLT ¶
BirthdayLT applies the LT predicate on the "birthday" field.
func BirthdayLTE ¶
BirthdayLTE applies the LTE predicate on the "birthday" field.
func BirthdayNEQ ¶
BirthdayNEQ applies the NEQ predicate on the "birthday" field.
func BirthdayNotIn ¶
BirthdayNotIn applies the NotIn predicate on the "birthday" field.
func BirthdayNotNil ¶
BirthdayNotNil applies the NotNil predicate on the "birthday" field.
func Castrated ¶
Castrated applies equality check predicate on the "castrated" field. It's identical to CastratedEQ.
func CastratedEQ ¶
CastratedEQ applies the EQ predicate on the "castrated" field.
func CastratedNEQ ¶
CastratedNEQ applies the NEQ predicate on the "castrated" field.
func HasBadgeWith ¶
HasBadgeWith applies the HasEdge predicate on the "badge" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasFriends ¶
HasFriends applies the HasEdge predicate on the "friends" edge.
func HasFriendsWith ¶
HasFriendsWith applies the HasEdge predicate on the "friends" edge with a given conditions (other predicates).
func HasMentorWith ¶
HasMentorWith applies the HasEdge predicate on the "mentor" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasPlayGroups ¶
HasPlayGroups applies the HasEdge predicate on the "play_groups" edge.
func HasPlayGroupsWith ¶
HasPlayGroupsWith applies the HasEdge predicate on the "play_groups" edge with a given conditions (other predicates).
func HasProtege ¶
HasProtege applies the HasEdge predicate on the "protege" edge.
func HasProtegeWith ¶
HasProtegeWith applies the HasEdge predicate on the "protege" edge with a given conditions (other predicates).
func HasSpouseWith ¶
HasSpouseWith applies the HasEdge predicate on the "spouse" edge with a given conditions (other predicates).
func HasToysWith ¶
HasToysWith applies the HasEdge predicate on the "toys" edge with a given conditions (other predicates).
func Height ¶
Height applies equality check predicate on the "height" field. It's identical to HeightEQ.
func HeightNotIn ¶
HeightNotIn applies the NotIn predicate on the "height" field.
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 NicknamesIsNil ¶
NicknamesIsNil applies the IsNil predicate on the "nicknames" field.
func NicknamesNotNil ¶
NicknamesNotNil applies the NotNil predicate on the "nicknames" field.
func SexValidator ¶
SexValidator is a validator for the "sex" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightIsNil ¶
WeightIsNil applies the IsNil predicate on the "weight" field.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
func WeightNotNil ¶
WeightNotNil applies the NotNil predicate on the "weight" field.