Documentation ¶
Index ¶
- Constants
- Variables
- func AccountBalance(v float64) predicate.User
- func AccountBalanceEQ(v float64) predicate.User
- func AccountBalanceGT(v float64) predicate.User
- func AccountBalanceGTE(v float64) predicate.User
- func AccountBalanceIn(vs ...float64) predicate.User
- func AccountBalanceLT(v float64) predicate.User
- func AccountBalanceLTE(v float64) predicate.User
- func AccountBalanceNEQ(v float64) predicate.User
- func AccountBalanceNotIn(vs ...float64) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func BUser1(v int) predicate.User
- func BUser1EQ(v int) predicate.User
- func BUser1GT(v int) predicate.User
- func BUser1GTE(v int) predicate.User
- func BUser1In(vs ...int) predicate.User
- func BUser1IsNil() predicate.User
- func BUser1LT(v int) predicate.User
- func BUser1LTE(v int) predicate.User
- func BUser1NEQ(v int) predicate.User
- func BUser1NotIn(vs ...int) predicate.User
- func BUser1NotNil() predicate.User
- func Banned(v bool) predicate.User
- func BannedEQ(v bool) predicate.User
- func BannedNEQ(v bool) predicate.User
- func BigInt(v schema.BigInt) predicate.User
- func BigIntEQ(v schema.BigInt) predicate.User
- func BigIntGT(v schema.BigInt) predicate.User
- func BigIntGTE(v schema.BigInt) predicate.User
- func BigIntIn(vs ...schema.BigInt) predicate.User
- func BigIntIsNil() predicate.User
- func BigIntLT(v schema.BigInt) predicate.User
- func BigIntLTE(v schema.BigInt) predicate.User
- func BigIntNEQ(v schema.BigInt) predicate.User
- func BigIntNotIn(vs ...schema.BigInt) predicate.User
- func BigIntNotNil() predicate.User
- func CrmID(v uuid.UUID) predicate.User
- func CrmIDEQ(v uuid.UUID) predicate.User
- func CrmIDGT(v uuid.UUID) predicate.User
- func CrmIDGTE(v uuid.UUID) predicate.User
- func CrmIDIn(vs ...uuid.UUID) predicate.User
- func CrmIDLT(v uuid.UUID) predicate.User
- func CrmIDLTE(v uuid.UUID) predicate.User
- func CrmIDNEQ(v uuid.UUID) predicate.User
- func CrmIDNotIn(vs ...uuid.UUID) predicate.User
- func CustomPb(v uint8) predicate.User
- func CustomPbEQ(v uint8) predicate.User
- func CustomPbGT(v uint8) predicate.User
- func CustomPbGTE(v uint8) predicate.User
- func CustomPbIn(vs ...uint8) predicate.User
- func CustomPbLT(v uint8) predicate.User
- func CustomPbLTE(v uint8) predicate.User
- func CustomPbNEQ(v uint8) predicate.User
- func CustomPbNotIn(vs ...uint8) predicate.User
- func DeviceTypeEQ(v DeviceType) predicate.User
- func DeviceTypeIn(vs ...DeviceType) predicate.User
- func DeviceTypeNEQ(v DeviceType) predicate.User
- func DeviceTypeNotIn(vs ...DeviceType) predicate.User
- func DeviceTypeValidator(dt DeviceType) error
- func Exp(v uint64) predicate.User
- func ExpEQ(v uint64) predicate.User
- func ExpGT(v uint64) predicate.User
- func ExpGTE(v uint64) predicate.User
- func ExpIn(vs ...uint64) predicate.User
- func ExpLT(v uint64) predicate.User
- func ExpLTE(v uint64) predicate.User
- func ExpNEQ(v uint64) predicate.User
- func ExpNotIn(vs ...uint64) predicate.User
- func ExternalID(v int) predicate.User
- func ExternalIDEQ(v int) predicate.User
- func ExternalIDGT(v int) predicate.User
- func ExternalIDGTE(v int) predicate.User
- func ExternalIDIn(vs ...int) predicate.User
- func ExternalIDLT(v int) predicate.User
- func ExternalIDLTE(v int) predicate.User
- func ExternalIDNEQ(v int) predicate.User
- func ExternalIDNotIn(vs ...int) predicate.User
- func HasAttachment() predicate.User
- func HasAttachmentWith(preds ...predicate.Attachment) predicate.User
- func HasGroup() predicate.User
- func HasGroupWith(preds ...predicate.Group) predicate.User
- func HasPet() predicate.User
- func HasPetWith(preds ...predicate.Pet) predicate.User
- func HasReceived1() predicate.User
- func HasReceived1With(preds ...predicate.Attachment) predicate.User
- func HasSkipEdge() predicate.User
- func HasSkipEdgeWith(preds ...predicate.SkipEdgeExample) predicate.User
- func HeightInCm(v float32) predicate.User
- func HeightInCmEQ(v float32) predicate.User
- func HeightInCmGT(v float32) predicate.User
- func HeightInCmGTE(v float32) predicate.User
- func HeightInCmIn(vs ...float32) predicate.User
- func HeightInCmLT(v float32) predicate.User
- func HeightInCmLTE(v float32) predicate.User
- func HeightInCmNEQ(v float32) predicate.User
- func HeightInCmNotIn(vs ...float32) predicate.User
- func ID(id uint32) predicate.User
- func IDEQ(id uint32) predicate.User
- func IDGT(id uint32) predicate.User
- func IDGTE(id uint32) predicate.User
- func IDIn(ids ...uint32) predicate.User
- func IDLT(id uint32) predicate.User
- func IDLTE(id uint32) predicate.User
- func IDNEQ(id uint32) predicate.User
- func IDNotIn(ids ...uint32) predicate.User
- func Int32sIsNil() predicate.User
- func Int32sNotNil() predicate.User
- func Int64sIsNil() predicate.User
- func Int64sNotNil() predicate.User
- func Joined(v time.Time) predicate.User
- func JoinedEQ(v time.Time) predicate.User
- func JoinedGT(v time.Time) predicate.User
- func JoinedGTE(v time.Time) predicate.User
- func JoinedIn(vs ...time.Time) predicate.User
- func JoinedLT(v time.Time) predicate.User
- func JoinedLTE(v time.Time) predicate.User
- func JoinedNEQ(v time.Time) predicate.User
- func JoinedNotIn(vs ...time.Time) predicate.User
- func LabelsIsNil() predicate.User
- func LabelsNotNil() predicate.User
- func MimeTypeEQ(v MimeType) predicate.User
- func MimeTypeIn(vs ...MimeType) predicate.User
- func MimeTypeNEQ(v MimeType) predicate.User
- func MimeTypeNotIn(vs ...MimeType) predicate.User
- func MimeTypeValidator(mt MimeType) error
- func Not(p predicate.User) predicate.User
- func OmitPrefixEQ(v OmitPrefix) predicate.User
- func OmitPrefixIn(vs ...OmitPrefix) predicate.User
- func OmitPrefixNEQ(v OmitPrefix) predicate.User
- func OmitPrefixNotIn(vs ...OmitPrefix) predicate.User
- func OmitPrefixValidator(op OmitPrefix) error
- func OptBool(v bool) predicate.User
- func OptBoolEQ(v bool) predicate.User
- func OptBoolIsNil() predicate.User
- func OptBoolNEQ(v bool) predicate.User
- func OptBoolNotNil() predicate.User
- func OptNum(v int) predicate.User
- func OptNumEQ(v int) predicate.User
- func OptNumGT(v int) predicate.User
- func OptNumGTE(v int) predicate.User
- func OptNumIn(vs ...int) predicate.User
- func OptNumIsNil() predicate.User
- func OptNumLT(v int) predicate.User
- func OptNumLTE(v int) predicate.User
- func OptNumNEQ(v int) predicate.User
- func OptNumNotIn(vs ...int) predicate.User
- func OptNumNotNil() predicate.User
- func OptStr(v string) predicate.User
- func OptStrContains(v string) predicate.User
- func OptStrContainsFold(v string) predicate.User
- func OptStrEQ(v string) predicate.User
- func OptStrEqualFold(v string) predicate.User
- func OptStrGT(v string) predicate.User
- func OptStrGTE(v string) predicate.User
- func OptStrHasPrefix(v string) predicate.User
- func OptStrHasSuffix(v string) predicate.User
- func OptStrIn(vs ...string) predicate.User
- func OptStrIsNil() predicate.User
- func OptStrLT(v string) predicate.User
- func OptStrLTE(v string) predicate.User
- func OptStrNEQ(v string) predicate.User
- func OptStrNotIn(vs ...string) predicate.User
- func OptStrNotNil() predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Points(v uint) predicate.User
- func PointsEQ(v uint) predicate.User
- func PointsGT(v uint) predicate.User
- func PointsGTE(v uint) predicate.User
- func PointsIn(vs ...uint) predicate.User
- func PointsLT(v uint) predicate.User
- func PointsLTE(v uint) predicate.User
- func PointsNEQ(v uint) predicate.User
- func PointsNotIn(vs ...uint) predicate.User
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- func Type(v string) predicate.User
- func TypeContains(v string) predicate.User
- func TypeContainsFold(v string) predicate.User
- func TypeEQ(v string) predicate.User
- func TypeEqualFold(v string) predicate.User
- func TypeGT(v string) predicate.User
- func TypeGTE(v string) predicate.User
- func TypeHasPrefix(v string) predicate.User
- func TypeHasSuffix(v string) predicate.User
- func TypeIn(vs ...string) predicate.User
- func TypeIsNil() predicate.User
- func TypeLT(v string) predicate.User
- func TypeLTE(v string) predicate.User
- func TypeNEQ(v string) predicate.User
- func TypeNotIn(vs ...string) predicate.User
- func TypeNotNil() predicate.User
- func Uint32sIsNil() predicate.User
- func Uint32sNotNil() predicate.User
- func Uint64sIsNil() predicate.User
- func Uint64sNotNil() predicate.User
- func Unnecessary(v string) predicate.User
- func UnnecessaryContains(v string) predicate.User
- func UnnecessaryContainsFold(v string) predicate.User
- func UnnecessaryEQ(v string) predicate.User
- func UnnecessaryEqualFold(v string) predicate.User
- func UnnecessaryGT(v string) predicate.User
- func UnnecessaryGTE(v string) predicate.User
- func UnnecessaryHasPrefix(v string) predicate.User
- func UnnecessaryHasSuffix(v string) predicate.User
- func UnnecessaryIn(vs ...string) predicate.User
- func UnnecessaryIsNil() predicate.User
- func UnnecessaryLT(v string) predicate.User
- func UnnecessaryLTE(v string) predicate.User
- func UnnecessaryNEQ(v string) predicate.User
- func UnnecessaryNotIn(vs ...string) predicate.User
- func UnnecessaryNotNil() predicate.User
- func UserName(v string) predicate.User
- func UserNameContains(v string) predicate.User
- func UserNameContainsFold(v string) predicate.User
- func UserNameEQ(v string) predicate.User
- func UserNameEqualFold(v string) predicate.User
- func UserNameGT(v string) predicate.User
- func UserNameGTE(v string) predicate.User
- func UserNameHasPrefix(v string) predicate.User
- func UserNameHasSuffix(v string) predicate.User
- func UserNameIn(vs ...string) predicate.User
- func UserNameLT(v string) predicate.User
- func UserNameLTE(v string) predicate.User
- func UserNameNEQ(v string) predicate.User
- func UserNameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type DeviceType
- type MimeType
- type OmitPrefix
- type OrderOption
- func ByAccountBalance(opts ...sql.OrderTermOption) OrderOption
- func ByAttachmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBUser1(opts ...sql.OrderTermOption) OrderOption
- func ByBanned(opts ...sql.OrderTermOption) OrderOption
- func ByBigInt(opts ...sql.OrderTermOption) OrderOption
- func ByCrmID(opts ...sql.OrderTermOption) OrderOption
- func ByCustomPb(opts ...sql.OrderTermOption) OrderOption
- func ByDeviceType(opts ...sql.OrderTermOption) OrderOption
- func ByExp(opts ...sql.OrderTermOption) OrderOption
- func ByExternalID(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByHeightInCm(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJoined(opts ...sql.OrderTermOption) OrderOption
- func ByMimeType(opts ...sql.OrderTermOption) OrderOption
- func ByOmitPrefix(opts ...sql.OrderTermOption) OrderOption
- func ByOptBool(opts ...sql.OrderTermOption) OrderOption
- func ByOptNum(opts ...sql.OrderTermOption) OrderOption
- func ByOptStr(opts ...sql.OrderTermOption) OrderOption
- func ByPetField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPoints(opts ...sql.OrderTermOption) OrderOption
- func ByReceived1(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReceived1Count(opts ...sql.OrderTermOption) OrderOption
- func BySkipEdgeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUnnecessary(opts ...sql.OrderTermOption) OrderOption
- func ByUserName(opts ...sql.OrderTermOption) OrderOption
- 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 = "user_id" // FieldUserName holds the string denoting the user_name field in the database. FieldUserName = "user_name" // FieldJoined holds the string denoting the joined field in the database. FieldJoined = "joined" // FieldPoints holds the string denoting the points field in the database. FieldPoints = "points" // FieldExp holds the string denoting the exp field in the database. FieldExp = "exp" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldExternalID holds the string denoting the external_id field in the database. FieldExternalID = "external_id" // FieldCrmID holds the string denoting the crm_id field in the database. FieldCrmID = "crm_id" // FieldBanned holds the string denoting the banned field in the database. FieldBanned = "banned" // FieldCustomPb holds the string denoting the custom_pb field in the database. FieldCustomPb = "custom_pb" // FieldOptNum holds the string denoting the opt_num field in the database. FieldOptNum = "opt_num" // FieldOptStr holds the string denoting the opt_str field in the database. FieldOptStr = "opt_str" // FieldOptBool holds the string denoting the opt_bool field in the database. FieldOptBool = "opt_bool" // FieldBigInt holds the string denoting the big_int field in the database. FieldBigInt = "big_int" // FieldBUser1 holds the string denoting the b_user_1 field in the database. FieldBUser1 = "b_user_1" // FieldHeightInCm holds the string denoting the height_in_cm field in the database. FieldHeightInCm = "height_in_cm" // FieldAccountBalance holds the string denoting the account_balance field in the database. FieldAccountBalance = "account_balance" // FieldUnnecessary holds the string denoting the unnecessary field in the database. FieldUnnecessary = "unnecessary" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldLabels holds the string denoting the labels field in the database. FieldLabels = "labels" // FieldInt32s holds the string denoting the int32s field in the database. FieldInt32s = "int32s" // FieldInt64s holds the string denoting the int64s field in the database. FieldInt64s = "int64s" // FieldUint32s holds the string denoting the uint32s field in the database. FieldUint32s = "uint32s" // FieldUint64s holds the string denoting the uint64s field in the database. FieldUint64s = "uint64s" // FieldDeviceType holds the string denoting the device_type field in the database. FieldDeviceType = "device_type" // FieldOmitPrefix holds the string denoting the omit_prefix field in the database. FieldOmitPrefix = "omit_prefix" // FieldMimeType holds the string denoting the mime_type field in the database. FieldMimeType = "mime_type" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeAttachment holds the string denoting the attachment edge name in mutations. EdgeAttachment = "attachment" // EdgeReceived1 holds the string denoting the received_1 edge name in mutations. EdgeReceived1 = "received_1" // EdgePet holds the string denoting the pet edge name in mutations. EdgePet = "pet" // EdgeSkipEdge holds the string denoting the skip_edge edge name in mutations. EdgeSkipEdge = "skip_edge" // GroupFieldID holds the string denoting the ID field of the Group. GroupFieldID = "id" // AttachmentFieldID holds the string denoting the ID field of the Attachment. AttachmentFieldID = "id" // PetFieldID holds the string denoting the ID field of the Pet. PetFieldID = "id" // SkipEdgeExampleFieldID holds the string denoting the ID field of the SkipEdgeExample. SkipEdgeExampleFieldID = "id" // Table holds the table name of the user in the database. Table = "users" // GroupTable is the table that holds the group relation/edge. GroupTable = "users" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "user_group" // AttachmentTable is the table that holds the attachment relation/edge. AttachmentTable = "attachments" // AttachmentInverseTable is the table name for the Attachment entity. // It exists in this package in order to avoid circular dependency with the "attachment" package. AttachmentInverseTable = "attachments" // AttachmentColumn is the table column denoting the attachment relation/edge. AttachmentColumn = "user_attachment" // Received1Table is the table that holds the received_1 relation/edge. The primary key declared below. Received1Table = "attachment_recipients" // Received1InverseTable is the table name for the Attachment entity. // It exists in this package in order to avoid circular dependency with the "attachment" package. Received1InverseTable = "attachments" // PetTable is the table that holds the pet relation/edge. PetTable = "pets" // PetInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. PetInverseTable = "pets" // PetColumn is the table column denoting the pet relation/edge. PetColumn = "user_pet" // SkipEdgeTable is the table that holds the skip_edge relation/edge. SkipEdgeTable = "skip_edge_examples" // SkipEdgeInverseTable is the table name for the SkipEdgeExample entity. // It exists in this package in order to avoid circular dependency with the "skipedgeexample" package. SkipEdgeInverseTable = "skip_edge_examples" // SkipEdgeColumn is the table column denoting the skip_edge relation/edge. SkipEdgeColumn = "user_skip_edge" )
const DefaultDeviceType = DeviceTypeGLOWY9000
DeviceTypeGLOWY9000 is the default value of the DeviceType enum.
Variables ¶
var ( // DefaultBanned holds the default value on creation for the "banned" field. DefaultBanned bool // DefaultHeightInCm holds the default value on creation for the "height_in_cm" field. DefaultHeightInCm float32 // DefaultAccountBalance holds the default value on creation for the "account_balance" field. DefaultAccountBalance float64 )
var Columns = []string{ FieldID, FieldUserName, FieldJoined, FieldPoints, FieldExp, FieldStatus, FieldExternalID, FieldCrmID, FieldBanned, FieldCustomPb, FieldOptNum, FieldOptStr, FieldOptBool, FieldBigInt, FieldBUser1, FieldHeightInCm, FieldAccountBalance, FieldUnnecessary, FieldType, FieldLabels, FieldInt32s, FieldInt64s, FieldUint32s, FieldUint64s, FieldDeviceType, FieldOmitPrefix, FieldMimeType, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_group",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
var ( // Received1PrimaryKey and Received1Column2 are the table columns denoting the // primary key for the received_1 relation (M2M). Received1PrimaryKey = []string{"attachment_id", "user_id"} )
Functions ¶
func AccountBalance ¶
AccountBalance applies equality check predicate on the "account_balance" field. It's identical to AccountBalanceEQ.
func AccountBalanceEQ ¶
AccountBalanceEQ applies the EQ predicate on the "account_balance" field.
func AccountBalanceGT ¶
AccountBalanceGT applies the GT predicate on the "account_balance" field.
func AccountBalanceGTE ¶
AccountBalanceGTE applies the GTE predicate on the "account_balance" field.
func AccountBalanceIn ¶
AccountBalanceIn applies the In predicate on the "account_balance" field.
func AccountBalanceLT ¶
AccountBalanceLT applies the LT predicate on the "account_balance" field.
func AccountBalanceLTE ¶
AccountBalanceLTE applies the LTE predicate on the "account_balance" field.
func AccountBalanceNEQ ¶
AccountBalanceNEQ applies the NEQ predicate on the "account_balance" field.
func AccountBalanceNotIn ¶
AccountBalanceNotIn applies the NotIn predicate on the "account_balance" field.
func BUser1 ¶
BUser1 applies equality check predicate on the "b_user_1" field. It's identical to BUser1EQ.
func BUser1IsNil ¶
BUser1IsNil applies the IsNil predicate on the "b_user_1" field.
func BUser1NotIn ¶
BUser1NotIn applies the NotIn predicate on the "b_user_1" field.
func BUser1NotNil ¶
BUser1NotNil applies the NotNil predicate on the "b_user_1" field.
func Banned ¶
Banned applies equality check predicate on the "banned" field. It's identical to BannedEQ.
func BigInt ¶
BigInt applies equality check predicate on the "big_int" field. It's identical to BigIntEQ.
func BigIntIsNil ¶
BigIntIsNil applies the IsNil predicate on the "big_int" field.
func BigIntNotIn ¶
BigIntNotIn applies the NotIn predicate on the "big_int" field.
func BigIntNotNil ¶
BigIntNotNil applies the NotNil predicate on the "big_int" field.
func CrmID ¶
CrmID applies equality check predicate on the "crm_id" field. It's identical to CrmIDEQ.
func CrmIDNotIn ¶
CrmIDNotIn applies the NotIn predicate on the "crm_id" field.
func CustomPb ¶
CustomPb applies equality check predicate on the "custom_pb" field. It's identical to CustomPbEQ.
func CustomPbEQ ¶
CustomPbEQ applies the EQ predicate on the "custom_pb" field.
func CustomPbGT ¶
CustomPbGT applies the GT predicate on the "custom_pb" field.
func CustomPbGTE ¶
CustomPbGTE applies the GTE predicate on the "custom_pb" field.
func CustomPbIn ¶
CustomPbIn applies the In predicate on the "custom_pb" field.
func CustomPbLT ¶
CustomPbLT applies the LT predicate on the "custom_pb" field.
func CustomPbLTE ¶
CustomPbLTE applies the LTE predicate on the "custom_pb" field.
func CustomPbNEQ ¶
CustomPbNEQ applies the NEQ predicate on the "custom_pb" field.
func CustomPbNotIn ¶
CustomPbNotIn applies the NotIn predicate on the "custom_pb" field.
func DeviceTypeEQ ¶
func DeviceTypeEQ(v DeviceType) predicate.User
DeviceTypeEQ applies the EQ predicate on the "device_type" field.
func DeviceTypeIn ¶
func DeviceTypeIn(vs ...DeviceType) predicate.User
DeviceTypeIn applies the In predicate on the "device_type" field.
func DeviceTypeNEQ ¶
func DeviceTypeNEQ(v DeviceType) predicate.User
DeviceTypeNEQ applies the NEQ predicate on the "device_type" field.
func DeviceTypeNotIn ¶
func DeviceTypeNotIn(vs ...DeviceType) predicate.User
DeviceTypeNotIn applies the NotIn predicate on the "device_type" field.
func DeviceTypeValidator ¶
func DeviceTypeValidator(dt DeviceType) error
DeviceTypeValidator is a validator for the "device_type" field enum values. It is called by the builders before save.
func ExternalID ¶
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDEQ ¶
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDGT ¶
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDIn ¶
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDLT ¶
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func HasAttachment ¶
HasAttachment applies the HasEdge predicate on the "attachment" edge.
func HasAttachmentWith ¶
func HasAttachmentWith(preds ...predicate.Attachment) predicate.User
HasAttachmentWith applies the HasEdge predicate on the "attachment" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasPetWith ¶
HasPetWith applies the HasEdge predicate on the "pet" edge with a given conditions (other predicates).
func HasReceived1 ¶
HasReceived1 applies the HasEdge predicate on the "received_1" edge.
func HasReceived1With ¶
func HasReceived1With(preds ...predicate.Attachment) predicate.User
HasReceived1With applies the HasEdge predicate on the "received_1" edge with a given conditions (other predicates).
func HasSkipEdge ¶
HasSkipEdge applies the HasEdge predicate on the "skip_edge" edge.
func HasSkipEdgeWith ¶
func HasSkipEdgeWith(preds ...predicate.SkipEdgeExample) predicate.User
HasSkipEdgeWith applies the HasEdge predicate on the "skip_edge" edge with a given conditions (other predicates).
func HeightInCm ¶
HeightInCm applies equality check predicate on the "height_in_cm" field. It's identical to HeightInCmEQ.
func HeightInCmEQ ¶
HeightInCmEQ applies the EQ predicate on the "height_in_cm" field.
func HeightInCmGT ¶
HeightInCmGT applies the GT predicate on the "height_in_cm" field.
func HeightInCmGTE ¶
HeightInCmGTE applies the GTE predicate on the "height_in_cm" field.
func HeightInCmIn ¶
HeightInCmIn applies the In predicate on the "height_in_cm" field.
func HeightInCmLT ¶
HeightInCmLT applies the LT predicate on the "height_in_cm" field.
func HeightInCmLTE ¶
HeightInCmLTE applies the LTE predicate on the "height_in_cm" field.
func HeightInCmNEQ ¶
HeightInCmNEQ applies the NEQ predicate on the "height_in_cm" field.
func HeightInCmNotIn ¶
HeightInCmNotIn applies the NotIn predicate on the "height_in_cm" field.
func Int32sIsNil ¶
Int32sIsNil applies the IsNil predicate on the "int32s" field.
func Int32sNotNil ¶
Int32sNotNil applies the NotNil predicate on the "int32s" field.
func Int64sIsNil ¶
Int64sIsNil applies the IsNil predicate on the "int64s" field.
func Int64sNotNil ¶
Int64sNotNil applies the NotNil predicate on the "int64s" field.
func Joined ¶
Joined applies equality check predicate on the "joined" field. It's identical to JoinedEQ.
func JoinedNotIn ¶
JoinedNotIn applies the NotIn predicate on the "joined" field.
func LabelsIsNil ¶
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶
LabelsNotNil applies the NotNil predicate on the "labels" field.
func MimeTypeEQ ¶
MimeTypeEQ applies the EQ predicate on the "mime_type" field.
func MimeTypeIn ¶
MimeTypeIn applies the In predicate on the "mime_type" field.
func MimeTypeNEQ ¶
MimeTypeNEQ applies the NEQ predicate on the "mime_type" field.
func MimeTypeNotIn ¶
MimeTypeNotIn applies the NotIn predicate on the "mime_type" field.
func MimeTypeValidator ¶
MimeTypeValidator is a validator for the "mime_type" field enum values. It is called by the builders before save.
func OmitPrefixEQ ¶
func OmitPrefixEQ(v OmitPrefix) predicate.User
OmitPrefixEQ applies the EQ predicate on the "omit_prefix" field.
func OmitPrefixIn ¶
func OmitPrefixIn(vs ...OmitPrefix) predicate.User
OmitPrefixIn applies the In predicate on the "omit_prefix" field.
func OmitPrefixNEQ ¶
func OmitPrefixNEQ(v OmitPrefix) predicate.User
OmitPrefixNEQ applies the NEQ predicate on the "omit_prefix" field.
func OmitPrefixNotIn ¶
func OmitPrefixNotIn(vs ...OmitPrefix) predicate.User
OmitPrefixNotIn applies the NotIn predicate on the "omit_prefix" field.
func OmitPrefixValidator ¶
func OmitPrefixValidator(op OmitPrefix) error
OmitPrefixValidator is a validator for the "omit_prefix" field enum values. It is called by the builders before save.
func OptBool ¶
OptBool applies equality check predicate on the "opt_bool" field. It's identical to OptBoolEQ.
func OptBoolIsNil ¶
OptBoolIsNil applies the IsNil predicate on the "opt_bool" field.
func OptBoolNEQ ¶
OptBoolNEQ applies the NEQ predicate on the "opt_bool" field.
func OptBoolNotNil ¶
OptBoolNotNil applies the NotNil predicate on the "opt_bool" field.
func OptNum ¶
OptNum applies equality check predicate on the "opt_num" field. It's identical to OptNumEQ.
func OptNumIsNil ¶
OptNumIsNil applies the IsNil predicate on the "opt_num" field.
func OptNumNotIn ¶
OptNumNotIn applies the NotIn predicate on the "opt_num" field.
func OptNumNotNil ¶
OptNumNotNil applies the NotNil predicate on the "opt_num" field.
func OptStr ¶
OptStr applies equality check predicate on the "opt_str" field. It's identical to OptStrEQ.
func OptStrContains ¶
OptStrContains applies the Contains predicate on the "opt_str" field.
func OptStrContainsFold ¶
OptStrContainsFold applies the ContainsFold predicate on the "opt_str" field.
func OptStrEqualFold ¶
OptStrEqualFold applies the EqualFold predicate on the "opt_str" field.
func OptStrHasPrefix ¶
OptStrHasPrefix applies the HasPrefix predicate on the "opt_str" field.
func OptStrHasSuffix ¶
OptStrHasSuffix applies the HasSuffix predicate on the "opt_str" field.
func OptStrIsNil ¶
OptStrIsNil applies the IsNil predicate on the "opt_str" field.
func OptStrNotIn ¶
OptStrNotIn applies the NotIn predicate on the "opt_str" field.
func OptStrNotNil ¶
OptStrNotNil applies the NotNil predicate on the "opt_str" field.
func Points ¶
Points applies equality check predicate on the "points" field. It's identical to PointsEQ.
func PointsNotIn ¶
PointsNotIn applies the NotIn predicate on the "points" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn 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 TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeNotNil ¶
TypeNotNil applies the NotNil predicate on the "type" field.
func Uint32sIsNil ¶
Uint32sIsNil applies the IsNil predicate on the "uint32s" field.
func Uint32sNotNil ¶
Uint32sNotNil applies the NotNil predicate on the "uint32s" field.
func Uint64sIsNil ¶
Uint64sIsNil applies the IsNil predicate on the "uint64s" field.
func Uint64sNotNil ¶
Uint64sNotNil applies the NotNil predicate on the "uint64s" field.
func Unnecessary ¶
Unnecessary applies equality check predicate on the "unnecessary" field. It's identical to UnnecessaryEQ.
func UnnecessaryContains ¶
UnnecessaryContains applies the Contains predicate on the "unnecessary" field.
func UnnecessaryContainsFold ¶
UnnecessaryContainsFold applies the ContainsFold predicate on the "unnecessary" field.
func UnnecessaryEQ ¶
UnnecessaryEQ applies the EQ predicate on the "unnecessary" field.
func UnnecessaryEqualFold ¶
UnnecessaryEqualFold applies the EqualFold predicate on the "unnecessary" field.
func UnnecessaryGT ¶
UnnecessaryGT applies the GT predicate on the "unnecessary" field.
func UnnecessaryGTE ¶
UnnecessaryGTE applies the GTE predicate on the "unnecessary" field.
func UnnecessaryHasPrefix ¶
UnnecessaryHasPrefix applies the HasPrefix predicate on the "unnecessary" field.
func UnnecessaryHasSuffix ¶
UnnecessaryHasSuffix applies the HasSuffix predicate on the "unnecessary" field.
func UnnecessaryIn ¶
UnnecessaryIn applies the In predicate on the "unnecessary" field.
func UnnecessaryIsNil ¶
UnnecessaryIsNil applies the IsNil predicate on the "unnecessary" field.
func UnnecessaryLT ¶
UnnecessaryLT applies the LT predicate on the "unnecessary" field.
func UnnecessaryLTE ¶
UnnecessaryLTE applies the LTE predicate on the "unnecessary" field.
func UnnecessaryNEQ ¶
UnnecessaryNEQ applies the NEQ predicate on the "unnecessary" field.
func UnnecessaryNotIn ¶
UnnecessaryNotIn applies the NotIn predicate on the "unnecessary" field.
func UnnecessaryNotNil ¶
UnnecessaryNotNil applies the NotNil predicate on the "unnecessary" field.
func UserName ¶
UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.
func UserNameContains ¶
UserNameContains applies the Contains predicate on the "user_name" field.
func UserNameContainsFold ¶
UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.
func UserNameEQ ¶
UserNameEQ applies the EQ predicate on the "user_name" field.
func UserNameEqualFold ¶
UserNameEqualFold applies the EqualFold predicate on the "user_name" field.
func UserNameGT ¶
UserNameGT applies the GT predicate on the "user_name" field.
func UserNameGTE ¶
UserNameGTE applies the GTE predicate on the "user_name" field.
func UserNameHasPrefix ¶
UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.
func UserNameHasSuffix ¶
UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.
func UserNameIn ¶
UserNameIn applies the In predicate on the "user_name" field.
func UserNameLT ¶
UserNameLT applies the LT predicate on the "user_name" field.
func UserNameLTE ¶
UserNameLTE applies the LTE predicate on the "user_name" field.
func UserNameNEQ ¶
UserNameNEQ applies the NEQ predicate on the "user_name" field.
func UserNameNotIn ¶
UserNameNotIn applies the NotIn predicate on the "user_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type DeviceType ¶
type DeviceType string
DeviceType defines the type for the "device_type" enum field.
const ( DeviceTypeGLOWY9000 DeviceType = "GLOWY9000" DeviceTypeSPEEDY300 DeviceType = "SPEEDY300" )
DeviceType values.
func (DeviceType) String ¶
func (dt DeviceType) String() string
type MimeType ¶
type MimeType string
MimeType defines the type for the "mime_type" enum field.
MimeType values.
type OmitPrefix ¶
type OmitPrefix string
OmitPrefix defines the type for the "omit_prefix" enum field.
const ( OmitPrefixFoo OmitPrefix = "foo" OmitPrefixBar OmitPrefix = "bar" )
OmitPrefix values.
func (OmitPrefix) String ¶
func (op OmitPrefix) String() string
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccountBalance ¶
func ByAccountBalance(opts ...sql.OrderTermOption) OrderOption
ByAccountBalance orders the results by the account_balance field.
func ByAttachmentField ¶
func ByAttachmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByAttachmentField orders the results by attachment field.
func ByBUser1 ¶
func ByBUser1(opts ...sql.OrderTermOption) OrderOption
ByBUser1 orders the results by the b_user_1 field.
func ByBanned ¶
func ByBanned(opts ...sql.OrderTermOption) OrderOption
ByBanned orders the results by the banned field.
func ByBigInt ¶
func ByBigInt(opts ...sql.OrderTermOption) OrderOption
ByBigInt orders the results by the big_int field.
func ByCrmID ¶
func ByCrmID(opts ...sql.OrderTermOption) OrderOption
ByCrmID orders the results by the crm_id field.
func ByCustomPb ¶
func ByCustomPb(opts ...sql.OrderTermOption) OrderOption
ByCustomPb orders the results by the custom_pb field.
func ByDeviceType ¶
func ByDeviceType(opts ...sql.OrderTermOption) OrderOption
ByDeviceType orders the results by the device_type field.
func ByExp ¶
func ByExp(opts ...sql.OrderTermOption) OrderOption
ByExp orders the results by the exp field.
func ByExternalID ¶
func ByExternalID(opts ...sql.OrderTermOption) OrderOption
ByExternalID orders the results by the external_id field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByHeightInCm ¶
func ByHeightInCm(opts ...sql.OrderTermOption) OrderOption
ByHeightInCm orders the results by the height_in_cm field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJoined ¶
func ByJoined(opts ...sql.OrderTermOption) OrderOption
ByJoined orders the results by the joined field.
func ByMimeType ¶
func ByMimeType(opts ...sql.OrderTermOption) OrderOption
ByMimeType orders the results by the mime_type field.
func ByOmitPrefix ¶
func ByOmitPrefix(opts ...sql.OrderTermOption) OrderOption
ByOmitPrefix orders the results by the omit_prefix field.
func ByOptBool ¶
func ByOptBool(opts ...sql.OrderTermOption) OrderOption
ByOptBool orders the results by the opt_bool field.
func ByOptNum ¶
func ByOptNum(opts ...sql.OrderTermOption) OrderOption
ByOptNum orders the results by the opt_num field.
func ByOptStr ¶
func ByOptStr(opts ...sql.OrderTermOption) OrderOption
ByOptStr orders the results by the opt_str field.
func ByPetField ¶
func ByPetField(field string, opts ...sql.OrderTermOption) OrderOption
ByPetField orders the results by pet field.
func ByPoints ¶
func ByPoints(opts ...sql.OrderTermOption) OrderOption
ByPoints orders the results by the points field.
func ByReceived1 ¶
func ByReceived1(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReceived1 orders the results by received_1 terms.
func ByReceived1Count ¶
func ByReceived1Count(opts ...sql.OrderTermOption) OrderOption
ByReceived1Count orders the results by received_1 count.
func BySkipEdgeField ¶
func BySkipEdgeField(field string, opts ...sql.OrderTermOption) OrderOption
BySkipEdgeField orders the results by skip_edge field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUnnecessary ¶
func ByUnnecessary(opts ...sql.OrderTermOption) OrderOption
ByUnnecessary orders the results by the unnecessary field.
func ByUserName ¶
func ByUserName(opts ...sql.OrderTermOption) OrderOption
ByUserName orders the results by the user_name field.