Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CountryCallCoding(v string) predicate.User
- func CountryCallCodingContains(v string) predicate.User
- func CountryCallCodingContainsFold(v string) predicate.User
- func CountryCallCodingEQ(v string) predicate.User
- func CountryCallCodingEqualFold(v string) predicate.User
- func CountryCallCodingGT(v string) predicate.User
- func CountryCallCodingGTE(v string) predicate.User
- func CountryCallCodingHasPrefix(v string) predicate.User
- func CountryCallCodingHasSuffix(v string) predicate.User
- func CountryCallCodingIn(vs ...string) predicate.User
- func CountryCallCodingLT(v string) predicate.User
- func CountryCallCodingLTE(v string) predicate.User
- func CountryCallCodingNEQ(v string) predicate.User
- func CountryCallCodingNotIn(vs ...string) predicate.User
- func CreateDate(v time.Time) predicate.User
- func CreateDateEQ(v time.Time) predicate.User
- func CreateDateGT(v time.Time) predicate.User
- func CreateDateGTE(v time.Time) predicate.User
- func CreateDateIn(vs ...time.Time) predicate.User
- func CreateDateLT(v time.Time) predicate.User
- func CreateDateLTE(v time.Time) predicate.User
- func CreateDateNEQ(v time.Time) predicate.User
- func CreateDateNotIn(vs ...time.Time) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func Icon(v string) predicate.User
- func IconContains(v string) predicate.User
- func IconContainsFold(v string) predicate.User
- func IconEQ(v string) predicate.User
- func IconEqualFold(v string) predicate.User
- func IconGT(v string) predicate.User
- func IconGTE(v string) predicate.User
- func IconHasPrefix(v string) predicate.User
- func IconHasSuffix(v string) predicate.User
- func IconIn(vs ...string) predicate.User
- func IconLT(v string) predicate.User
- func IconLTE(v string) predicate.User
- func IconNEQ(v string) predicate.User
- func IconNotIn(vs ...string) predicate.User
- func LastLoginDate(v time.Time) predicate.User
- func LastLoginDateEQ(v time.Time) predicate.User
- func LastLoginDateGT(v time.Time) predicate.User
- func LastLoginDateGTE(v time.Time) predicate.User
- func LastLoginDateIn(vs ...time.Time) predicate.User
- func LastLoginDateLT(v time.Time) predicate.User
- func LastLoginDateLTE(v time.Time) predicate.User
- func LastLoginDateNEQ(v time.Time) predicate.User
- func LastLoginDateNotIn(vs ...time.Time) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(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 PwdConfig(v bool) predicate.User
- func PwdConfigEQ(v bool) predicate.User
- func PwdConfigNEQ(v bool) predicate.User
- func TelephoneNumber(v string) predicate.User
- func TelephoneNumberContains(v string) predicate.User
- func TelephoneNumberContainsFold(v string) predicate.User
- func TelephoneNumberEQ(v string) predicate.User
- func TelephoneNumberEqualFold(v string) predicate.User
- func TelephoneNumberGT(v string) predicate.User
- func TelephoneNumberGTE(v string) predicate.User
- func TelephoneNumberHasPrefix(v string) predicate.User
- func TelephoneNumberHasSuffix(v string) predicate.User
- func TelephoneNumberIn(vs ...string) predicate.User
- func TelephoneNumberLT(v string) predicate.User
- func TelephoneNumberLTE(v string) predicate.User
- func TelephoneNumberNEQ(v string) predicate.User
- func TelephoneNumberNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByCountryCallCoding(opts ...sql.OrderTermOption) OrderOption
- func ByCreateDate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByLastLoginDate(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPwdConfig(opts ...sql.OrderTermOption) OrderOption
- func ByTelephoneNumber(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" // FieldCountryCallCoding holds the string denoting the country_call_coding field in the database. FieldCountryCallCoding = "country_call_coding" // FieldTelephoneNumber holds the string denoting the telephone_number field in the database. FieldTelephoneNumber = "telephone_number" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldCreateDate holds the string denoting the create_date field in the database. FieldCreateDate = "create_date" // FieldLastLoginDate holds the string denoting the last_login_date field in the database. FieldLastLoginDate = "last_login_date" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // FieldPwdConfig holds the string denoting the pwd_config field in the database. FieldPwdConfig = "pwd_config" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // CountryCallCodingValidator is a validator for the "country_call_coding" field. It is called by the builders before save. CountryCallCodingValidator func(string) error // TelephoneNumberValidator is a validator for the "telephone_number" field. It is called by the builders before save. TelephoneNumberValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultCreateDate holds the default value on creation for the "create_date" field. DefaultCreateDate func() time.Time // DefaultLastLoginDate holds the default value on creation for the "last_login_date" field. DefaultLastLoginDate func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultPwdConfig holds the default value on creation for the "pwd_config" field. DefaultPwdConfig bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCountryCallCoding, FieldTelephoneNumber, FieldPassword, FieldCreateDate, FieldLastLoginDate, FieldName, FieldIcon, FieldPwdConfig, }
Columns holds all SQL columns for user fields.
Functions ¶
func CountryCallCoding ¶
CountryCallCoding applies equality check predicate on the "country_call_coding" field. It's identical to CountryCallCodingEQ.
func CountryCallCodingContains ¶
CountryCallCodingContains applies the Contains predicate on the "country_call_coding" field.
func CountryCallCodingContainsFold ¶
CountryCallCodingContainsFold applies the ContainsFold predicate on the "country_call_coding" field.
func CountryCallCodingEQ ¶
CountryCallCodingEQ applies the EQ predicate on the "country_call_coding" field.
func CountryCallCodingEqualFold ¶
CountryCallCodingEqualFold applies the EqualFold predicate on the "country_call_coding" field.
func CountryCallCodingGT ¶
CountryCallCodingGT applies the GT predicate on the "country_call_coding" field.
func CountryCallCodingGTE ¶
CountryCallCodingGTE applies the GTE predicate on the "country_call_coding" field.
func CountryCallCodingHasPrefix ¶
CountryCallCodingHasPrefix applies the HasPrefix predicate on the "country_call_coding" field.
func CountryCallCodingHasSuffix ¶
CountryCallCodingHasSuffix applies the HasSuffix predicate on the "country_call_coding" field.
func CountryCallCodingIn ¶
CountryCallCodingIn applies the In predicate on the "country_call_coding" field.
func CountryCallCodingLT ¶
CountryCallCodingLT applies the LT predicate on the "country_call_coding" field.
func CountryCallCodingLTE ¶
CountryCallCodingLTE applies the LTE predicate on the "country_call_coding" field.
func CountryCallCodingNEQ ¶
CountryCallCodingNEQ applies the NEQ predicate on the "country_call_coding" field.
func CountryCallCodingNotIn ¶
CountryCallCodingNotIn applies the NotIn predicate on the "country_call_coding" field.
func CreateDate ¶
CreateDate applies equality check predicate on the "create_date" field. It's identical to CreateDateEQ.
func CreateDateEQ ¶
CreateDateEQ applies the EQ predicate on the "create_date" field.
func CreateDateGT ¶
CreateDateGT applies the GT predicate on the "create_date" field.
func CreateDateGTE ¶
CreateDateGTE applies the GTE predicate on the "create_date" field.
func CreateDateIn ¶
CreateDateIn applies the In predicate on the "create_date" field.
func CreateDateLT ¶
CreateDateLT applies the LT predicate on the "create_date" field.
func CreateDateLTE ¶
CreateDateLTE applies the LTE predicate on the "create_date" field.
func CreateDateNEQ ¶
CreateDateNEQ applies the NEQ predicate on the "create_date" field.
func CreateDateNotIn ¶
CreateDateNotIn applies the NotIn predicate on the "create_date" field.
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func LastLoginDate ¶
LastLoginDate applies equality check predicate on the "last_login_date" field. It's identical to LastLoginDateEQ.
func LastLoginDateEQ ¶
LastLoginDateEQ applies the EQ predicate on the "last_login_date" field.
func LastLoginDateGT ¶
LastLoginDateGT applies the GT predicate on the "last_login_date" field.
func LastLoginDateGTE ¶
LastLoginDateGTE applies the GTE predicate on the "last_login_date" field.
func LastLoginDateIn ¶
LastLoginDateIn applies the In predicate on the "last_login_date" field.
func LastLoginDateLT ¶
LastLoginDateLT applies the LT predicate on the "last_login_date" field.
func LastLoginDateLTE ¶
LastLoginDateLTE applies the LTE predicate on the "last_login_date" field.
func LastLoginDateNEQ ¶
LastLoginDateNEQ applies the NEQ predicate on the "last_login_date" field.
func LastLoginDateNotIn ¶
LastLoginDateNotIn applies the NotIn predicate on the "last_login_date" 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 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 PwdConfig ¶ added in v0.0.3
PwdConfig applies equality check predicate on the "pwd_config" field. It's identical to PwdConfigEQ.
func PwdConfigEQ ¶ added in v0.0.3
PwdConfigEQ applies the EQ predicate on the "pwd_config" field.
func PwdConfigNEQ ¶ added in v0.0.3
PwdConfigNEQ applies the NEQ predicate on the "pwd_config" field.
func TelephoneNumber ¶
TelephoneNumber applies equality check predicate on the "telephone_number" field. It's identical to TelephoneNumberEQ.
func TelephoneNumberContains ¶
TelephoneNumberContains applies the Contains predicate on the "telephone_number" field.
func TelephoneNumberContainsFold ¶
TelephoneNumberContainsFold applies the ContainsFold predicate on the "telephone_number" field.
func TelephoneNumberEQ ¶
TelephoneNumberEQ applies the EQ predicate on the "telephone_number" field.
func TelephoneNumberEqualFold ¶
TelephoneNumberEqualFold applies the EqualFold predicate on the "telephone_number" field.
func TelephoneNumberGT ¶
TelephoneNumberGT applies the GT predicate on the "telephone_number" field.
func TelephoneNumberGTE ¶
TelephoneNumberGTE applies the GTE predicate on the "telephone_number" field.
func TelephoneNumberHasPrefix ¶
TelephoneNumberHasPrefix applies the HasPrefix predicate on the "telephone_number" field.
func TelephoneNumberHasSuffix ¶
TelephoneNumberHasSuffix applies the HasSuffix predicate on the "telephone_number" field.
func TelephoneNumberIn ¶
TelephoneNumberIn applies the In predicate on the "telephone_number" field.
func TelephoneNumberLT ¶
TelephoneNumberLT applies the LT predicate on the "telephone_number" field.
func TelephoneNumberLTE ¶
TelephoneNumberLTE applies the LTE predicate on the "telephone_number" field.
func TelephoneNumberNEQ ¶
TelephoneNumberNEQ applies the NEQ predicate on the "telephone_number" field.
func TelephoneNumberNotIn ¶
TelephoneNumberNotIn applies the NotIn predicate on the "telephone_number" 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 ByCountryCallCoding ¶
func ByCountryCallCoding(opts ...sql.OrderTermOption) OrderOption
ByCountryCallCoding orders the results by the country_call_coding field.
func ByCreateDate ¶
func ByCreateDate(opts ...sql.OrderTermOption) OrderOption
ByCreateDate orders the results by the create_date field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIcon ¶
func ByIcon(opts ...sql.OrderTermOption) OrderOption
ByIcon orders the results by the icon field.
func ByLastLoginDate ¶
func ByLastLoginDate(opts ...sql.OrderTermOption) OrderOption
ByLastLoginDate orders the results by the last_login_date field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPwdConfig ¶ added in v0.0.3
func ByPwdConfig(opts ...sql.OrderTermOption) OrderOption
ByPwdConfig orders the results by the pwd_config field.
func ByTelephoneNumber ¶
func ByTelephoneNumber(opts ...sql.OrderTermOption) OrderOption
ByTelephoneNumber orders the results by the telephone_number field.