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 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 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 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 State
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" // FieldAge holds the string denoting the age vertex property in the database. FieldAge = "age" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldNickname holds the string denoting the nickname vertex property in the database. FieldNickname = "nickname" // FieldPhone holds the string denoting the phone vertex property in the database. FieldPhone = "phone" // FieldBuffer holds the string denoting the buffer vertex property in the database. FieldBuffer = "buffer" // FieldTitle holds the string denoting the title vertex property in the database. FieldTitle = "title" // FieldNewName holds the string denoting the new_name vertex property in the database. FieldNewName = "renamed" // FieldBlob holds the string denoting the blob vertex property in the database. FieldBlob = "blob" // FieldState holds the string denoting the state vertex property in the database. FieldState = "state" // 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" // 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 = "users" // 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 = "user_pets" )
Variables ¶
var ( // 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, FieldAge, FieldName, FieldNickname, FieldPhone, FieldBuffer, FieldTitle, FieldNewName, FieldBlob, FieldState, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_pets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the User type.
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 HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" 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 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 "s" 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.