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 Birthday(v time.Time) predicate.User
- func BirthdayEQ(v time.Time) predicate.User
- func BirthdayGT(v time.Time) predicate.User
- func BirthdayGTE(v time.Time) predicate.User
- func BirthdayIn(vs ...time.Time) predicate.User
- func BirthdayLT(v time.Time) predicate.User
- func BirthdayLTE(v time.Time) predicate.User
- func BirthdayNEQ(v time.Time) predicate.User
- func BirthdayNotIn(vs ...time.Time) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func FullName(v string) predicate.User
- func FullNameContains(v string) predicate.User
- func FullNameContainsFold(v string) predicate.User
- func FullNameEQ(v string) predicate.User
- func FullNameEqualFold(v string) predicate.User
- func FullNameGT(v string) predicate.User
- func FullNameGTE(v string) predicate.User
- func FullNameHasPrefix(v string) predicate.User
- func FullNameHasSuffix(v string) predicate.User
- func FullNameIn(vs ...string) predicate.User
- func FullNameLT(v string) predicate.User
- func FullNameLTE(v string) predicate.User
- func FullNameNEQ(v string) predicate.User
- func FullNameNotIn(vs ...string) 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 LatestLogin(v time.Time) predicate.User
- func LatestLoginEQ(v time.Time) predicate.User
- func LatestLoginGT(v time.Time) predicate.User
- func LatestLoginGTE(v time.Time) predicate.User
- func LatestLoginIn(vs ...time.Time) predicate.User
- func LatestLoginLT(v time.Time) predicate.User
- func LatestLoginLTE(v time.Time) predicate.User
- func LatestLoginNEQ(v time.Time) predicate.User
- func LatestLoginNotIn(vs ...time.Time) 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 PhoneNumer(v string) predicate.User
- func PhoneNumerContains(v string) predicate.User
- func PhoneNumerContainsFold(v string) predicate.User
- func PhoneNumerEQ(v string) predicate.User
- func PhoneNumerEqualFold(v string) predicate.User
- func PhoneNumerGT(v string) predicate.User
- func PhoneNumerGTE(v string) predicate.User
- func PhoneNumerHasPrefix(v string) predicate.User
- func PhoneNumerHasSuffix(v string) predicate.User
- func PhoneNumerIn(vs ...string) predicate.User
- func PhoneNumerLT(v string) predicate.User
- func PhoneNumerLTE(v string) predicate.User
- func PhoneNumerNEQ(v string) predicate.User
- func PhoneNumerNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func UserID(v string) predicate.User
- func UserIDContains(v string) predicate.User
- func UserIDContainsFold(v string) predicate.User
- func UserIDEQ(v string) predicate.User
- func UserIDEqualFold(v string) predicate.User
- func UserIDGT(v string) predicate.User
- func UserIDGTE(v string) predicate.User
- func UserIDHasPrefix(v string) predicate.User
- func UserIDHasSuffix(v string) predicate.User
- func UserIDIn(vs ...string) predicate.User
- func UserIDLT(v string) predicate.User
- func UserIDLTE(v string) predicate.User
- func UserIDNEQ(v string) predicate.User
- func UserIDNotIn(vs ...string) 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 OrderOption
- func ByAccount(opts ...sql.OrderTermOption) OrderOption
- func ByBirthday(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFullName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLatestLogin(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhoneNumer(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByUserName(opts ...sql.OrderTermOption) OrderOption
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldFullName holds the string denoting the full_name field in the database. FieldFullName = "full_name" // FieldPhoneNumer holds the string denoting the phone_numer field in the database. FieldPhoneNumer = "phone_numer" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldUserName holds the string denoting the user_name field in the database. FieldUserName = "user_name" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldLatestLogin holds the string denoting the latest_login field in the database. FieldLatestLogin = "latest_login" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // FullNameValidator is a validator for the "full_name" field. It is called by the builders before save. FullNameValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldAccount, FieldFullName, FieldPhoneNumer, FieldEmail, FieldUserName, FieldPassword, FieldBirthday, FieldLatestLogin, }
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 Birthday ¶
Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
func BirthdayEQ ¶
BirthdayEQ applies the EQ predicate on the "birthday" field.
func BirthdayGT ¶
BirthdayGT applies the GT predicate on the "birthday" field.
func BirthdayGTE ¶
BirthdayGTE applies the GTE predicate on the "birthday" field.
func BirthdayIn ¶
BirthdayIn applies the In predicate on the "birthday" field.
func BirthdayLT ¶
BirthdayLT applies the LT predicate on the "birthday" field.
func BirthdayLTE ¶
BirthdayLTE applies the LTE predicate on the "birthday" field.
func BirthdayNEQ ¶
BirthdayNEQ applies the NEQ predicate on the "birthday" field.
func BirthdayNotIn ¶
BirthdayNotIn applies the NotIn predicate on the "birthday" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func FullName ¶
FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.
func FullNameContains ¶
FullNameContains applies the Contains predicate on the "full_name" field.
func FullNameContainsFold ¶
FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.
func FullNameEQ ¶
FullNameEQ applies the EQ predicate on the "full_name" field.
func FullNameEqualFold ¶
FullNameEqualFold applies the EqualFold predicate on the "full_name" field.
func FullNameGT ¶
FullNameGT applies the GT predicate on the "full_name" field.
func FullNameGTE ¶
FullNameGTE applies the GTE predicate on the "full_name" field.
func FullNameHasPrefix ¶
FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.
func FullNameHasSuffix ¶
FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.
func FullNameIn ¶
FullNameIn applies the In predicate on the "full_name" field.
func FullNameLT ¶
FullNameLT applies the LT predicate on the "full_name" field.
func FullNameLTE ¶
FullNameLTE applies the LTE predicate on the "full_name" field.
func FullNameNEQ ¶
FullNameNEQ applies the NEQ predicate on the "full_name" field.
func FullNameNotIn ¶
FullNameNotIn applies the NotIn predicate on the "full_name" field.
func LatestLogin ¶
LatestLogin applies equality check predicate on the "latest_login" field. It's identical to LatestLoginEQ.
func LatestLoginEQ ¶
LatestLoginEQ applies the EQ predicate on the "latest_login" field.
func LatestLoginGT ¶
LatestLoginGT applies the GT predicate on the "latest_login" field.
func LatestLoginGTE ¶
LatestLoginGTE applies the GTE predicate on the "latest_login" field.
func LatestLoginIn ¶
LatestLoginIn applies the In predicate on the "latest_login" field.
func LatestLoginLT ¶
LatestLoginLT applies the LT predicate on the "latest_login" field.
func LatestLoginLTE ¶
LatestLoginLTE applies the LTE predicate on the "latest_login" field.
func LatestLoginNEQ ¶
LatestLoginNEQ applies the NEQ predicate on the "latest_login" field.
func LatestLoginNotIn ¶
LatestLoginNotIn applies the NotIn predicate on the "latest_login" 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 PhoneNumer ¶
PhoneNumer applies equality check predicate on the "phone_numer" field. It's identical to PhoneNumerEQ.
func PhoneNumerContains ¶
PhoneNumerContains applies the Contains predicate on the "phone_numer" field.
func PhoneNumerContainsFold ¶
PhoneNumerContainsFold applies the ContainsFold predicate on the "phone_numer" field.
func PhoneNumerEQ ¶
PhoneNumerEQ applies the EQ predicate on the "phone_numer" field.
func PhoneNumerEqualFold ¶
PhoneNumerEqualFold applies the EqualFold predicate on the "phone_numer" field.
func PhoneNumerGT ¶
PhoneNumerGT applies the GT predicate on the "phone_numer" field.
func PhoneNumerGTE ¶
PhoneNumerGTE applies the GTE predicate on the "phone_numer" field.
func PhoneNumerHasPrefix ¶
PhoneNumerHasPrefix applies the HasPrefix predicate on the "phone_numer" field.
func PhoneNumerHasSuffix ¶
PhoneNumerHasSuffix applies the HasSuffix predicate on the "phone_numer" field.
func PhoneNumerIn ¶
PhoneNumerIn applies the In predicate on the "phone_numer" field.
func PhoneNumerLT ¶
PhoneNumerLT applies the LT predicate on the "phone_numer" field.
func PhoneNumerLTE ¶
PhoneNumerLTE applies the LTE predicate on the "phone_numer" field.
func PhoneNumerNEQ ¶
PhoneNumerNEQ applies the NEQ predicate on the "phone_numer" field.
func PhoneNumerNotIn ¶
PhoneNumerNotIn applies the NotIn predicate on the "phone_numer" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" 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 OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccount ¶
func ByAccount(opts ...sql.OrderTermOption) OrderOption
ByAccount orders the results by the account field.
func ByBirthday ¶
func ByBirthday(opts ...sql.OrderTermOption) OrderOption
ByBirthday orders the results by the birthday field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFullName ¶
func ByFullName(opts ...sql.OrderTermOption) OrderOption
ByFullName orders the results by the full_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLatestLogin ¶
func ByLatestLogin(opts ...sql.OrderTermOption) OrderOption
ByLatestLogin orders the results by the latest_login field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPhoneNumer ¶
func ByPhoneNumer(opts ...sql.OrderTermOption) OrderOption
ByPhoneNumer orders the results by the phone_numer field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByUserName ¶
func ByUserName(opts ...sql.OrderTermOption) OrderOption
ByUserName orders the results by the user_name field.