Documentation
¶
Index ¶
- Constants
- Variables
- 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 BirthdayIsNil() 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 BirthdayNotNil() 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 FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(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 LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func MiddleName(v string) predicate.User
- func MiddleNameContains(v string) predicate.User
- func MiddleNameContainsFold(v string) predicate.User
- func MiddleNameEQ(v string) predicate.User
- func MiddleNameEqualFold(v string) predicate.User
- func MiddleNameGT(v string) predicate.User
- func MiddleNameGTE(v string) predicate.User
- func MiddleNameHasPrefix(v string) predicate.User
- func MiddleNameHasSuffix(v string) predicate.User
- func MiddleNameIn(vs ...string) predicate.User
- func MiddleNameIsNil() predicate.User
- func MiddleNameLT(v string) predicate.User
- func MiddleNameLTE(v string) predicate.User
- func MiddleNameNEQ(v string) predicate.User
- func MiddleNameNotIn(vs ...string) predicate.User
- func MiddleNameNotNil() 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 PhoneNumber(v string) predicate.User
- func PhoneNumberContains(v string) predicate.User
- func PhoneNumberContainsFold(v string) predicate.User
- func PhoneNumberEQ(v string) predicate.User
- func PhoneNumberEqualFold(v string) predicate.User
- func PhoneNumberGT(v string) predicate.User
- func PhoneNumberGTE(v string) predicate.User
- func PhoneNumberHasPrefix(v string) predicate.User
- func PhoneNumberHasSuffix(v string) predicate.User
- func PhoneNumberIn(vs ...string) predicate.User
- func PhoneNumberIsNil() predicate.User
- func PhoneNumberLT(v string) predicate.User
- func PhoneNumberLTE(v string) predicate.User
- func PhoneNumberNEQ(v string) predicate.User
- func PhoneNumberNotIn(vs ...string) predicate.User
- func PhoneNumberNotNil() predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByBirthday(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByMiddleName(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhoneNumber(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" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldMiddleName holds the string denoting the middle_name field in the database. FieldMiddleName = "middle_name" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPhoneNumber holds the string denoting the phone_number field in the database. FieldPhoneNumber = "phone_number" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldFirstName, FieldLastName, FieldMiddleName, FieldBirthday, FieldEmail, FieldPhoneNumber, FieldPassword, }
Columns holds all SQL columns for user fields.
Functions ¶
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 BirthdayIsNil ¶
BirthdayIsNil applies the IsNil 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 BirthdayNotNil ¶
BirthdayNotNil applies the NotNil predicate on the "birthday" 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 FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func MiddleName ¶
MiddleName applies equality check predicate on the "middle_name" field. It's identical to MiddleNameEQ.
func MiddleNameContains ¶
MiddleNameContains applies the Contains predicate on the "middle_name" field.
func MiddleNameContainsFold ¶
MiddleNameContainsFold applies the ContainsFold predicate on the "middle_name" field.
func MiddleNameEQ ¶
MiddleNameEQ applies the EQ predicate on the "middle_name" field.
func MiddleNameEqualFold ¶
MiddleNameEqualFold applies the EqualFold predicate on the "middle_name" field.
func MiddleNameGT ¶
MiddleNameGT applies the GT predicate on the "middle_name" field.
func MiddleNameGTE ¶
MiddleNameGTE applies the GTE predicate on the "middle_name" field.
func MiddleNameHasPrefix ¶
MiddleNameHasPrefix applies the HasPrefix predicate on the "middle_name" field.
func MiddleNameHasSuffix ¶
MiddleNameHasSuffix applies the HasSuffix predicate on the "middle_name" field.
func MiddleNameIn ¶
MiddleNameIn applies the In predicate on the "middle_name" field.
func MiddleNameIsNil ¶
MiddleNameIsNil applies the IsNil predicate on the "middle_name" field.
func MiddleNameLT ¶
MiddleNameLT applies the LT predicate on the "middle_name" field.
func MiddleNameLTE ¶
MiddleNameLTE applies the LTE predicate on the "middle_name" field.
func MiddleNameNEQ ¶
MiddleNameNEQ applies the NEQ predicate on the "middle_name" field.
func MiddleNameNotIn ¶
MiddleNameNotIn applies the NotIn predicate on the "middle_name" field.
func MiddleNameNotNil ¶
MiddleNameNotNil applies the NotNil predicate on the "middle_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 PhoneNumber ¶
PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.
func PhoneNumberContains ¶
PhoneNumberContains applies the Contains predicate on the "phone_number" field.
func PhoneNumberContainsFold ¶
PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.
func PhoneNumberEQ ¶
PhoneNumberEQ applies the EQ predicate on the "phone_number" field.
func PhoneNumberEqualFold ¶
PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.
func PhoneNumberGT ¶
PhoneNumberGT applies the GT predicate on the "phone_number" field.
func PhoneNumberGTE ¶
PhoneNumberGTE applies the GTE predicate on the "phone_number" field.
func PhoneNumberHasPrefix ¶
PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.
func PhoneNumberHasSuffix ¶
PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.
func PhoneNumberIn ¶
PhoneNumberIn applies the In predicate on the "phone_number" field.
func PhoneNumberIsNil ¶
PhoneNumberIsNil applies the IsNil predicate on the "phone_number" field.
func PhoneNumberLT ¶
PhoneNumberLT applies the LT predicate on the "phone_number" field.
func PhoneNumberLTE ¶
PhoneNumberLTE applies the LTE predicate on the "phone_number" field.
func PhoneNumberNEQ ¶
PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.
func PhoneNumberNotIn ¶
PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.
func PhoneNumberNotNil ¶
PhoneNumberNotNil applies the NotNil predicate on the "phone_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 ByBirthday ¶
func ByBirthday(opts ...sql.OrderTermOption) OrderOption
ByBirthday orders the results by the birthday field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByMiddleName ¶
func ByMiddleName(opts ...sql.OrderTermOption) OrderOption
ByMiddleName orders the results by the middle_name field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPhoneNumber ¶
func ByPhoneNumber(opts ...sql.OrderTermOption) OrderOption
ByPhoneNumber orders the results by the phone_number field.