Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Pet
- func AgeEQ(v int) predicate.Pet
- func AgeGT(v int) predicate.Pet
- func AgeGTE(v int) predicate.Pet
- func AgeIn(vs ...int) predicate.Pet
- func AgeLT(v int) predicate.Pet
- func AgeLTE(v int) predicate.Pet
- func AgeNEQ(v int) predicate.Pet
- func AgeNotIn(vs ...int) predicate.Pet
- func And(predicates ...predicate.Pet) predicate.Pet
- func HasCategories() predicate.Pet
- func HasCategoriesWith(preds ...predicate.Category) predicate.Pet
- func HasCollar() predicate.Pet
- func HasCollarWith(preds ...predicate.Collar) predicate.Pet
- func HasFriends() predicate.Pet
- func HasFriendsWith(preds ...predicate.Pet) predicate.Pet
- func HasOwner() predicate.Pet
- func HasOwnerWith(preds ...predicate.Owner) predicate.Pet
- func ID(id string) predicate.Pet
- func IDEQ(id string) predicate.Pet
- func IDGT(id string) predicate.Pet
- func IDGTE(id string) predicate.Pet
- func IDIn(ids ...string) predicate.Pet
- func IDLT(id string) predicate.Pet
- func IDLTE(id string) predicate.Pet
- func IDNEQ(id string) predicate.Pet
- func IDNotIn(ids ...string) 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 ValidColumn(column string) bool
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" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // EdgeCollar holds the string denoting the collar edge name in mutations. EdgeCollar = "collar" // 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" // CollarTable is the table that holds the collar relation/edge. CollarTable = "collars" // CollarInverseTable is the table name for the Collar entity. // It exists in this package in order to avoid circular dependency with the "collar" package. CollarInverseTable = "collars" // CollarColumn is the table column denoting the collar relation/edge. CollarColumn = "pet_collar" // 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 Owner entity. // It exists in this package in order to avoid circular dependency with the "owner" package. OwnerInverseTable = "owners" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_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, FieldAge, }
Columns holds all SQL columns for pet fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var ForeignKeys = []string{
"owner_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 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 HasCollarWith ¶
HasCollarWith applies the HasEdge predicate on the "collar" 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 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.