Documentation ¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.User
- func AccountContains(v string) predicate.User
- func AccountContainsFold(v string) predicate.User
- func AccountEQ(v string) predicate.User
- func AccountEqualFold(v string) predicate.User
- func AccountGT(v string) predicate.User
- func AccountGTE(v string) predicate.User
- func AccountHasPrefix(v string) predicate.User
- func AccountHasSuffix(v string) predicate.User
- func AccountIn(vs ...string) predicate.User
- func AccountLT(v string) predicate.User
- func AccountLTE(v string) predicate.User
- func AccountNEQ(v string) predicate.User
- func AccountNotIn(vs ...string) predicate.User
- 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 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 Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func RegTime(v time.Time) predicate.User
- func RegTimeEQ(v time.Time) predicate.User
- func RegTimeGT(v time.Time) predicate.User
- func RegTimeGTE(v time.Time) predicate.User
- func RegTimeIn(vs ...time.Time) predicate.User
- func RegTimeLT(v time.Time) predicate.User
- func RegTimeLTE(v time.Time) predicate.User
- func RegTimeNEQ(v time.Time) predicate.User
- func RegTimeNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
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" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldRegTime holds the string denoting the reg_time field in the database. FieldRegTime = "reg_time" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // AccountValidator is a validator for the "account" field. It is called by the builders before save. AccountValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultRegTime holds the default value on creation for the "reg_time" field. DefaultRegTime func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
var Columns = []string{ FieldID, FieldNickname, FieldAccount, FieldPassword, FieldRegTime, }
Columns holds all SQL columns for user fields.
Functions ¶
func Account ¶
Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
func AccountContains ¶
AccountContains applies the Contains predicate on the "account" field.
func AccountContainsFold ¶
AccountContainsFold applies the ContainsFold predicate on the "account" field.
func AccountEqualFold ¶
AccountEqualFold applies the EqualFold predicate on the "account" field.
func AccountGTE ¶
AccountGTE applies the GTE predicate on the "account" field.
func AccountHasPrefix ¶
AccountHasPrefix applies the HasPrefix predicate on the "account" field.
func AccountHasSuffix ¶
AccountHasSuffix applies the HasSuffix predicate on the "account" field.
func AccountLTE ¶
AccountLTE applies the LTE predicate on the "account" field.
func AccountNEQ ¶
AccountNEQ applies the NEQ predicate on the "account" field.
func AccountNotIn ¶
AccountNotIn applies the NotIn predicate on the "account" 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 Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func RegTime ¶
RegTime applies equality check predicate on the "reg_time" field. It's identical to RegTimeEQ.
func RegTimeGTE ¶
RegTimeGTE applies the GTE predicate on the "reg_time" field.
func RegTimeLTE ¶
RegTimeLTE applies the LTE predicate on the "reg_time" field.
func RegTimeNEQ ¶
RegTimeNEQ applies the NEQ predicate on the "reg_time" field.
func RegTimeNotIn ¶
RegTimeNotIn applies the NotIn predicate on the "reg_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.