Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v float64) predicate.Pet
- func AgeEQ(v float64) predicate.Pet
- func AgeGT(v float64) predicate.Pet
- func AgeGTE(v float64) predicate.Pet
- func AgeIn(vs ...float64) predicate.Pet
- func AgeLT(v float64) predicate.Pet
- func AgeLTE(v float64) predicate.Pet
- func AgeNEQ(v float64) predicate.Pet
- func AgeNotIn(vs ...float64) predicate.Pet
- func And(predicates ...predicate.Pet) predicate.Pet
- func HasOwner() predicate.Pet
- func HasOwnerWith(preds ...predicate.User) predicate.Pet
- func HasTeam() predicate.Pet
- func HasTeamWith(preds ...predicate.User) 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 Nickname(v string) predicate.Pet
- func NicknameContains(v string) predicate.Pet
- func NicknameContainsFold(v string) predicate.Pet
- func NicknameEQ(v string) predicate.Pet
- func NicknameEqualFold(v string) predicate.Pet
- func NicknameGT(v string) predicate.Pet
- func NicknameGTE(v string) predicate.Pet
- func NicknameHasPrefix(v string) predicate.Pet
- func NicknameHasSuffix(v string) predicate.Pet
- func NicknameIn(vs ...string) predicate.Pet
- func NicknameIsNil() predicate.Pet
- func NicknameLT(v string) predicate.Pet
- func NicknameLTE(v string) predicate.Pet
- func NicknameNEQ(v string) predicate.Pet
- func NicknameNotIn(vs ...string) predicate.Pet
- func NicknameNotNil() predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func UUID(v uuid.UUID) predicate.Pet
- func UUIDEQ(v uuid.UUID) predicate.Pet
- func UUIDGT(v uuid.UUID) predicate.Pet
- func UUIDGTE(v uuid.UUID) predicate.Pet
- func UUIDIn(vs ...uuid.UUID) predicate.Pet
- func UUIDIsNil() predicate.Pet
- func UUIDLT(v uuid.UUID) predicate.Pet
- func UUIDLTE(v uuid.UUID) predicate.Pet
- func UUIDNEQ(v uuid.UUID) predicate.Pet
- func UUIDNotIn(vs ...uuid.UUID) predicate.Pet
- func UUIDNotNil() 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" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the pet in the database. Table = "pet" // TeamTable is the table that holds the team relation/edge. TeamTable = "pet" // TeamInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. TeamInverseTable = "users" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "user_team" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "pet" // 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" )
Variables ¶
var Columns = []string{ FieldID, FieldAge, FieldName, FieldUUID, FieldNickname, }
Columns holds all SQL columns for pet fields.
var ( // DefaultAge holds the default value on creation for the "age" field. DefaultAge float64 )
var ForeignKeys = []string{
"user_pets",
"user_team",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "pet" table and are not defined as standalone fields in the schema.
Functions ¶
func Age ¶ added in v0.9.0
Age applies equality check predicate on the "age" field. It's identical to AgeEQ.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTeamWith ¶
HasTeamWith applies the HasEdge predicate on the "team" 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 Nickname ¶ added in v0.10.0
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶ added in v0.10.0
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶ added in v0.10.0
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶ added in v0.10.0
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶ added in v0.10.0
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶ added in v0.10.0
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶ added in v0.10.0
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶ added in v0.10.0
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶ added in v0.10.0
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶ added in v0.10.0
NicknameIn applies the In predicate on the "nickname" field.
func NicknameIsNil ¶ added in v0.10.0
NicknameIsNil applies the IsNil predicate on the "nickname" field.
func NicknameLT ¶ added in v0.10.0
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶ added in v0.10.0
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶ added in v0.10.0
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶ added in v0.10.0
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NicknameNotNil ¶ added in v0.10.0
NicknameNotNil applies the NotNil predicate on the "nickname" field.
func UUIDNotNil ¶
UUIDNotNil applies the NotNil predicate on the "uuid" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.