Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.User
- func AgeEQ(v int) predicate.User
- func AgeGT(v int) predicate.User
- func AgeGTE(v int) predicate.User
- func AgeIn(vs ...int) predicate.User
- func AgeLT(v int) predicate.User
- func AgeLTE(v int) predicate.User
- func AgeNEQ(v int) predicate.User
- func AgeNotIn(vs ...int) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Blob(v []byte) predicate.User
- func BlobEQ(v []byte) predicate.User
- func BlobGT(v []byte) predicate.User
- func BlobGTE(v []byte) predicate.User
- func BlobIn(vs ...[]byte) predicate.User
- func BlobIsNil() predicate.User
- func BlobLT(v []byte) predicate.User
- func BlobLTE(v []byte) predicate.User
- func BlobNEQ(v []byte) predicate.User
- func BlobNotIn(vs ...[]byte) predicate.User
- func BlobNotNil() predicate.User
- func Buffer(v []byte) predicate.User
- func BufferEQ(v []byte) predicate.User
- func BufferGT(v []byte) predicate.User
- func BufferGTE(v []byte) predicate.User
- func BufferIn(vs ...[]byte) predicate.User
- func BufferIsNil() predicate.User
- func BufferLT(v []byte) predicate.User
- func BufferLTE(v []byte) predicate.User
- func BufferNEQ(v []byte) predicate.User
- func BufferNotIn(vs ...[]byte) predicate.User
- func BufferNotNil() predicate.User
- func HasCar() predicate.User
- func HasCarWith(preds ...predicate.Car) predicate.User
- func HasFriends() predicate.User
- func HasFriendsWith(preds ...predicate.User) predicate.User
- func HasPets() predicate.User
- func HasPetsWith(preds ...predicate.Pet) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func MixedEnumEQ(v MixedEnum) predicate.User
- func MixedEnumIn(vs ...MixedEnum) predicate.User
- func MixedEnumNEQ(v MixedEnum) predicate.User
- func MixedEnumNotIn(vs ...MixedEnum) predicate.User
- func MixedEnumValidator(me MixedEnum) error
- func MixedString(v string) predicate.User
- func MixedStringContains(v string) predicate.User
- func MixedStringContainsFold(v string) predicate.User
- func MixedStringEQ(v string) predicate.User
- func MixedStringEqualFold(v string) predicate.User
- func MixedStringGT(v string) predicate.User
- func MixedStringGTE(v string) predicate.User
- func MixedStringHasPrefix(v string) predicate.User
- func MixedStringHasSuffix(v string) predicate.User
- func MixedStringIn(vs ...string) predicate.User
- func MixedStringLT(v string) predicate.User
- func MixedStringLTE(v string) predicate.User
- func MixedStringNEQ(v string) predicate.User
- func MixedStringNotIn(vs ...string) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func NewName(v string) predicate.User
- func NewNameContains(v string) predicate.User
- func NewNameContainsFold(v string) predicate.User
- func NewNameEQ(v string) predicate.User
- func NewNameEqualFold(v string) predicate.User
- func NewNameGT(v string) predicate.User
- func NewNameGTE(v string) predicate.User
- func NewNameHasPrefix(v string) predicate.User
- func NewNameHasSuffix(v string) predicate.User
- func NewNameIn(vs ...string) predicate.User
- func NewNameIsNil() predicate.User
- func NewNameLT(v string) predicate.User
- func NewNameLTE(v string) predicate.User
- func NewNameNEQ(v string) predicate.User
- func NewNameNotIn(vs ...string) predicate.User
- func NewNameNotNil() predicate.User
- func Nickname(v string) predicate.User
- func NicknameContains(v string) predicate.User
- func NicknameContainsFold(v string) predicate.User
- func NicknameEQ(v string) predicate.User
- func NicknameEqualFold(v string) predicate.User
- func NicknameGT(v string) predicate.User
- func NicknameGTE(v string) predicate.User
- func NicknameHasPrefix(v string) predicate.User
- func NicknameHasSuffix(v string) predicate.User
- func NicknameIn(vs ...string) predicate.User
- func NicknameLT(v string) predicate.User
- func NicknameLTE(v string) predicate.User
- func NicknameNEQ(v string) predicate.User
- func NicknameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Phone(v string) predicate.User
- func PhoneContains(v string) predicate.User
- func PhoneContainsFold(v string) predicate.User
- func PhoneEQ(v string) predicate.User
- func PhoneEqualFold(v string) predicate.User
- func PhoneGT(v string) predicate.User
- func PhoneGTE(v string) predicate.User
- func PhoneHasPrefix(v string) predicate.User
- func PhoneHasSuffix(v string) predicate.User
- func PhoneIn(vs ...string) predicate.User
- func PhoneLT(v string) predicate.User
- func PhoneLTE(v string) predicate.User
- func PhoneNEQ(v string) predicate.User
- func PhoneNotIn(vs ...string) predicate.User
- func StateEQ(v State) predicate.User
- func StateIn(vs ...State) predicate.User
- func StateIsNil() predicate.User
- func StateNEQ(v State) predicate.User
- func StateNotIn(vs ...State) predicate.User
- func StateNotNil() predicate.User
- func StateValidator(s State) error
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusIsNil() predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusNotNil() predicate.User
- func StatusValidator(s Status) error
- func Title(v string) predicate.User
- func TitleContains(v string) predicate.User
- func TitleContainsFold(v string) predicate.User
- func TitleEQ(v string) predicate.User
- func TitleEqualFold(v string) predicate.User
- func TitleGT(v string) predicate.User
- func TitleGTE(v string) predicate.User
- func TitleHasPrefix(v string) predicate.User
- func TitleHasSuffix(v string) predicate.User
- func TitleIn(vs ...string) predicate.User
- func TitleLT(v string) predicate.User
- func TitleLTE(v string) predicate.User
- func TitleNEQ(v string) predicate.User
- func TitleNotIn(vs ...string) predicate.User
- type MixedEnum
- type State
- type Status
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "oid" // FieldMixedString holds the string denoting the mixed_string field in the database. FieldMixedString = "mixed_string" // FieldMixedEnum holds the string denoting the mixed_enum field in the database. FieldMixedEnum = "mixed_enum" // 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" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldBuffer holds the string denoting the buffer field in the database. FieldBuffer = "buffer" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldNewName holds the string denoting the new_name field in the database. FieldNewName = "renamed" // FieldBlob holds the string denoting the blob field in the database. FieldBlob = "blob" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeCar holds the string denoting the car edge name in mutations. EdgeCar = "car" // EdgePets holds the string denoting the pets edge name in mutations. EdgePets = "pets" // EdgeFriends holds the string denoting the friends edge name in mutations. EdgeFriends = "friends" // CarFieldID holds the string denoting the id field of the Car. CarFieldID = "id" // PetFieldID holds the string denoting the id field of the Pet. PetFieldID = "id" // Table holds the table name of the user in the database. Table = "users" // CarTable is the table the holds the car relation/edge. CarTable = "cars" // CarInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. CarInverseTable = "cars" // CarColumn is the table column denoting the car relation/edge. CarColumn = "user_car" // PetsTable is the table the holds the pets relation/edge. PetsTable = "pets" // PetsInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetsInverseTable = "pets" // PetsColumn is the table column denoting the pets relation/edge. PetsColumn = "owner_id" // FriendsTable is the table the holds the friends relation/edge. The primary key declared below. FriendsTable = "friends" )
const DefaultMixedEnum = MixedEnumOn
MixedEnumOn is the default MixedEnum.
Variables ¶
var ( // DefaultMixedString holds the default value on creation for the mixed_string field. DefaultMixedString string // DefaultPhone holds the default value on creation for the phone field. DefaultPhone string // DefaultTitle holds the default value on creation for the title field. DefaultTitle string )
var Columns = []string{ FieldID, FieldMixedString, FieldMixedEnum, FieldAge, FieldName, FieldNickname, FieldPhone, FieldBuffer, FieldTitle, FieldNewName, FieldBlob, FieldState, FieldStatus, }
Columns holds all SQL columns for user fields.
var ( // FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the // primary key for the friends relation (M2M). FriendsPrimaryKey = []string{"user", "friend"} )
Functions ¶
func BlobNotNil ¶
BlobNotNil applies the NotNil predicate on the "blob" field.
func Buffer ¶
Buffer applies equality check predicate on the "buffer" field. It's identical to BufferEQ.
func BufferIsNil ¶
BufferIsNil applies the IsNil predicate on the "buffer" field.
func BufferNotIn ¶
BufferNotIn applies the NotIn predicate on the "buffer" field.
func BufferNotNil ¶
BufferNotNil applies the NotNil predicate on the "buffer" field.
func HasCarWith ¶
HasCarWith applies the HasEdge predicate on the "car" 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 HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" edge with a given conditions (other predicates).
func MixedEnumEQ ¶
MixedEnumEQ applies the EQ predicate on the "mixed_enum" field.
func MixedEnumIn ¶
MixedEnumIn applies the In predicate on the "mixed_enum" field.
func MixedEnumNEQ ¶
MixedEnumNEQ applies the NEQ predicate on the "mixed_enum" field.
func MixedEnumNotIn ¶
MixedEnumNotIn applies the NotIn predicate on the "mixed_enum" field.
func MixedEnumValidator ¶
MixedEnumValidator is a validator for the "mixed_enum" field enum values. It is called by the builders before save.
func MixedString ¶
MixedString applies equality check predicate on the "mixed_string" field. It's identical to MixedStringEQ.
func MixedStringContains ¶
MixedStringContains applies the Contains predicate on the "mixed_string" field.
func MixedStringContainsFold ¶
MixedStringContainsFold applies the ContainsFold predicate on the "mixed_string" field.
func MixedStringEQ ¶
MixedStringEQ applies the EQ predicate on the "mixed_string" field.
func MixedStringEqualFold ¶
MixedStringEqualFold applies the EqualFold predicate on the "mixed_string" field.
func MixedStringGT ¶
MixedStringGT applies the GT predicate on the "mixed_string" field.
func MixedStringGTE ¶
MixedStringGTE applies the GTE predicate on the "mixed_string" field.
func MixedStringHasPrefix ¶
MixedStringHasPrefix applies the HasPrefix predicate on the "mixed_string" field.
func MixedStringHasSuffix ¶
MixedStringHasSuffix applies the HasSuffix predicate on the "mixed_string" field.
func MixedStringIn ¶
MixedStringIn applies the In predicate on the "mixed_string" field.
func MixedStringLT ¶
MixedStringLT applies the LT predicate on the "mixed_string" field.
func MixedStringLTE ¶
MixedStringLTE applies the LTE predicate on the "mixed_string" field.
func MixedStringNEQ ¶
MixedStringNEQ applies the NEQ predicate on the "mixed_string" field.
func MixedStringNotIn ¶
MixedStringNotIn applies the NotIn predicate on the "mixed_string" 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 NewName ¶
NewName applies equality check predicate on the "new_name" field. It's identical to NewNameEQ.
func NewNameContains ¶
NewNameContains applies the Contains predicate on the "new_name" field.
func NewNameContainsFold ¶
NewNameContainsFold applies the ContainsFold predicate on the "new_name" field.
func NewNameEqualFold ¶
NewNameEqualFold applies the EqualFold predicate on the "new_name" field.
func NewNameGTE ¶
NewNameGTE applies the GTE predicate on the "new_name" field.
func NewNameHasPrefix ¶
NewNameHasPrefix applies the HasPrefix predicate on the "new_name" field.
func NewNameHasSuffix ¶
NewNameHasSuffix applies the HasSuffix predicate on the "new_name" field.
func NewNameIsNil ¶
NewNameIsNil applies the IsNil predicate on the "new_name" field.
func NewNameLTE ¶
NewNameLTE applies the LTE predicate on the "new_name" field.
func NewNameNEQ ¶
NewNameNEQ applies the NEQ predicate on the "new_name" field.
func NewNameNotIn ¶
NewNameNotIn applies the NotIn predicate on the "new_name" field.
func NewNameNotNil ¶
NewNameNotNil applies the NotNil predicate on the "new_name" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func StateIsNil ¶
StateIsNil applies the IsNil predicate on the "state" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateNotNil ¶
StateNotNil applies the NotNil predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.