Documentation
¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.User
- func AdminEQ(v bool) predicate.User
- func AdminIsNil() predicate.User
- func AdminNEQ(v bool) predicate.User
- func AdminNotNil() predicate.User
- func And(predicates ...predicate.User) predicate.User
- func AvatarHash(v string) predicate.User
- func AvatarHashContains(v string) predicate.User
- func AvatarHashContainsFold(v string) predicate.User
- func AvatarHashEQ(v string) predicate.User
- func AvatarHashEqualFold(v string) predicate.User
- func AvatarHashGT(v string) predicate.User
- func AvatarHashGTE(v string) predicate.User
- func AvatarHashHasPrefix(v string) predicate.User
- func AvatarHashHasSuffix(v string) predicate.User
- func AvatarHashIn(vs ...string) predicate.User
- func AvatarHashIsNil() predicate.User
- func AvatarHashLT(v string) predicate.User
- func AvatarHashLTE(v string) predicate.User
- func AvatarHashNEQ(v string) predicate.User
- func AvatarHashNotIn(vs ...string) predicate.User
- func AvatarHashNotNil() predicate.User
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func BanReason(v string) predicate.User
- func BanReasonContains(v string) predicate.User
- func BanReasonContainsFold(v string) predicate.User
- func BanReasonEQ(v string) predicate.User
- func BanReasonEqualFold(v string) predicate.User
- func BanReasonGT(v string) predicate.User
- func BanReasonGTE(v string) predicate.User
- func BanReasonHasPrefix(v string) predicate.User
- func BanReasonHasSuffix(v string) predicate.User
- func BanReasonIn(vs ...string) predicate.User
- func BanReasonIsNil() predicate.User
- func BanReasonLT(v string) predicate.User
- func BanReasonLTE(v string) predicate.User
- func BanReasonNEQ(v string) predicate.User
- func BanReasonNotIn(vs ...string) predicate.User
- func BanReasonNotNil() predicate.User
- func Banned(v bool) predicate.User
- func BannedEQ(v bool) predicate.User
- func BannedIsNil() predicate.User
- func BannedNEQ(v bool) predicate.User
- func BannedNotNil() predicate.User
- func Bot(v bool) predicate.User
- func BotEQ(v bool) predicate.User
- func BotIsNil() predicate.User
- func BotNEQ(v bool) predicate.User
- func BotNotNil() predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func Discriminator(v string) predicate.User
- func DiscriminatorContains(v string) predicate.User
- func DiscriminatorContainsFold(v string) predicate.User
- func DiscriminatorEQ(v string) predicate.User
- func DiscriminatorEqualFold(v string) predicate.User
- func DiscriminatorGT(v string) predicate.User
- func DiscriminatorGTE(v string) predicate.User
- func DiscriminatorHasPrefix(v string) predicate.User
- func DiscriminatorHasSuffix(v string) predicate.User
- func DiscriminatorIn(vs ...string) predicate.User
- func DiscriminatorLT(v string) predicate.User
- func DiscriminatorLTE(v string) predicate.User
- func DiscriminatorNEQ(v string) predicate.User
- func DiscriminatorNotIn(vs ...string) 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 Flags(v uint64) predicate.User
- func FlagsEQ(v uint64) predicate.User
- func FlagsGT(v uint64) predicate.User
- func FlagsGTE(v uint64) predicate.User
- func FlagsIn(vs ...uint64) predicate.User
- func FlagsIsNil() predicate.User
- func FlagsLT(v uint64) predicate.User
- func FlagsLTE(v uint64) predicate.User
- func FlagsNEQ(v uint64) predicate.User
- func FlagsNotIn(vs ...uint64) predicate.User
- func FlagsNotNil() predicate.User
- func HasBannedBy() predicate.User
- func HasBannedByWith(preds ...predicate.User) predicate.User
- func HasBannedUsers() predicate.User
- func HasBannedUsersWith(preds ...predicate.User) predicate.User
- func HasUserGuilds() predicate.User
- func HasUserGuildsWith(preds ...predicate.Guild) 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 Locale(v string) predicate.User
- func LocaleContains(v string) predicate.User
- func LocaleContainsFold(v string) predicate.User
- func LocaleEQ(v string) predicate.User
- func LocaleEqualFold(v string) predicate.User
- func LocaleGT(v string) predicate.User
- func LocaleGTE(v string) predicate.User
- func LocaleHasPrefix(v string) predicate.User
- func LocaleHasSuffix(v string) predicate.User
- func LocaleIn(vs ...string) predicate.User
- func LocaleIsNil() predicate.User
- func LocaleLT(v string) predicate.User
- func LocaleLTE(v string) predicate.User
- func LocaleNEQ(v string) predicate.User
- func LocaleNotIn(vs ...string) predicate.User
- func LocaleNotNil() predicate.User
- func MfaEnabled(v bool) predicate.User
- func MfaEnabledEQ(v bool) predicate.User
- func MfaEnabledIsNil() predicate.User
- func MfaEnabledNEQ(v bool) predicate.User
- func MfaEnabledNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PremiumType(v int) predicate.User
- func PremiumTypeEQ(v int) predicate.User
- func PremiumTypeGT(v int) predicate.User
- func PremiumTypeGTE(v int) predicate.User
- func PremiumTypeIn(vs ...int) predicate.User
- func PremiumTypeIsNil() predicate.User
- func PremiumTypeLT(v int) predicate.User
- func PremiumTypeLTE(v int) predicate.User
- func PremiumTypeNEQ(v int) predicate.User
- func PremiumTypeNotIn(vs ...int) predicate.User
- func PremiumTypeNotNil() predicate.User
- func PublicFlags(v uint64) predicate.User
- func PublicFlagsEQ(v uint64) predicate.User
- func PublicFlagsGT(v uint64) predicate.User
- func PublicFlagsGTE(v uint64) predicate.User
- func PublicFlagsIn(vs ...uint64) predicate.User
- func PublicFlagsIsNil() predicate.User
- func PublicFlagsLT(v uint64) predicate.User
- func PublicFlagsLTE(v uint64) predicate.User
- func PublicFlagsNEQ(v uint64) predicate.User
- func PublicFlagsNotIn(vs ...uint64) predicate.User
- func PublicFlagsNotNil() predicate.User
- func System(v bool) predicate.User
- func SystemEQ(v bool) predicate.User
- func SystemIsNil() predicate.User
- func SystemNEQ(v bool) predicate.User
- func SystemNotNil() predicate.User
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(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
- func Verified(v bool) predicate.User
- func VerifiedEQ(v bool) predicate.User
- func VerifiedIsNil() predicate.User
- func VerifiedNEQ(v bool) predicate.User
- func VerifiedNotNil() predicate.User
- type OrderOption
- func ByAdmin(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarHash(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByBanReason(opts ...sql.OrderTermOption) OrderOption
- func ByBanned(opts ...sql.OrderTermOption) OrderOption
- func ByBannedByField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBannedUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBannedUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByBot(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDiscriminator(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFlags(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocale(opts ...sql.OrderTermOption) OrderOption
- func ByMfaEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByPremiumType(opts ...sql.OrderTermOption) OrderOption
- func ByPublicFlags(opts ...sql.OrderTermOption) OrderOption
- func BySystem(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserGuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserGuildsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
- func ByVerified(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" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldAdmin holds the string denoting the admin field in the database. FieldAdmin = "admin" // FieldBanned holds the string denoting the banned field in the database. FieldBanned = "banned" // FieldBanReason holds the string denoting the ban_reason field in the database. FieldBanReason = "ban_reason" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldDiscriminator holds the string denoting the discriminator field in the database. FieldDiscriminator = "discriminator" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldAvatarHash holds the string denoting the avatar_hash field in the database. FieldAvatarHash = "avatar_hash" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldLocale holds the string denoting the locale field in the database. FieldLocale = "locale" // FieldBot holds the string denoting the bot field in the database. FieldBot = "bot" // FieldSystem holds the string denoting the system field in the database. FieldSystem = "system" // FieldMfaEnabled holds the string denoting the mfa_enabled field in the database. FieldMfaEnabled = "mfa_enabled" // FieldVerified holds the string denoting the verified field in the database. FieldVerified = "verified" // FieldFlags holds the string denoting the flags field in the database. FieldFlags = "flags" // FieldPremiumType holds the string denoting the premium_type field in the database. FieldPremiumType = "premium_type" // FieldPublicFlags holds the string denoting the public_flags field in the database. FieldPublicFlags = "public_flags" // EdgeUserGuilds holds the string denoting the user_guilds edge name in mutations. EdgeUserGuilds = "user_guilds" // EdgeBannedUsers holds the string denoting the banned_users edge name in mutations. EdgeBannedUsers = "banned_users" // EdgeBannedBy holds the string denoting the banned_by edge name in mutations. EdgeBannedBy = "banned_by" // Table holds the table name of the user in the database. Table = "users" // UserGuildsTable is the table that holds the user_guilds relation/edge. The primary key declared below. UserGuildsTable = "user_user_guilds" // UserGuildsInverseTable is the table name for the Guild entity. // It exists in this package in order to avoid circular dependency with the "guild" package. UserGuildsInverseTable = "guilds" // BannedUsersTable is the table that holds the banned_users relation/edge. BannedUsersTable = "users" // BannedUsersColumn is the table column denoting the banned_users relation/edge. BannedUsersColumn = "user_banned_users" // BannedByTable is the table that holds the banned_by relation/edge. BannedByTable = "users" // BannedByColumn is the table column denoting the banned_by relation/edge. BannedByColumn = "user_banned_users" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // DiscriminatorValidator is a validator for the "discriminator" field. It is called by the builders before save. DiscriminatorValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // AvatarHashValidator is a validator for the "avatar_hash" field. It is called by the builders before save. AvatarHashValidator func(string) error // AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save. AvatarURLValidator func(string) error // LocaleValidator is a validator for the "locale" field. It is called by the builders before save. LocaleValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/lrstanley/spectrograph/internal/database/ent/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUserID, FieldAdmin, FieldBanned, FieldBanReason, FieldUsername, FieldDiscriminator, FieldEmail, FieldAvatarHash, FieldAvatarURL, FieldLocale, FieldBot, FieldSystem, FieldMfaEnabled, FieldVerified, FieldFlags, FieldPremiumType, FieldPublicFlags, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_banned_users",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
var ( // UserGuildsPrimaryKey and UserGuildsColumn2 are the table columns denoting the // primary key for the user_guilds relation (M2M). UserGuildsPrimaryKey = []string{"user_id", "guild_id"} )
Functions ¶
func Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func AdminIsNil ¶
AdminIsNil applies the IsNil predicate on the "admin" field.
func AdminNotNil ¶
AdminNotNil applies the NotNil predicate on the "admin" field.
func AvatarHash ¶
AvatarHash applies equality check predicate on the "avatar_hash" field. It's identical to AvatarHashEQ.
func AvatarHashContains ¶
AvatarHashContains applies the Contains predicate on the "avatar_hash" field.
func AvatarHashContainsFold ¶
AvatarHashContainsFold applies the ContainsFold predicate on the "avatar_hash" field.
func AvatarHashEQ ¶
AvatarHashEQ applies the EQ predicate on the "avatar_hash" field.
func AvatarHashEqualFold ¶
AvatarHashEqualFold applies the EqualFold predicate on the "avatar_hash" field.
func AvatarHashGT ¶
AvatarHashGT applies the GT predicate on the "avatar_hash" field.
func AvatarHashGTE ¶
AvatarHashGTE applies the GTE predicate on the "avatar_hash" field.
func AvatarHashHasPrefix ¶
AvatarHashHasPrefix applies the HasPrefix predicate on the "avatar_hash" field.
func AvatarHashHasSuffix ¶
AvatarHashHasSuffix applies the HasSuffix predicate on the "avatar_hash" field.
func AvatarHashIn ¶
AvatarHashIn applies the In predicate on the "avatar_hash" field.
func AvatarHashIsNil ¶
AvatarHashIsNil applies the IsNil predicate on the "avatar_hash" field.
func AvatarHashLT ¶
AvatarHashLT applies the LT predicate on the "avatar_hash" field.
func AvatarHashLTE ¶
AvatarHashLTE applies the LTE predicate on the "avatar_hash" field.
func AvatarHashNEQ ¶
AvatarHashNEQ applies the NEQ predicate on the "avatar_hash" field.
func AvatarHashNotIn ¶
AvatarHashNotIn applies the NotIn predicate on the "avatar_hash" field.
func AvatarHashNotNil ¶
AvatarHashNotNil applies the NotNil predicate on the "avatar_hash" field.
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func BanReason ¶
BanReason applies equality check predicate on the "ban_reason" field. It's identical to BanReasonEQ.
func BanReasonContains ¶
BanReasonContains applies the Contains predicate on the "ban_reason" field.
func BanReasonContainsFold ¶
BanReasonContainsFold applies the ContainsFold predicate on the "ban_reason" field.
func BanReasonEQ ¶
BanReasonEQ applies the EQ predicate on the "ban_reason" field.
func BanReasonEqualFold ¶
BanReasonEqualFold applies the EqualFold predicate on the "ban_reason" field.
func BanReasonGT ¶
BanReasonGT applies the GT predicate on the "ban_reason" field.
func BanReasonGTE ¶
BanReasonGTE applies the GTE predicate on the "ban_reason" field.
func BanReasonHasPrefix ¶
BanReasonHasPrefix applies the HasPrefix predicate on the "ban_reason" field.
func BanReasonHasSuffix ¶
BanReasonHasSuffix applies the HasSuffix predicate on the "ban_reason" field.
func BanReasonIn ¶
BanReasonIn applies the In predicate on the "ban_reason" field.
func BanReasonIsNil ¶
BanReasonIsNil applies the IsNil predicate on the "ban_reason" field.
func BanReasonLT ¶
BanReasonLT applies the LT predicate on the "ban_reason" field.
func BanReasonLTE ¶
BanReasonLTE applies the LTE predicate on the "ban_reason" field.
func BanReasonNEQ ¶
BanReasonNEQ applies the NEQ predicate on the "ban_reason" field.
func BanReasonNotIn ¶
BanReasonNotIn applies the NotIn predicate on the "ban_reason" field.
func BanReasonNotNil ¶
BanReasonNotNil applies the NotNil predicate on the "ban_reason" field.
func Banned ¶
Banned applies equality check predicate on the "banned" field. It's identical to BannedEQ.
func BannedIsNil ¶
BannedIsNil applies the IsNil predicate on the "banned" field.
func BannedNotNil ¶
BannedNotNil applies the NotNil predicate on the "banned" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Discriminator ¶
Discriminator applies equality check predicate on the "discriminator" field. It's identical to DiscriminatorEQ.
func DiscriminatorContains ¶
DiscriminatorContains applies the Contains predicate on the "discriminator" field.
func DiscriminatorContainsFold ¶
DiscriminatorContainsFold applies the ContainsFold predicate on the "discriminator" field.
func DiscriminatorEQ ¶
DiscriminatorEQ applies the EQ predicate on the "discriminator" field.
func DiscriminatorEqualFold ¶
DiscriminatorEqualFold applies the EqualFold predicate on the "discriminator" field.
func DiscriminatorGT ¶
DiscriminatorGT applies the GT predicate on the "discriminator" field.
func DiscriminatorGTE ¶
DiscriminatorGTE applies the GTE predicate on the "discriminator" field.
func DiscriminatorHasPrefix ¶
DiscriminatorHasPrefix applies the HasPrefix predicate on the "discriminator" field.
func DiscriminatorHasSuffix ¶
DiscriminatorHasSuffix applies the HasSuffix predicate on the "discriminator" field.
func DiscriminatorIn ¶
DiscriminatorIn applies the In predicate on the "discriminator" field.
func DiscriminatorLT ¶
DiscriminatorLT applies the LT predicate on the "discriminator" field.
func DiscriminatorLTE ¶
DiscriminatorLTE applies the LTE predicate on the "discriminator" field.
func DiscriminatorNEQ ¶
DiscriminatorNEQ applies the NEQ predicate on the "discriminator" field.
func DiscriminatorNotIn ¶
DiscriminatorNotIn applies the NotIn predicate on the "discriminator" 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 Flags ¶
Flags applies equality check predicate on the "flags" field. It's identical to FlagsEQ.
func FlagsIsNil ¶
FlagsIsNil applies the IsNil predicate on the "flags" field.
func FlagsNotIn ¶
FlagsNotIn applies the NotIn predicate on the "flags" field.
func FlagsNotNil ¶
FlagsNotNil applies the NotNil predicate on the "flags" field.
func HasBannedBy ¶
HasBannedBy applies the HasEdge predicate on the "banned_by" edge.
func HasBannedByWith ¶
HasBannedByWith applies the HasEdge predicate on the "banned_by" edge with a given conditions (other predicates).
func HasBannedUsers ¶
HasBannedUsers applies the HasEdge predicate on the "banned_users" edge.
func HasBannedUsersWith ¶
HasBannedUsersWith applies the HasEdge predicate on the "banned_users" edge with a given conditions (other predicates).
func HasUserGuilds ¶
HasUserGuilds applies the HasEdge predicate on the "user_guilds" edge.
func HasUserGuildsWith ¶
HasUserGuildsWith applies the HasEdge predicate on the "user_guilds" edge with a given conditions (other predicates).
func Locale ¶
Locale applies equality check predicate on the "locale" field. It's identical to LocaleEQ.
func LocaleContains ¶
LocaleContains applies the Contains predicate on the "locale" field.
func LocaleContainsFold ¶
LocaleContainsFold applies the ContainsFold predicate on the "locale" field.
func LocaleEqualFold ¶
LocaleEqualFold applies the EqualFold predicate on the "locale" field.
func LocaleHasPrefix ¶
LocaleHasPrefix applies the HasPrefix predicate on the "locale" field.
func LocaleHasSuffix ¶
LocaleHasSuffix applies the HasSuffix predicate on the "locale" field.
func LocaleIsNil ¶
LocaleIsNil applies the IsNil predicate on the "locale" field.
func LocaleNotIn ¶
LocaleNotIn applies the NotIn predicate on the "locale" field.
func LocaleNotNil ¶
LocaleNotNil applies the NotNil predicate on the "locale" field.
func MfaEnabled ¶
MfaEnabled applies equality check predicate on the "mfa_enabled" field. It's identical to MfaEnabledEQ.
func MfaEnabledEQ ¶
MfaEnabledEQ applies the EQ predicate on the "mfa_enabled" field.
func MfaEnabledIsNil ¶
MfaEnabledIsNil applies the IsNil predicate on the "mfa_enabled" field.
func MfaEnabledNEQ ¶
MfaEnabledNEQ applies the NEQ predicate on the "mfa_enabled" field.
func MfaEnabledNotNil ¶
MfaEnabledNotNil applies the NotNil predicate on the "mfa_enabled" field.
func PremiumType ¶
PremiumType applies equality check predicate on the "premium_type" field. It's identical to PremiumTypeEQ.
func PremiumTypeEQ ¶
PremiumTypeEQ applies the EQ predicate on the "premium_type" field.
func PremiumTypeGT ¶
PremiumTypeGT applies the GT predicate on the "premium_type" field.
func PremiumTypeGTE ¶
PremiumTypeGTE applies the GTE predicate on the "premium_type" field.
func PremiumTypeIn ¶
PremiumTypeIn applies the In predicate on the "premium_type" field.
func PremiumTypeIsNil ¶
PremiumTypeIsNil applies the IsNil predicate on the "premium_type" field.
func PremiumTypeLT ¶
PremiumTypeLT applies the LT predicate on the "premium_type" field.
func PremiumTypeLTE ¶
PremiumTypeLTE applies the LTE predicate on the "premium_type" field.
func PremiumTypeNEQ ¶
PremiumTypeNEQ applies the NEQ predicate on the "premium_type" field.
func PremiumTypeNotIn ¶
PremiumTypeNotIn applies the NotIn predicate on the "premium_type" field.
func PremiumTypeNotNil ¶
PremiumTypeNotNil applies the NotNil predicate on the "premium_type" field.
func PublicFlags ¶
PublicFlags applies equality check predicate on the "public_flags" field. It's identical to PublicFlagsEQ.
func PublicFlagsEQ ¶
PublicFlagsEQ applies the EQ predicate on the "public_flags" field.
func PublicFlagsGT ¶
PublicFlagsGT applies the GT predicate on the "public_flags" field.
func PublicFlagsGTE ¶
PublicFlagsGTE applies the GTE predicate on the "public_flags" field.
func PublicFlagsIn ¶
PublicFlagsIn applies the In predicate on the "public_flags" field.
func PublicFlagsIsNil ¶
PublicFlagsIsNil applies the IsNil predicate on the "public_flags" field.
func PublicFlagsLT ¶
PublicFlagsLT applies the LT predicate on the "public_flags" field.
func PublicFlagsLTE ¶
PublicFlagsLTE applies the LTE predicate on the "public_flags" field.
func PublicFlagsNEQ ¶
PublicFlagsNEQ applies the NEQ predicate on the "public_flags" field.
func PublicFlagsNotIn ¶
PublicFlagsNotIn applies the NotIn predicate on the "public_flags" field.
func PublicFlagsNotNil ¶
PublicFlagsNotNil applies the NotNil predicate on the "public_flags" field.
func System ¶
System applies equality check predicate on the "system" field. It's identical to SystemEQ.
func SystemIsNil ¶
SystemIsNil applies the IsNil predicate on the "system" field.
func SystemNotNil ¶
SystemNotNil applies the NotNil predicate on the "system" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 "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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Verified ¶
Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ.
func VerifiedEQ ¶
VerifiedEQ applies the EQ predicate on the "verified" field.
func VerifiedIsNil ¶
VerifiedIsNil applies the IsNil predicate on the "verified" field.
func VerifiedNEQ ¶
VerifiedNEQ applies the NEQ predicate on the "verified" field.
func VerifiedNotNil ¶
VerifiedNotNil applies the NotNil predicate on the "verified" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAdmin ¶
func ByAdmin(opts ...sql.OrderTermOption) OrderOption
ByAdmin orders the results by the admin field.
func ByAvatarHash ¶
func ByAvatarHash(opts ...sql.OrderTermOption) OrderOption
ByAvatarHash orders the results by the avatar_hash field.
func ByAvatarURL ¶
func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
ByAvatarURL orders the results by the avatar_url field.
func ByBanReason ¶
func ByBanReason(opts ...sql.OrderTermOption) OrderOption
ByBanReason orders the results by the ban_reason field.
func ByBanned ¶
func ByBanned(opts ...sql.OrderTermOption) OrderOption
ByBanned orders the results by the banned field.
func ByBannedByField ¶
func ByBannedByField(field string, opts ...sql.OrderTermOption) OrderOption
ByBannedByField orders the results by banned_by field.
func ByBannedUsers ¶
func ByBannedUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBannedUsers orders the results by banned_users terms.
func ByBannedUsersCount ¶
func ByBannedUsersCount(opts ...sql.OrderTermOption) OrderOption
ByBannedUsersCount orders the results by banned_users count.
func ByBot ¶
func ByBot(opts ...sql.OrderTermOption) OrderOption
ByBot orders the results by the bot field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDiscriminator ¶
func ByDiscriminator(opts ...sql.OrderTermOption) OrderOption
ByDiscriminator orders the results by the discriminator field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFlags ¶
func ByFlags(opts ...sql.OrderTermOption) OrderOption
ByFlags orders the results by the flags field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLocale ¶
func ByLocale(opts ...sql.OrderTermOption) OrderOption
ByLocale orders the results by the locale field.
func ByMfaEnabled ¶
func ByMfaEnabled(opts ...sql.OrderTermOption) OrderOption
ByMfaEnabled orders the results by the mfa_enabled field.
func ByPremiumType ¶
func ByPremiumType(opts ...sql.OrderTermOption) OrderOption
ByPremiumType orders the results by the premium_type field.
func ByPublicFlags ¶
func ByPublicFlags(opts ...sql.OrderTermOption) OrderOption
ByPublicFlags orders the results by the public_flags field.
func BySystem ¶
func BySystem(opts ...sql.OrderTermOption) OrderOption
BySystem orders the results by the system field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserGuilds ¶
func ByUserGuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserGuilds orders the results by user_guilds terms.
func ByUserGuildsCount ¶
func ByUserGuildsCount(opts ...sql.OrderTermOption) OrderOption
ByUserGuildsCount orders the results by user_guilds count.
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 username field.
func ByVerified ¶
func ByVerified(opts ...sql.OrderTermOption) OrderOption
ByVerified orders the results by the verified field.