users

package
v0.0.0-...-c2f1dcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for users fields.

Functions

func And

func And(predicates ...predicate.Users) predicate.Users

And groups predicates with the AND operator between them.

func BirthdayCount

func BirthdayCount(v int) predicate.Users

BirthdayCount applies equality check predicate on the "birthday_count" field. It's identical to BirthdayCountEQ.

func BirthdayCountEQ

func BirthdayCountEQ(v int) predicate.Users

BirthdayCountEQ applies the EQ predicate on the "birthday_count" field.

func BirthdayCountGT

func BirthdayCountGT(v int) predicate.Users

BirthdayCountGT applies the GT predicate on the "birthday_count" field.

func BirthdayCountGTE

func BirthdayCountGTE(v int) predicate.Users

BirthdayCountGTE applies the GTE predicate on the "birthday_count" field.

func BirthdayCountIn

func BirthdayCountIn(vs ...int) predicate.Users

BirthdayCountIn applies the In predicate on the "birthday_count" field.

func BirthdayCountLT

func BirthdayCountLT(v int) predicate.Users

BirthdayCountLT applies the LT predicate on the "birthday_count" field.

func BirthdayCountLTE

func BirthdayCountLTE(v int) predicate.Users

BirthdayCountLTE applies the LTE predicate on the "birthday_count" field.

func BirthdayCountNEQ

func BirthdayCountNEQ(v int) predicate.Users

BirthdayCountNEQ applies the NEQ predicate on the "birthday_count" field.

func BirthdayCountNotIn

func BirthdayCountNotIn(vs ...int) predicate.Users

BirthdayCountNotIn applies the NotIn predicate on the "birthday_count" field.

func FullName

func FullName(v string) predicate.Users

FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.Users

FullNameContains applies the Contains predicate on the "full_name" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.Users

FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.

func FullNameEQ

func FullNameEQ(v string) predicate.Users

FullNameEQ applies the EQ predicate on the "full_name" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.Users

FullNameEqualFold applies the EqualFold predicate on the "full_name" field.

func FullNameGT

func FullNameGT(v string) predicate.Users

FullNameGT applies the GT predicate on the "full_name" field.

func FullNameGTE

func FullNameGTE(v string) predicate.Users

FullNameGTE applies the GTE predicate on the "full_name" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.Users

FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.Users

FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.

func FullNameIn

func FullNameIn(vs ...string) predicate.Users

FullNameIn applies the In predicate on the "full_name" field.

func FullNameLT

func FullNameLT(v string) predicate.Users

FullNameLT applies the LT predicate on the "full_name" field.

func FullNameLTE

func FullNameLTE(v string) predicate.Users

FullNameLTE applies the LTE predicate on the "full_name" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.Users

FullNameNEQ applies the NEQ predicate on the "full_name" field.

func FullNameNotIn

func FullNameNotIn(vs ...string) predicate.Users

FullNameNotIn applies the NotIn predicate on the "full_name" field.

func ID

func ID(id int) predicate.Users

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Users

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Users

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Users

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Users

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Users

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Users

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Users

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Users

IDNotIn applies the NotIn predicate on the ID field.

func IsPremium

func IsPremium(v bool) predicate.Users

IsPremium applies equality check predicate on the "is_premium" field. It's identical to IsPremiumEQ.

func IsPremiumEQ

func IsPremiumEQ(v bool) predicate.Users

IsPremiumEQ applies the EQ predicate on the "is_premium" field.

func IsPremiumNEQ

func IsPremiumNEQ(v bool) predicate.Users

IsPremiumNEQ applies the NEQ predicate on the "is_premium" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Users) predicate.Users

Or groups predicates with the OR operator between them.

func TelegramID

func TelegramID(v int) predicate.Users

TelegramID applies equality check predicate on the "telegram_id" field. It's identical to TelegramIDEQ.

func TelegramIDEQ

func TelegramIDEQ(v int) predicate.Users

TelegramIDEQ applies the EQ predicate on the "telegram_id" field.

func TelegramIDGT

func TelegramIDGT(v int) predicate.Users

TelegramIDGT applies the GT predicate on the "telegram_id" field.

func TelegramIDGTE

func TelegramIDGTE(v int) predicate.Users

TelegramIDGTE applies the GTE predicate on the "telegram_id" field.

func TelegramIDIn

func TelegramIDIn(vs ...int) predicate.Users

TelegramIDIn applies the In predicate on the "telegram_id" field.

func TelegramIDLT

func TelegramIDLT(v int) predicate.Users

TelegramIDLT applies the LT predicate on the "telegram_id" field.

func TelegramIDLTE

func TelegramIDLTE(v int) predicate.Users

TelegramIDLTE applies the LTE predicate on the "telegram_id" field.

func TelegramIDNEQ

func TelegramIDNEQ(v int) predicate.Users

TelegramIDNEQ applies the NEQ predicate on the "telegram_id" field.

func TelegramIDNotIn

func TelegramIDNotIn(vs ...int) predicate.Users

TelegramIDNotIn applies the NotIn predicate on the "telegram_id" field.

func Username

func Username(v string) predicate.Users

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Users

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Users

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Users

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Users

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Users

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Users

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Users

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Users

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Users

UsernameIn applies the In predicate on the "username" field.

func UsernameIsNil

func UsernameIsNil() predicate.Users

UsernameIsNil applies the IsNil predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Users

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Users

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Users

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Users

UsernameNotIn applies the NotIn predicate on the "username" field.

func UsernameNotNil

func UsernameNotNil() predicate.Users

UsernameNotNil applies the NotNil predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL