Documentation ¶
Index ¶
- Constants
- Variables
- 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 AvatarHashLT(v string) predicate.User
- func AvatarHashLTE(v string) predicate.User
- func AvatarHashNEQ(v string) predicate.User
- func AvatarHashNotIn(vs ...string) predicate.User
- func DiscordTokenIsNil() predicate.User
- func DiscordTokenNotNil() predicate.User
- func FullName(v string) predicate.User
- func FullNameContains(v string) predicate.User
- func FullNameContainsFold(v string) predicate.User
- func FullNameEQ(v string) predicate.User
- func FullNameEqualFold(v string) predicate.User
- func FullNameGT(v string) predicate.User
- func FullNameGTE(v string) predicate.User
- func FullNameHasPrefix(v string) predicate.User
- func FullNameHasSuffix(v string) predicate.User
- func FullNameIn(vs ...string) predicate.User
- func FullNameLT(v string) predicate.User
- func FullNameLTE(v string) predicate.User
- func FullNameNEQ(v string) predicate.User
- func FullNameNotIn(vs ...string) predicate.User
- func HasGuilds() predicate.User
- func HasGuildsAdmin() predicate.User
- func HasGuildsAdminWith(preds ...predicate.Guild) predicate.User
- func HasGuildsWith(preds ...predicate.Guild) predicate.User
- func HasMemberships() predicate.User
- func HasMembershipsWith(preds ...predicate.UserMembership) predicate.User
- func ID(id uint64) predicate.User
- func IDEQ(id uint64) predicate.User
- func IDGT(id uint64) predicate.User
- func IDGTE(id uint64) predicate.User
- func IDIn(ids ...uint64) predicate.User
- func IDLT(id uint64) predicate.User
- func IDLTE(id uint64) predicate.User
- func IDNEQ(id uint64) predicate.User
- func IDNotIn(ids ...uint64) predicate.User
- func LastCheck(v time.Time) predicate.User
- func LastCheckEQ(v time.Time) predicate.User
- func LastCheckGT(v time.Time) predicate.User
- func LastCheckGTE(v time.Time) predicate.User
- func LastCheckIn(vs ...time.Time) predicate.User
- func LastCheckLT(v time.Time) predicate.User
- func LastCheckLTE(v time.Time) predicate.User
- func LastCheckNEQ(v time.Time) predicate.User
- func LastCheckNotIn(vs ...time.Time) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- func YoutubeID(v string) predicate.User
- func YoutubeIDContains(v string) predicate.User
- func YoutubeIDContainsFold(v string) predicate.User
- func YoutubeIDEQ(v string) predicate.User
- func YoutubeIDEqualFold(v string) predicate.User
- func YoutubeIDGT(v string) predicate.User
- func YoutubeIDGTE(v string) predicate.User
- func YoutubeIDHasPrefix(v string) predicate.User
- func YoutubeIDHasSuffix(v string) predicate.User
- func YoutubeIDIn(vs ...string) predicate.User
- func YoutubeIDIsNil() predicate.User
- func YoutubeIDLT(v string) predicate.User
- func YoutubeIDLTE(v string) predicate.User
- func YoutubeIDNEQ(v string) predicate.User
- func YoutubeIDNotIn(vs ...string) predicate.User
- func YoutubeIDNotNil() predicate.User
- func YoutubeTokenIsNil() predicate.User
- func YoutubeTokenNotNil() predicate.User
- type OrderOption
- func ByAvatarHash(opts ...sql.OrderTermOption) OrderOption
- func ByFullName(opts ...sql.OrderTermOption) OrderOption
- func ByGuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGuildsAdmin(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGuildsAdminCount(opts ...sql.OrderTermOption) OrderOption
- func ByGuildsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastCheck(opts ...sql.OrderTermOption) OrderOption
- func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByYoutubeID(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" // FieldFullName holds the string denoting the full_name field in the database. FieldFullName = "full_name" // FieldAvatarHash holds the string denoting the avatar_hash field in the database. FieldAvatarHash = "avatar_hash" // FieldLastCheck holds the string denoting the last_check field in the database. FieldLastCheck = "last_check" // FieldYoutubeID holds the string denoting the youtube_id field in the database. FieldYoutubeID = "youtube_id" // FieldYoutubeToken holds the string denoting the youtube_token field in the database. FieldYoutubeToken = "youtube_token" // FieldDiscordToken holds the string denoting the discord_token field in the database. FieldDiscordToken = "discord_token" // EdgeGuilds holds the string denoting the guilds edge name in mutations. EdgeGuilds = "guilds" // EdgeGuildsAdmin holds the string denoting the guilds_admin edge name in mutations. EdgeGuildsAdmin = "guilds_admin" // EdgeMemberships holds the string denoting the memberships edge name in mutations. EdgeMemberships = "memberships" // Table holds the table name of the user in the database. Table = "users" // GuildsTable is the table that holds the guilds relation/edge. The primary key declared below. GuildsTable = "guild_members" // GuildsInverseTable is the table name for the Guild entity. // It exists in this package in order to avoid circular dependency with the "guild" package. GuildsInverseTable = "guilds" // GuildsAdminTable is the table that holds the guilds_admin relation/edge. The primary key declared below. GuildsAdminTable = "guild_admins" // GuildsAdminInverseTable is the table name for the Guild entity. // It exists in this package in order to avoid circular dependency with the "guild" package. GuildsAdminInverseTable = "guilds" // MembershipsTable is the table that holds the memberships relation/edge. MembershipsTable = "user_memberships" // MembershipsInverseTable is the table name for the UserMembership entity. // It exists in this package in order to avoid circular dependency with the "usermembership" package. MembershipsInverseTable = "user_memberships" // MembershipsColumn is the table column denoting the memberships relation/edge. MembershipsColumn = "user_memberships" )
Variables ¶
var ( // GuildsPrimaryKey and GuildsColumn2 are the table columns denoting the // primary key for the guilds relation (M2M). GuildsPrimaryKey = []string{"guild_id", "user_id"} // GuildsAdminPrimaryKey and GuildsAdminColumn2 are the table columns denoting the // primary key for the guilds_admin relation (M2M). GuildsAdminPrimaryKey = []string{"guild_id", "user_id"} )
var Columns = []string{ FieldID, FieldFullName, FieldAvatarHash, FieldLastCheck, FieldYoutubeID, FieldYoutubeToken, FieldDiscordToken, }
Columns holds all SQL columns for user fields.
var ( // DefaultLastCheck holds the default value on creation for the "last_check" field. DefaultLastCheck func() time.Time )
Functions ¶
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 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 DiscordTokenIsNil ¶
DiscordTokenIsNil applies the IsNil predicate on the "discord_token" field.
func DiscordTokenNotNil ¶
DiscordTokenNotNil applies the NotNil predicate on the "discord_token" 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 HasGuildsAdmin ¶
HasGuildsAdmin applies the HasEdge predicate on the "guilds_admin" edge.
func HasGuildsAdminWith ¶
HasGuildsAdminWith applies the HasEdge predicate on the "guilds_admin" edge with a given conditions (other predicates).
func HasGuildsWith ¶
HasGuildsWith applies the HasEdge predicate on the "guilds" edge with a given conditions (other predicates).
func HasMemberships ¶
HasMemberships applies the HasEdge predicate on the "memberships" edge.
func HasMembershipsWith ¶
func HasMembershipsWith(preds ...predicate.UserMembership) predicate.User
HasMembershipsWith applies the HasEdge predicate on the "memberships" edge with a given conditions (other predicates).
func LastCheck ¶
LastCheck applies equality check predicate on the "last_check" field. It's identical to LastCheckEQ.
func LastCheckEQ ¶
LastCheckEQ applies the EQ predicate on the "last_check" field.
func LastCheckGT ¶
LastCheckGT applies the GT predicate on the "last_check" field.
func LastCheckGTE ¶
LastCheckGTE applies the GTE predicate on the "last_check" field.
func LastCheckIn ¶
LastCheckIn applies the In predicate on the "last_check" field.
func LastCheckLT ¶
LastCheckLT applies the LT predicate on the "last_check" field.
func LastCheckLTE ¶
LastCheckLTE applies the LTE predicate on the "last_check" field.
func LastCheckNEQ ¶
LastCheckNEQ applies the NEQ predicate on the "last_check" field.
func LastCheckNotIn ¶
LastCheckNotIn applies the NotIn predicate on the "last_check" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func YoutubeID ¶
YoutubeID applies equality check predicate on the "youtube_id" field. It's identical to YoutubeIDEQ.
func YoutubeIDContains ¶
YoutubeIDContains applies the Contains predicate on the "youtube_id" field.
func YoutubeIDContainsFold ¶
YoutubeIDContainsFold applies the ContainsFold predicate on the "youtube_id" field.
func YoutubeIDEQ ¶
YoutubeIDEQ applies the EQ predicate on the "youtube_id" field.
func YoutubeIDEqualFold ¶
YoutubeIDEqualFold applies the EqualFold predicate on the "youtube_id" field.
func YoutubeIDGT ¶
YoutubeIDGT applies the GT predicate on the "youtube_id" field.
func YoutubeIDGTE ¶
YoutubeIDGTE applies the GTE predicate on the "youtube_id" field.
func YoutubeIDHasPrefix ¶
YoutubeIDHasPrefix applies the HasPrefix predicate on the "youtube_id" field.
func YoutubeIDHasSuffix ¶
YoutubeIDHasSuffix applies the HasSuffix predicate on the "youtube_id" field.
func YoutubeIDIn ¶
YoutubeIDIn applies the In predicate on the "youtube_id" field.
func YoutubeIDIsNil ¶
YoutubeIDIsNil applies the IsNil predicate on the "youtube_id" field.
func YoutubeIDLT ¶
YoutubeIDLT applies the LT predicate on the "youtube_id" field.
func YoutubeIDLTE ¶
YoutubeIDLTE applies the LTE predicate on the "youtube_id" field.
func YoutubeIDNEQ ¶
YoutubeIDNEQ applies the NEQ predicate on the "youtube_id" field.
func YoutubeIDNotIn ¶
YoutubeIDNotIn applies the NotIn predicate on the "youtube_id" field.
func YoutubeIDNotNil ¶
YoutubeIDNotNil applies the NotNil predicate on the "youtube_id" field.
func YoutubeTokenIsNil ¶
YoutubeTokenIsNil applies the IsNil predicate on the "youtube_token" field.
func YoutubeTokenNotNil ¶
YoutubeTokenNotNil applies the NotNil predicate on the "youtube_token" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAvatarHash ¶
func ByAvatarHash(opts ...sql.OrderTermOption) OrderOption
ByAvatarHash orders the results by the avatar_hash field.
func ByFullName ¶
func ByFullName(opts ...sql.OrderTermOption) OrderOption
ByFullName orders the results by the full_name field.
func ByGuilds ¶
func ByGuilds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGuilds orders the results by guilds terms.
func ByGuildsAdmin ¶
func ByGuildsAdmin(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGuildsAdmin orders the results by guilds_admin terms.
func ByGuildsAdminCount ¶
func ByGuildsAdminCount(opts ...sql.OrderTermOption) OrderOption
ByGuildsAdminCount orders the results by guilds_admin count.
func ByGuildsCount ¶
func ByGuildsCount(opts ...sql.OrderTermOption) OrderOption
ByGuildsCount orders the results by guilds count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastCheck ¶
func ByLastCheck(opts ...sql.OrderTermOption) OrderOption
ByLastCheck orders the results by the last_check field.
func ByMemberships ¶
func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMemberships orders the results by memberships terms.
func ByMembershipsCount ¶
func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByMembershipsCount orders the results by memberships count.
func ByYoutubeID ¶
func ByYoutubeID(opts ...sql.OrderTermOption) OrderOption
ByYoutubeID orders the results by the youtube_id field.