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 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 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 Not(p predicate.User) predicate.User
- 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 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 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 = "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" // FieldDeviceType holds the string denoting the device_type field in the database. FieldDeviceType = "device_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" // 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, FieldDeviceType, }
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 ¶ added in v0.2.0
AccountBalance applies equality check predicate on the "account_balance" field. It's identical to AccountBalanceEQ.
func AccountBalanceEQ ¶ added in v0.2.0
AccountBalanceEQ applies the EQ predicate on the "account_balance" field.
func AccountBalanceGT ¶ added in v0.2.0
AccountBalanceGT applies the GT predicate on the "account_balance" field.
func AccountBalanceGTE ¶ added in v0.2.0
AccountBalanceGTE applies the GTE predicate on the "account_balance" field.
func AccountBalanceIn ¶ added in v0.2.0
AccountBalanceIn applies the In predicate on the "account_balance" field.
func AccountBalanceLT ¶ added in v0.2.0
AccountBalanceLT applies the LT predicate on the "account_balance" field.
func AccountBalanceLTE ¶ added in v0.2.0
AccountBalanceLTE applies the LTE predicate on the "account_balance" field.
func AccountBalanceNEQ ¶ added in v0.2.0
AccountBalanceNEQ applies the NEQ predicate on the "account_balance" field.
func AccountBalanceNotIn ¶ added in v0.2.0
AccountBalanceNotIn applies the NotIn predicate on the "account_balance" field.
func BUser1 ¶ added in v0.2.0
BUser1 applies equality check predicate on the "b_user_1" field. It's identical to BUser1EQ.
func BUser1IsNil ¶ added in v0.2.0
BUser1IsNil applies the IsNil predicate on the "b_user_1" field.
func BUser1NotIn ¶ added in v0.2.0
BUser1NotIn applies the NotIn predicate on the "b_user_1" field.
func BUser1NotNil ¶ added in v0.2.0
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 ¶ added in v0.3.0
func DeviceTypeEQ(v DeviceType) predicate.User
DeviceTypeEQ applies the EQ predicate on the "device_type" field.
func DeviceTypeIn ¶ added in v0.3.0
func DeviceTypeIn(vs ...DeviceType) predicate.User
DeviceTypeIn applies the In predicate on the "device_type" field.
func DeviceTypeNEQ ¶ added in v0.3.0
func DeviceTypeNEQ(v DeviceType) predicate.User
DeviceTypeNEQ applies the NEQ predicate on the "device_type" field.
func DeviceTypeNotIn ¶ added in v0.3.0
func DeviceTypeNotIn(vs ...DeviceType) predicate.User
DeviceTypeNotIn applies the NotIn predicate on the "device_type" field.
func DeviceTypeValidator ¶ added in v0.3.0
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 ¶ added in v0.3.0
HasPetWith applies the HasEdge predicate on the "pet" edge with a given conditions (other predicates).
func HasReceived1 ¶ added in v0.2.0
HasReceived1 applies the HasEdge predicate on the "received_1" edge.
func HasReceived1With ¶ added in v0.2.0
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 ¶ added in v0.3.0
HasSkipEdge applies the HasEdge predicate on the "skip_edge" edge.
func HasSkipEdgeWith ¶ added in v0.3.0
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 ¶ added in v0.2.0
HeightInCm applies equality check predicate on the "height_in_cm" field. It's identical to HeightInCmEQ.
func HeightInCmEQ ¶ added in v0.2.0
HeightInCmEQ applies the EQ predicate on the "height_in_cm" field.
func HeightInCmGT ¶ added in v0.2.0
HeightInCmGT applies the GT predicate on the "height_in_cm" field.
func HeightInCmGTE ¶ added in v0.2.0
HeightInCmGTE applies the GTE predicate on the "height_in_cm" field.
func HeightInCmIn ¶ added in v0.2.0
HeightInCmIn applies the In predicate on the "height_in_cm" field.
func HeightInCmLT ¶ added in v0.2.0
HeightInCmLT applies the LT predicate on the "height_in_cm" field.
func HeightInCmLTE ¶ added in v0.2.0
HeightInCmLTE applies the LTE predicate on the "height_in_cm" field.
func HeightInCmNEQ ¶ added in v0.2.0
HeightInCmNEQ applies the NEQ predicate on the "height_in_cm" field.
func HeightInCmNotIn ¶ added in v0.2.0
HeightInCmNotIn applies the NotIn predicate on the "height_in_cm" 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 ¶ added in v0.3.0
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶ added in v0.3.0
LabelsNotNil applies the NotNil predicate on the "labels" field.
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 Type ¶ added in v0.3.0
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶ added in v0.3.0
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶ added in v0.3.0
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶ added in v0.3.0
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶ added in v0.3.0
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶ added in v0.3.0
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeNotNil ¶ added in v0.3.0
TypeNotNil applies the NotNil predicate on the "type" field.
func Unnecessary ¶ added in v0.3.0
Unnecessary applies equality check predicate on the "unnecessary" field. It's identical to UnnecessaryEQ.
func UnnecessaryContains ¶ added in v0.3.0
UnnecessaryContains applies the Contains predicate on the "unnecessary" field.
func UnnecessaryContainsFold ¶ added in v0.3.0
UnnecessaryContainsFold applies the ContainsFold predicate on the "unnecessary" field.
func UnnecessaryEQ ¶ added in v0.3.0
UnnecessaryEQ applies the EQ predicate on the "unnecessary" field.
func UnnecessaryEqualFold ¶ added in v0.3.0
UnnecessaryEqualFold applies the EqualFold predicate on the "unnecessary" field.
func UnnecessaryGT ¶ added in v0.3.0
UnnecessaryGT applies the GT predicate on the "unnecessary" field.
func UnnecessaryGTE ¶ added in v0.3.0
UnnecessaryGTE applies the GTE predicate on the "unnecessary" field.
func UnnecessaryHasPrefix ¶ added in v0.3.0
UnnecessaryHasPrefix applies the HasPrefix predicate on the "unnecessary" field.
func UnnecessaryHasSuffix ¶ added in v0.3.0
UnnecessaryHasSuffix applies the HasSuffix predicate on the "unnecessary" field.
func UnnecessaryIn ¶ added in v0.3.0
UnnecessaryIn applies the In predicate on the "unnecessary" field.
func UnnecessaryIsNil ¶ added in v0.3.0
UnnecessaryIsNil applies the IsNil predicate on the "unnecessary" field.
func UnnecessaryLT ¶ added in v0.3.0
UnnecessaryLT applies the LT predicate on the "unnecessary" field.
func UnnecessaryLTE ¶ added in v0.3.0
UnnecessaryLTE applies the LTE predicate on the "unnecessary" field.
func UnnecessaryNEQ ¶ added in v0.3.0
UnnecessaryNEQ applies the NEQ predicate on the "unnecessary" field.
func UnnecessaryNotIn ¶ added in v0.3.0
UnnecessaryNotIn applies the NotIn predicate on the "unnecessary" field.
func UnnecessaryNotNil ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
func (dt DeviceType) String() string