Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) 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 ValidColumn(column string) bool
- func Version(v int64) predicate.User
- func VersionEQ(v int64) predicate.User
- func VersionGT(v int64) predicate.User
- func VersionGTE(v int64) predicate.User
- func VersionIn(vs ...int64) predicate.User
- func VersionLT(v int64) predicate.User
- func VersionLTE(v int64) predicate.User
- func VersionNEQ(v int64) predicate.User
- func VersionNotIn(vs ...int64) predicate.User
- type Status
Constants ¶
View Source
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" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldVersion, FieldStatus, }
Columns holds all SQL columns for user fields.
View Source
var ( // DefaultVersion holds the default value on creation for the "version" field. DefaultVersion func() int64 )
Functions ¶
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
Click to show internal directories.
Click to hide internal directories.