Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.User
- func ActiveEQ(v bool) predicate.User
- func ActiveNEQ(v bool) predicate.User
- 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 CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DefaultExpr(v string) predicate.User
- func DefaultExprContains(v string) predicate.User
- func DefaultExprContainsFold(v string) predicate.User
- func DefaultExprEQ(v string) predicate.User
- func DefaultExprEqualFold(v string) predicate.User
- func DefaultExprGT(v string) predicate.User
- func DefaultExprGTE(v string) predicate.User
- func DefaultExprHasPrefix(v string) predicate.User
- func DefaultExprHasSuffix(v string) predicate.User
- func DefaultExprIn(vs ...string) predicate.User
- func DefaultExprIsNil() predicate.User
- func DefaultExprLT(v string) predicate.User
- func DefaultExprLTE(v string) predicate.User
- func DefaultExprNEQ(v string) predicate.User
- func DefaultExprNotIn(vs ...string) predicate.User
- func DefaultExprNotNil() predicate.User
- func DefaultExprs(v string) predicate.User
- func DefaultExprsContains(v string) predicate.User
- func DefaultExprsContainsFold(v string) predicate.User
- func DefaultExprsEQ(v string) predicate.User
- func DefaultExprsEqualFold(v string) predicate.User
- func DefaultExprsGT(v string) predicate.User
- func DefaultExprsGTE(v string) predicate.User
- func DefaultExprsHasPrefix(v string) predicate.User
- func DefaultExprsHasSuffix(v string) predicate.User
- func DefaultExprsIn(vs ...string) predicate.User
- func DefaultExprsIsNil() predicate.User
- func DefaultExprsLT(v string) predicate.User
- func DefaultExprsLTE(v string) predicate.User
- func DefaultExprsNEQ(v string) predicate.User
- func DefaultExprsNotIn(vs ...string) predicate.User
- func DefaultExprsNotNil() 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 DropOptional(v string) predicate.User
- func DropOptionalContains(v string) predicate.User
- func DropOptionalContainsFold(v string) predicate.User
- func DropOptionalEQ(v string) predicate.User
- func DropOptionalEqualFold(v string) predicate.User
- func DropOptionalGT(v string) predicate.User
- func DropOptionalGTE(v string) predicate.User
- func DropOptionalHasPrefix(v string) predicate.User
- func DropOptionalHasSuffix(v string) predicate.User
- func DropOptionalIn(vs ...string) predicate.User
- func DropOptionalLT(v string) predicate.User
- func DropOptionalLTE(v string) predicate.User
- func DropOptionalNEQ(v string) predicate.User
- func DropOptionalNotIn(vs ...string) 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 NewToken(v string) predicate.User
- func NewTokenContains(v string) predicate.User
- func NewTokenContainsFold(v string) predicate.User
- func NewTokenEQ(v string) predicate.User
- func NewTokenEqualFold(v string) predicate.User
- func NewTokenGT(v string) predicate.User
- func NewTokenGTE(v string) predicate.User
- func NewTokenHasPrefix(v string) predicate.User
- func NewTokenHasSuffix(v string) predicate.User
- func NewTokenIn(vs ...string) predicate.User
- func NewTokenLT(v string) predicate.User
- func NewTokenLTE(v string) predicate.User
- func NewTokenNEQ(v string) predicate.User
- func NewTokenNotIn(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 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 RolesIsNil() predicate.User
- func RolesNotNil() 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
- 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 MixedEnum
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByAge(opts ...sql.OrderTermOption) OrderOption
- func ByCar(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCarCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultExpr(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultExprs(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDropOptional(opts ...sql.OrderTermOption) OrderOption
- func ByFriends(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFriendsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMixedEnum(opts ...sql.OrderTermOption) OrderOption
- func ByMixedString(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNewName(opts ...sql.OrderTermOption) OrderOption
- func ByNewToken(opts ...sql.OrderTermOption) OrderOption
- func ByNickname(opts ...sql.OrderTermOption) OrderOption
- func ByPetsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByWorkplace(opts ...sql.OrderTermOption) OrderOption
- 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" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // 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" // 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" // FieldNewToken holds the string denoting the new_token field in the database. FieldNewToken = "new_token" // 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" // FieldRoles holds the string denoting the roles field in the database. FieldRoles = "roles" // FieldDefaultExpr holds the string denoting the default_expr field in the database. FieldDefaultExpr = "default_expr" // FieldDefaultExprs holds the string denoting the default_exprs field in the database. FieldDefaultExprs = "default_exprs" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldDropOptional holds the string denoting the drop_optional field in the database. FieldDropOptional = "drop_optional" // 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 that holds the car relation/edge. CarTable = "Car" // 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 = "Car" // CarColumn is the table column denoting the car relation/edge. CarColumn = "user_car" // PetsTable is the table that 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 that holds the friends relation/edge. The primary key declared below. FriendsTable = "friends" )
const DefaultMixedEnum = MixedEnumOn
MixedEnumOn is the default value of the MixedEnum enum.
const DefaultState = StateLoggedIn
StateLoggedIn is the default value of the State enum.
Variables ¶
var ( // DefaultMixedString holds the default value on creation for the "mixed_string" field. DefaultMixedString string // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // DefaultPhone holds the default value on creation for the "phone" field. DefaultPhone string // DefaultBuffer holds the default value on creation for the "buffer" field. DefaultBuffer func() []byte // DefaultTitle holds the default value on creation for the "title" field. DefaultTitle string // DefaultNewToken holds the default value on creation for the "new_token" field. DefaultNewToken func() string // BlobValidator is a validator for the "blob" field. It is called by the builders before save. BlobValidator func([]byte) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultDropOptional holds the default value on creation for the "drop_optional" field. DefaultDropOptional func() string )
var Columns = []string{ FieldID, FieldMixedString, FieldMixedEnum, FieldActive, FieldAge, FieldName, FieldDescription, FieldNickname, FieldPhone, FieldBuffer, FieldTitle, FieldNewName, FieldNewToken, FieldBlob, FieldState, FieldStatus, FieldWorkplace, FieldRoles, FieldDefaultExpr, FieldDefaultExprs, FieldCreatedAt, FieldDropOptional, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"blog_admins",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
var ( // FriendsPrimaryKey and FriendsColumn2 are the table columns denoting the // primary key for the friends relation (M2M). FriendsPrimaryKey = []string{"user", "friend"} )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DefaultExpr ¶
DefaultExpr applies equality check predicate on the "default_expr" field. It's identical to DefaultExprEQ.
func DefaultExprContains ¶
DefaultExprContains applies the Contains predicate on the "default_expr" field.
func DefaultExprContainsFold ¶
DefaultExprContainsFold applies the ContainsFold predicate on the "default_expr" field.
func DefaultExprEQ ¶
DefaultExprEQ applies the EQ predicate on the "default_expr" field.
func DefaultExprEqualFold ¶
DefaultExprEqualFold applies the EqualFold predicate on the "default_expr" field.
func DefaultExprGT ¶
DefaultExprGT applies the GT predicate on the "default_expr" field.
func DefaultExprGTE ¶
DefaultExprGTE applies the GTE predicate on the "default_expr" field.
func DefaultExprHasPrefix ¶
DefaultExprHasPrefix applies the HasPrefix predicate on the "default_expr" field.
func DefaultExprHasSuffix ¶
DefaultExprHasSuffix applies the HasSuffix predicate on the "default_expr" field.
func DefaultExprIn ¶
DefaultExprIn applies the In predicate on the "default_expr" field.
func DefaultExprIsNil ¶
DefaultExprIsNil applies the IsNil predicate on the "default_expr" field.
func DefaultExprLT ¶
DefaultExprLT applies the LT predicate on the "default_expr" field.
func DefaultExprLTE ¶
DefaultExprLTE applies the LTE predicate on the "default_expr" field.
func DefaultExprNEQ ¶
DefaultExprNEQ applies the NEQ predicate on the "default_expr" field.
func DefaultExprNotIn ¶
DefaultExprNotIn applies the NotIn predicate on the "default_expr" field.
func DefaultExprNotNil ¶
DefaultExprNotNil applies the NotNil predicate on the "default_expr" field.
func DefaultExprs ¶
DefaultExprs applies equality check predicate on the "default_exprs" field. It's identical to DefaultExprsEQ.
func DefaultExprsContains ¶
DefaultExprsContains applies the Contains predicate on the "default_exprs" field.
func DefaultExprsContainsFold ¶
DefaultExprsContainsFold applies the ContainsFold predicate on the "default_exprs" field.
func DefaultExprsEQ ¶
DefaultExprsEQ applies the EQ predicate on the "default_exprs" field.
func DefaultExprsEqualFold ¶
DefaultExprsEqualFold applies the EqualFold predicate on the "default_exprs" field.
func DefaultExprsGT ¶
DefaultExprsGT applies the GT predicate on the "default_exprs" field.
func DefaultExprsGTE ¶
DefaultExprsGTE applies the GTE predicate on the "default_exprs" field.
func DefaultExprsHasPrefix ¶
DefaultExprsHasPrefix applies the HasPrefix predicate on the "default_exprs" field.
func DefaultExprsHasSuffix ¶
DefaultExprsHasSuffix applies the HasSuffix predicate on the "default_exprs" field.
func DefaultExprsIn ¶
DefaultExprsIn applies the In predicate on the "default_exprs" field.
func DefaultExprsIsNil ¶
DefaultExprsIsNil applies the IsNil predicate on the "default_exprs" field.
func DefaultExprsLT ¶
DefaultExprsLT applies the LT predicate on the "default_exprs" field.
func DefaultExprsLTE ¶
DefaultExprsLTE applies the LTE predicate on the "default_exprs" field.
func DefaultExprsNEQ ¶
DefaultExprsNEQ applies the NEQ predicate on the "default_exprs" field.
func DefaultExprsNotIn ¶
DefaultExprsNotIn applies the NotIn predicate on the "default_exprs" field.
func DefaultExprsNotNil ¶
DefaultExprsNotNil applies the NotNil predicate on the "default_exprs" 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 DropOptional ¶
DropOptional applies equality check predicate on the "drop_optional" field. It's identical to DropOptionalEQ.
func DropOptionalContains ¶
DropOptionalContains applies the Contains predicate on the "drop_optional" field.
func DropOptionalContainsFold ¶
DropOptionalContainsFold applies the ContainsFold predicate on the "drop_optional" field.
func DropOptionalEQ ¶
DropOptionalEQ applies the EQ predicate on the "drop_optional" field.
func DropOptionalEqualFold ¶
DropOptionalEqualFold applies the EqualFold predicate on the "drop_optional" field.
func DropOptionalGT ¶
DropOptionalGT applies the GT predicate on the "drop_optional" field.
func DropOptionalGTE ¶
DropOptionalGTE applies the GTE predicate on the "drop_optional" field.
func DropOptionalHasPrefix ¶
DropOptionalHasPrefix applies the HasPrefix predicate on the "drop_optional" field.
func DropOptionalHasSuffix ¶
DropOptionalHasSuffix applies the HasSuffix predicate on the "drop_optional" field.
func DropOptionalIn ¶
DropOptionalIn applies the In predicate on the "drop_optional" field.
func DropOptionalLT ¶
DropOptionalLT applies the LT predicate on the "drop_optional" field.
func DropOptionalLTE ¶
DropOptionalLTE applies the LTE predicate on the "drop_optional" field.
func DropOptionalNEQ ¶
DropOptionalNEQ applies the NEQ predicate on the "drop_optional" field.
func DropOptionalNotIn ¶
DropOptionalNotIn applies the NotIn predicate on the "drop_optional" 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 NewToken ¶
NewToken applies equality check predicate on the "new_token" field. It's identical to NewTokenEQ.
func NewTokenContains ¶
NewTokenContains applies the Contains predicate on the "new_token" field.
func NewTokenContainsFold ¶
NewTokenContainsFold applies the ContainsFold predicate on the "new_token" field.
func NewTokenEQ ¶
NewTokenEQ applies the EQ predicate on the "new_token" field.
func NewTokenEqualFold ¶
NewTokenEqualFold applies the EqualFold predicate on the "new_token" field.
func NewTokenGT ¶
NewTokenGT applies the GT predicate on the "new_token" field.
func NewTokenGTE ¶
NewTokenGTE applies the GTE predicate on the "new_token" field.
func NewTokenHasPrefix ¶
NewTokenHasPrefix applies the HasPrefix predicate on the "new_token" field.
func NewTokenHasSuffix ¶
NewTokenHasSuffix applies the HasSuffix predicate on the "new_token" field.
func NewTokenIn ¶
NewTokenIn applies the In predicate on the "new_token" field.
func NewTokenLT ¶
NewTokenLT applies the LT predicate on the "new_token" field.
func NewTokenLTE ¶
NewTokenLTE applies the LTE predicate on the "new_token" field.
func NewTokenNEQ ¶
NewTokenNEQ applies the NEQ predicate on the "new_token" field.
func NewTokenNotIn ¶
NewTokenNotIn applies the NotIn predicate on the "new_token" 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 RolesIsNil ¶
RolesIsNil applies the IsNil predicate on the "roles" field.
func RolesNotNil ¶
RolesNotNil applies the NotNil predicate on the "roles" 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.
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.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByAge ¶
func ByAge(opts ...sql.OrderTermOption) OrderOption
ByAge orders the results by the age field.
func ByCar ¶
func ByCar(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCar orders the results by car terms.
func ByCarCount ¶
func ByCarCount(opts ...sql.OrderTermOption) OrderOption
ByCarCount orders the results by car count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDefaultExpr ¶
func ByDefaultExpr(opts ...sql.OrderTermOption) OrderOption
ByDefaultExpr orders the results by the default_expr field.
func ByDefaultExprs ¶
func ByDefaultExprs(opts ...sql.OrderTermOption) OrderOption
ByDefaultExprs orders the results by the default_exprs field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDropOptional ¶
func ByDropOptional(opts ...sql.OrderTermOption) OrderOption
ByDropOptional orders the results by the drop_optional field.
func ByFriends ¶
func ByFriends(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFriends orders the results by friends terms.
func ByFriendsCount ¶
func ByFriendsCount(opts ...sql.OrderTermOption) OrderOption
ByFriendsCount orders the results by friends count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMixedEnum ¶
func ByMixedEnum(opts ...sql.OrderTermOption) OrderOption
ByMixedEnum orders the results by the mixed_enum field.
func ByMixedString ¶
func ByMixedString(opts ...sql.OrderTermOption) OrderOption
ByMixedString orders the results by the mixed_string field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNewName ¶
func ByNewName(opts ...sql.OrderTermOption) OrderOption
ByNewName orders the results by the new_name field.
func ByNewToken ¶
func ByNewToken(opts ...sql.OrderTermOption) OrderOption
ByNewToken orders the results by the new_token field.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.
func ByPetsField ¶
func ByPetsField(field string, opts ...sql.OrderTermOption) OrderOption
ByPetsField orders the results by pets field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByWorkplace ¶
func ByWorkplace(opts ...sql.OrderTermOption) OrderOption
ByWorkplace orders the results by the workplace field.