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 HasCategories() predicate.Pet
- func HasCategoriesWith(preds ...predicate.Category) predicate.Pet
- func HasFriends() predicate.Pet
- func HasFriendsWith(preds ...predicate.Pet) predicate.Pet
- func HasOwner() predicate.Pet
- func HasOwnerWith(preds ...predicate.User) 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 HeightIsNil() 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 HeightNotNil() 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 Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func TagID(v []byte) predicate.Pet
- func TagIDEQ(v []byte) predicate.Pet
- func TagIDGT(v []byte) predicate.Pet
- func TagIDGTE(v []byte) predicate.Pet
- func TagIDIn(vs ...[]byte) predicate.Pet
- func TagIDIsNil() predicate.Pet
- func TagIDLT(v []byte) predicate.Pet
- func TagIDLTE(v []byte) predicate.Pet
- func TagIDNEQ(v []byte) predicate.Pet
- func TagIDNotIn(vs ...[]byte) predicate.Pet
- func TagIDNotNil() predicate.Pet
- func ValidColumn(column string) bool
- func Weight(v int) predicate.Pet
- func WeightEQ(v int) predicate.Pet
- func WeightGT(v int) predicate.Pet
- func WeightGTE(v int) predicate.Pet
- func WeightIn(vs ...int) predicate.Pet
- func WeightIsNil() predicate.Pet
- func WeightLT(v int) predicate.Pet
- func WeightLTE(v int) predicate.Pet
- func WeightNEQ(v int) predicate.Pet
- func WeightNotIn(vs ...int) predicate.Pet
- func WeightNotNil() predicate.Pet
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldTagID holds the string denoting the tag_id field in the database. FieldTagID = "tag_id" // FieldHeight holds the string denoting the height field in the database. FieldHeight = "height" // EdgeCategories holds the string denoting the categories edge name in mutations. EdgeCategories = "categories" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // 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" // CategoriesTable is the table that holds the categories relation/edge. The primary key declared below. CategoriesTable = "category_pets" // CategoriesInverseTable is the table name for the Category entity. // It exists in this package in order to avoid circular dependency with the "category" package. CategoriesInverseTable = "categories" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pets" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_pets" // FriendsTable is the table that holds the friends relation/edge. The primary key declared below. FriendsTable = "pet_friends" )
Variables ¶
var ( // CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the // primary key for the categories relation (M2M). CategoriesPrimaryKey = []string{"category_id", "pet_id"} // FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the // primary key for the friends relation (M2M). FriendsPrimaryKey = []string{"pet_id", "friend_id"} )
var Columns = []string{ FieldID, FieldName, FieldWeight, FieldBirthday, FieldTagID, FieldHeight, }
Columns holds all SQL columns for pet fields.
var ForeignKeys = []string{
"user_pets",
}
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 HasCategories ¶
HasCategories applies the HasEdge predicate on the "categories" edge.
func HasCategoriesWith ¶
HasCategoriesWith applies the HasEdge predicate on the "categories" 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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Height ¶
Height applies equality check predicate on the "height" field. It's identical to HeightEQ.
func HeightIsNil ¶
HeightIsNil applies the IsNil predicate on the "height" field.
func HeightNotIn ¶
HeightNotIn applies the NotIn predicate on the "height" field.
func HeightNotNil ¶
HeightNotNil applies the NotNil 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 TagID ¶
TagID applies equality check predicate on the "tag_id" field. It's identical to TagIDEQ.
func TagIDIsNil ¶
TagIDIsNil applies the IsNil predicate on the "tag_id" field.
func TagIDNotIn ¶
TagIDNotIn applies the NotIn predicate on the "tag_id" field.
func TagIDNotNil ¶
TagIDNotNil applies the NotNil predicate on the "tag_id" field.
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.
Types ¶
This section is empty.