Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Users) predicate.Users
- func BirthdayCount(v int) predicate.Users
- func BirthdayCountEQ(v int) predicate.Users
- func BirthdayCountGT(v int) predicate.Users
- func BirthdayCountGTE(v int) predicate.Users
- func BirthdayCountIn(vs ...int) predicate.Users
- func BirthdayCountLT(v int) predicate.Users
- func BirthdayCountLTE(v int) predicate.Users
- func BirthdayCountNEQ(v int) predicate.Users
- func BirthdayCountNotIn(vs ...int) predicate.Users
- func FullName(v string) predicate.Users
- func FullNameContains(v string) predicate.Users
- func FullNameContainsFold(v string) predicate.Users
- func FullNameEQ(v string) predicate.Users
- func FullNameEqualFold(v string) predicate.Users
- func FullNameGT(v string) predicate.Users
- func FullNameGTE(v string) predicate.Users
- func FullNameHasPrefix(v string) predicate.Users
- func FullNameHasSuffix(v string) predicate.Users
- func FullNameIn(vs ...string) predicate.Users
- func FullNameLT(v string) predicate.Users
- func FullNameLTE(v string) predicate.Users
- func FullNameNEQ(v string) predicate.Users
- func FullNameNotIn(vs ...string) predicate.Users
- func ID(id int) predicate.Users
- func IDEQ(id int) predicate.Users
- func IDGT(id int) predicate.Users
- func IDGTE(id int) predicate.Users
- func IDIn(ids ...int) predicate.Users
- func IDLT(id int) predicate.Users
- func IDLTE(id int) predicate.Users
- func IDNEQ(id int) predicate.Users
- func IDNotIn(ids ...int) predicate.Users
- func IsPremium(v bool) predicate.Users
- func IsPremiumEQ(v bool) predicate.Users
- func IsPremiumNEQ(v bool) predicate.Users
- func Not(p predicate.Users) predicate.Users
- func Or(predicates ...predicate.Users) predicate.Users
- func TelegramID(v int) predicate.Users
- func TelegramIDEQ(v int) predicate.Users
- func TelegramIDGT(v int) predicate.Users
- func TelegramIDGTE(v int) predicate.Users
- func TelegramIDIn(vs ...int) predicate.Users
- func TelegramIDLT(v int) predicate.Users
- func TelegramIDLTE(v int) predicate.Users
- func TelegramIDNEQ(v int) predicate.Users
- func TelegramIDNotIn(vs ...int) predicate.Users
- func Username(v string) predicate.Users
- func UsernameContains(v string) predicate.Users
- func UsernameContainsFold(v string) predicate.Users
- func UsernameEQ(v string) predicate.Users
- func UsernameEqualFold(v string) predicate.Users
- func UsernameGT(v string) predicate.Users
- func UsernameGTE(v string) predicate.Users
- func UsernameHasPrefix(v string) predicate.Users
- func UsernameHasSuffix(v string) predicate.Users
- func UsernameIn(vs ...string) predicate.Users
- func UsernameIsNil() predicate.Users
- func UsernameLT(v string) predicate.Users
- func UsernameLTE(v string) predicate.Users
- func UsernameNEQ(v string) predicate.Users
- func UsernameNotIn(vs ...string) predicate.Users
- func UsernameNotNil() predicate.Users
- func ValidColumn(column string) bool
- type OrderOption
- func ByBirthdayCount(opts ...sql.OrderTermOption) OrderOption
- func ByFullName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsPremium(opts ...sql.OrderTermOption) OrderOption
- func ByTelegramID(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the users type in the database. Label = "users" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTelegramID holds the string denoting the telegram_id field in the database. FieldTelegramID = "telegram_id" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldFullName holds the string denoting the full_name field in the database. FieldFullName = "full_name" // FieldIsPremium holds the string denoting the is_premium field in the database. FieldIsPremium = "is_premium" // FieldBirthdayCount holds the string denoting the birthday_count field in the database. FieldBirthdayCount = "birthday_count" // Table holds the table name of the users in the database. Table = "users" )
Variables ¶
var ( // TelegramIDValidator is a validator for the "telegram_id" field. It is called by the builders before save. TelegramIDValidator func(int) error // DefaultIsPremium holds the default value on creation for the "is_premium" field. DefaultIsPremium bool // DefaultBirthdayCount holds the default value on creation for the "birthday_count" field. DefaultBirthdayCount int )
var Columns = []string{ FieldID, FieldTelegramID, FieldUsername, FieldFullName, FieldIsPremium, FieldBirthdayCount, }
Columns holds all SQL columns for users fields.
Functions ¶
func BirthdayCount ¶
BirthdayCount applies equality check predicate on the "birthday_count" field. It's identical to BirthdayCountEQ.
func BirthdayCountEQ ¶
BirthdayCountEQ applies the EQ predicate on the "birthday_count" field.
func BirthdayCountGT ¶
BirthdayCountGT applies the GT predicate on the "birthday_count" field.
func BirthdayCountGTE ¶
BirthdayCountGTE applies the GTE predicate on the "birthday_count" field.
func BirthdayCountIn ¶
BirthdayCountIn applies the In predicate on the "birthday_count" field.
func BirthdayCountLT ¶
BirthdayCountLT applies the LT predicate on the "birthday_count" field.
func BirthdayCountLTE ¶
BirthdayCountLTE applies the LTE predicate on the "birthday_count" field.
func BirthdayCountNEQ ¶
BirthdayCountNEQ applies the NEQ predicate on the "birthday_count" field.
func BirthdayCountNotIn ¶
BirthdayCountNotIn applies the NotIn predicate on the "birthday_count" 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 IsPremium ¶
IsPremium applies equality check predicate on the "is_premium" field. It's identical to IsPremiumEQ.
func IsPremiumEQ ¶
IsPremiumEQ applies the EQ predicate on the "is_premium" field.
func IsPremiumNEQ ¶
IsPremiumNEQ applies the NEQ predicate on the "is_premium" field.
func TelegramID ¶
TelegramID applies equality check predicate on the "telegram_id" field. It's identical to TelegramIDEQ.
func TelegramIDEQ ¶
TelegramIDEQ applies the EQ predicate on the "telegram_id" field.
func TelegramIDGT ¶
TelegramIDGT applies the GT predicate on the "telegram_id" field.
func TelegramIDGTE ¶
TelegramIDGTE applies the GTE predicate on the "telegram_id" field.
func TelegramIDIn ¶
TelegramIDIn applies the In predicate on the "telegram_id" field.
func TelegramIDLT ¶
TelegramIDLT applies the LT predicate on the "telegram_id" field.
func TelegramIDLTE ¶
TelegramIDLTE applies the LTE predicate on the "telegram_id" field.
func TelegramIDNEQ ¶
TelegramIDNEQ applies the NEQ predicate on the "telegram_id" field.
func TelegramIDNotIn ¶
TelegramIDNotIn applies the NotIn predicate on the "telegram_id" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameIsNil ¶
UsernameIsNil applies the IsNil predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func UsernameNotNil ¶
UsernameNotNil applies the NotNil predicate on the "username" 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 Users queries.
func ByBirthdayCount ¶
func ByBirthdayCount(opts ...sql.OrderTermOption) OrderOption
ByBirthdayCount orders the results by the birthday_count 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 ByIsPremium ¶
func ByIsPremium(opts ...sql.OrderTermOption) OrderOption
ByIsPremium orders the results by the is_premium field.
func ByTelegramID ¶
func ByTelegramID(opts ...sql.OrderTermOption) OrderOption
ByTelegramID orders the results by the telegram_id field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.