Documentation ¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.User
- func AddressContains(v string) predicate.User
- func AddressContainsFold(v string) predicate.User
- func AddressEQ(v string) predicate.User
- func AddressEqualFold(v string) predicate.User
- func AddressGT(v string) predicate.User
- func AddressGTE(v string) predicate.User
- func AddressHasPrefix(v string) predicate.User
- func AddressHasSuffix(v string) predicate.User
- func AddressIn(vs ...string) predicate.User
- func AddressIsNil() predicate.User
- func AddressLT(v string) predicate.User
- func AddressLTE(v string) predicate.User
- func AddressNEQ(v string) predicate.User
- func AddressNotIn(vs ...string) predicate.User
- func AddressNotNil() predicate.User
- func Age(v int32) predicate.User
- func AgeEQ(v int32) predicate.User
- func AgeGT(v int32) predicate.User
- func AgeGTE(v int32) predicate.User
- func AgeIn(vs ...int32) predicate.User
- func AgeLT(v int32) predicate.User
- func AgeLTE(v int32) predicate.User
- func AgeNEQ(v int32) predicate.User
- func AgeNotIn(vs ...int32) 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 Description(v string) predicate.User
- func DescriptionContains(v string) predicate.User
- func DescriptionContainsFold(v string) predicate.User
- func DescriptionEQ(v string) predicate.User
- func DescriptionEqualFold(v string) predicate.User
- func DescriptionGT(v string) predicate.User
- func DescriptionGTE(v string) predicate.User
- func DescriptionHasPrefix(v string) predicate.User
- func DescriptionHasSuffix(v string) predicate.User
- func DescriptionIn(vs ...string) predicate.User
- func DescriptionIsNil() predicate.User
- func DescriptionLT(v string) predicate.User
- func DescriptionLTE(v string) predicate.User
- func DescriptionNEQ(v string) predicate.User
- func DescriptionNotIn(vs ...string) predicate.User
- func DescriptionNotNil() predicate.User
- func HasCar() predicate.User
- func HasCarWith(preds ...predicate.Car) predicate.User
- func HasChildren() predicate.User
- func HasChildrenWith(preds ...predicate.User) predicate.User
- func HasParent() predicate.User
- func HasParentWith(preds ...predicate.User) predicate.User
- func HasSpouse() predicate.User
- func HasSpouseWith(preds ...predicate.User) 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 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 Renamed(v string) predicate.User
- func RenamedContains(v string) predicate.User
- func RenamedContainsFold(v string) predicate.User
- func RenamedEQ(v string) predicate.User
- func RenamedEqualFold(v string) predicate.User
- func RenamedGT(v string) predicate.User
- func RenamedGTE(v string) predicate.User
- func RenamedHasPrefix(v string) predicate.User
- func RenamedHasSuffix(v string) predicate.User
- func RenamedIn(vs ...string) predicate.User
- func RenamedIsNil() predicate.User
- func RenamedLT(v string) predicate.User
- func RenamedLTE(v string) predicate.User
- func RenamedNEQ(v string) predicate.User
- func RenamedNotIn(vs ...string) predicate.User
- func RenamedNotNil() 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 Status(v string) predicate.User
- func StatusContains(v string) predicate.User
- func StatusContainsFold(v string) predicate.User
- func StatusEQ(v string) predicate.User
- func StatusEqualFold(v string) predicate.User
- func StatusGT(v string) predicate.User
- func StatusGTE(v string) predicate.User
- func StatusHasPrefix(v string) predicate.User
- func StatusHasSuffix(v string) predicate.User
- func StatusIn(vs ...string) predicate.User
- func StatusIsNil() predicate.User
- func StatusLT(v string) predicate.User
- func StatusLTE(v string) predicate.User
- func StatusNEQ(v string) predicate.User
- func StatusNotIn(vs ...string) predicate.User
- func StatusNotNil() predicate.User
- func ValidColumn(column string) bool
- func Workplace(v string) predicate.User
- func WorkplaceContains(v string) predicate.User
- func WorkplaceContainsFold(v string) predicate.User
- func WorkplaceEQ(v string) predicate.User
- func WorkplaceEqualFold(v string) predicate.User
- func WorkplaceGT(v string) predicate.User
- func WorkplaceGTE(v string) predicate.User
- func WorkplaceHasPrefix(v string) predicate.User
- func WorkplaceHasSuffix(v string) predicate.User
- func WorkplaceIn(vs ...string) predicate.User
- func WorkplaceIsNil() predicate.User
- func WorkplaceLT(v string) predicate.User
- func WorkplaceLTE(v string) predicate.User
- func WorkplaceNEQ(v string) predicate.User
- func WorkplaceNotIn(vs ...string) predicate.User
- func WorkplaceNotNil() 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 field in the database. FieldAge = "age" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldRenamed holds the string denoting the renamed field in the database. FieldRenamed = "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" // FieldWorkplace holds the string denoting the workplace field in the database. FieldWorkplace = "workplace" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeCar holds the string denoting the car edge name in mutations. EdgeCar = "car" // CarFieldID holds the string denoting the ID field of the Car. CarFieldID = "id" // Table holds the table name of the user in the database. Table = "users" // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "user_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "users" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "user_children" // SpouseTable is the table that holds the spouse relation/edge. SpouseTable = "users" // SpouseColumn is the table column denoting the spouse relation/edge. SpouseColumn = "user_spouse" // CarTable is the table that 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" )
const DefaultState = StateLoggedIn
StateLoggedIn is the default value of the State enum.
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // BlobValidator is a validator for the "blob" field. It is called by the builders before save. BlobValidator func([]byte) error // WorkplaceValidator is a validator for the "workplace" field. It is called by the builders before save. WorkplaceValidator func(string) error )
var Columns = []string{ FieldID, FieldAge, FieldName, FieldDescription, FieldNickname, FieldAddress, FieldRenamed, FieldBlob, FieldState, FieldStatus, FieldWorkplace, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_children",
"user_spouse",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressIsNil ¶
AddressIsNil applies the IsNil predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func AddressNotNil ¶
AddressNotNil applies the NotNil predicate on the "address" field.
func BlobNotNil ¶
BlobNotNil applies the NotNil predicate on the "blob" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasCarWith ¶
HasCarWith applies the HasEdge predicate on the "car" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasSpouseWith ¶
HasSpouseWith applies the HasEdge predicate on the "spouse" 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 ¶
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 Renamed ¶
Renamed applies equality check predicate on the "renamed" field. It's identical to RenamedEQ.
func RenamedContains ¶
RenamedContains applies the Contains predicate on the "renamed" field.
func RenamedContainsFold ¶
RenamedContainsFold applies the ContainsFold predicate on the "renamed" field.
func RenamedEqualFold ¶
RenamedEqualFold applies the EqualFold predicate on the "renamed" field.
func RenamedGTE ¶
RenamedGTE applies the GTE predicate on the "renamed" field.
func RenamedHasPrefix ¶
RenamedHasPrefix applies the HasPrefix predicate on the "renamed" field.
func RenamedHasSuffix ¶
RenamedHasSuffix applies the HasSuffix predicate on the "renamed" field.
func RenamedIsNil ¶
RenamedIsNil applies the IsNil predicate on the "renamed" field.
func RenamedLTE ¶
RenamedLTE applies the LTE predicate on the "renamed" field.
func RenamedNEQ ¶
RenamedNEQ applies the NEQ predicate on the "renamed" field.
func RenamedNotIn ¶
RenamedNotIn applies the NotIn predicate on the "renamed" field.
func RenamedNotNil ¶
RenamedNotNil applies the NotNil predicate on the "renamed" 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Workplace ¶
Workplace applies equality check predicate on the "workplace" field. It's identical to WorkplaceEQ.
func WorkplaceContains ¶
WorkplaceContains applies the Contains predicate on the "workplace" field.
func WorkplaceContainsFold ¶
WorkplaceContainsFold applies the ContainsFold predicate on the "workplace" field.
func WorkplaceEQ ¶
WorkplaceEQ applies the EQ predicate on the "workplace" field.
func WorkplaceEqualFold ¶
WorkplaceEqualFold applies the EqualFold predicate on the "workplace" field.
func WorkplaceGT ¶
WorkplaceGT applies the GT predicate on the "workplace" field.
func WorkplaceGTE ¶
WorkplaceGTE applies the GTE predicate on the "workplace" field.
func WorkplaceHasPrefix ¶
WorkplaceHasPrefix applies the HasPrefix predicate on the "workplace" field.
func WorkplaceHasSuffix ¶
WorkplaceHasSuffix applies the HasSuffix predicate on the "workplace" field.
func WorkplaceIn ¶
WorkplaceIn applies the In predicate on the "workplace" field.
func WorkplaceIsNil ¶
WorkplaceIsNil applies the IsNil predicate on the "workplace" field.
func WorkplaceLT ¶
WorkplaceLT applies the LT predicate on the "workplace" field.
func WorkplaceLTE ¶
WorkplaceLTE applies the LTE predicate on the "workplace" field.
func WorkplaceNEQ ¶
WorkplaceNEQ applies the NEQ predicate on the "workplace" field.
func WorkplaceNotIn ¶
WorkplaceNotIn applies the NotIn predicate on the "workplace" field.
func WorkplaceNotNil ¶
WorkplaceNotNil applies the NotNil predicate on the "workplace" field.