Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DUser) predicate.DUser
- func CreateTime(v time.Time) predicate.DUser
- func CreateTimeEQ(v time.Time) predicate.DUser
- func CreateTimeGT(v time.Time) predicate.DUser
- func CreateTimeGTE(v time.Time) predicate.DUser
- func CreateTimeIn(vs ...time.Time) predicate.DUser
- func CreateTimeLT(v time.Time) predicate.DUser
- func CreateTimeLTE(v time.Time) predicate.DUser
- func CreateTimeNEQ(v time.Time) predicate.DUser
- func CreateTimeNotIn(vs ...time.Time) predicate.DUser
- func ID(id string) predicate.DUser
- func IDEQ(id string) predicate.DUser
- func IDGT(id string) predicate.DUser
- func IDGTE(id string) predicate.DUser
- func IDIn(ids ...string) predicate.DUser
- func IDLT(id string) predicate.DUser
- func IDLTE(id string) predicate.DUser
- func IDNEQ(id string) predicate.DUser
- func IDNotIn(ids ...string) predicate.DUser
- func Name(v string) predicate.DUser
- func NameContains(v string) predicate.DUser
- func NameContainsFold(v string) predicate.DUser
- func NameEQ(v string) predicate.DUser
- func NameEqualFold(v string) predicate.DUser
- func NameGT(v string) predicate.DUser
- func NameGTE(v string) predicate.DUser
- func NameHasPrefix(v string) predicate.DUser
- func NameHasSuffix(v string) predicate.DUser
- func NameIn(vs ...string) predicate.DUser
- func NameLT(v string) predicate.DUser
- func NameLTE(v string) predicate.DUser
- func NameNEQ(v string) predicate.DUser
- func NameNotIn(vs ...string) predicate.DUser
- func Not(p predicate.DUser) predicate.DUser
- func Or(predicates ...predicate.DUser) predicate.DUser
- func PasswordHash(v string) predicate.DUser
- func PasswordHashContains(v string) predicate.DUser
- func PasswordHashContainsFold(v string) predicate.DUser
- func PasswordHashEQ(v string) predicate.DUser
- func PasswordHashEqualFold(v string) predicate.DUser
- func PasswordHashGT(v string) predicate.DUser
- func PasswordHashGTE(v string) predicate.DUser
- func PasswordHashHasPrefix(v string) predicate.DUser
- func PasswordHashHasSuffix(v string) predicate.DUser
- func PasswordHashIn(vs ...string) predicate.DUser
- func PasswordHashLT(v string) predicate.DUser
- func PasswordHashLTE(v string) predicate.DUser
- func PasswordHashNEQ(v string) predicate.DUser
- func PasswordHashNotIn(vs ...string) predicate.DUser
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the duser type in the database. Label = "duser" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // Table holds the table name of the duser in the database. Table = "dusers" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // PasswordHashValidator is a validator for the "password_hash" field. It is called by the builders before save. PasswordHashValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldPasswordHash, FieldCreateTime, }
Columns holds all SQL columns for duser fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" 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 PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.