Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Guild) predicate.Guild
- func AuditChannel(v uint64) predicate.Guild
- func AuditChannelEQ(v uint64) predicate.Guild
- func AuditChannelGT(v uint64) predicate.Guild
- func AuditChannelGTE(v uint64) predicate.Guild
- func AuditChannelIn(vs ...uint64) predicate.Guild
- func AuditChannelIsNil() predicate.Guild
- func AuditChannelLT(v uint64) predicate.Guild
- func AuditChannelLTE(v uint64) predicate.Guild
- func AuditChannelNEQ(v uint64) predicate.Guild
- func AuditChannelNotIn(vs ...uint64) predicate.Guild
- func AuditChannelNotNil() predicate.Guild
- func HasAdmins() predicate.Guild
- func HasAdminsWith(preds ...predicate.User) predicate.Guild
- func HasMembers() predicate.Guild
- func HasMembersWith(preds ...predicate.User) predicate.Guild
- func HasRoles() predicate.Guild
- func HasRolesWith(preds ...predicate.GuildRole) predicate.Guild
- func HasYoutubeTalents() predicate.Guild
- func HasYoutubeTalentsWith(preds ...predicate.YouTubeTalent) predicate.Guild
- func ID(id uint64) predicate.Guild
- func IDEQ(id uint64) predicate.Guild
- func IDGT(id uint64) predicate.Guild
- func IDGTE(id uint64) predicate.Guild
- func IDIn(ids ...uint64) predicate.Guild
- func IDLT(id uint64) predicate.Guild
- func IDLTE(id uint64) predicate.Guild
- func IDNEQ(id uint64) predicate.Guild
- func IDNotIn(ids ...uint64) predicate.Guild
- func IconHash(v string) predicate.Guild
- func IconHashContains(v string) predicate.Guild
- func IconHashContainsFold(v string) predicate.Guild
- func IconHashEQ(v string) predicate.Guild
- func IconHashEqualFold(v string) predicate.Guild
- func IconHashGT(v string) predicate.Guild
- func IconHashGTE(v string) predicate.Guild
- func IconHashHasPrefix(v string) predicate.Guild
- func IconHashHasSuffix(v string) predicate.Guild
- func IconHashIn(vs ...string) predicate.Guild
- func IconHashIsNil() predicate.Guild
- func IconHashLT(v string) predicate.Guild
- func IconHashLTE(v string) predicate.Guild
- func IconHashNEQ(v string) predicate.Guild
- func IconHashNotIn(vs ...string) predicate.Guild
- func IconHashNotNil() predicate.Guild
- func LanguageEQ(v Language) predicate.Guild
- func LanguageIn(vs ...Language) predicate.Guild
- func LanguageNEQ(v Language) predicate.Guild
- func LanguageNotIn(vs ...Language) predicate.Guild
- func LanguageValidator(l Language) error
- func ModeratorSnowflakesIsNil() predicate.Guild
- func ModeratorSnowflakesNotNil() predicate.Guild
- func Name(v string) predicate.Guild
- func NameContains(v string) predicate.Guild
- func NameContainsFold(v string) predicate.Guild
- func NameEQ(v string) predicate.Guild
- func NameEqualFold(v string) predicate.Guild
- func NameGT(v string) predicate.Guild
- func NameGTE(v string) predicate.Guild
- func NameHasPrefix(v string) predicate.Guild
- func NameHasSuffix(v string) predicate.Guild
- func NameIn(vs ...string) predicate.Guild
- func NameLT(v string) predicate.Guild
- func NameLTE(v string) predicate.Guild
- func NameNEQ(v string) predicate.Guild
- func NameNotIn(vs ...string) predicate.Guild
- func Not(p predicate.Guild) predicate.Guild
- func Or(predicates ...predicate.Guild) predicate.Guild
- func SettingsIsNil() predicate.Guild
- func SettingsNotNil() predicate.Guild
- func ValidColumn(column string) bool
- type Language
- type OrderOption
- func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuditChannel(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIconHash(opts ...sql.OrderTermOption) OrderOption
- func ByLanguage(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByYoutubeTalents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByYoutubeTalentsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the guild type in the database. Label = "guild" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIconHash holds the string denoting the icon_hash field in the database. FieldIconHash = "icon_hash" // FieldAuditChannel holds the string denoting the audit_channel field in the database. FieldAuditChannel = "audit_channel" // FieldLanguage holds the string denoting the language field in the database. FieldLanguage = "language" // FieldAdminSnowflakes holds the string denoting the admin_snowflakes field in the database. FieldAdminSnowflakes = "admin_snowflakes" // FieldModeratorSnowflakes holds the string denoting the moderator_snowflakes field in the database. FieldModeratorSnowflakes = "moderator_snowflakes" // FieldSettings holds the string denoting the settings field in the database. FieldSettings = "settings" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // EdgeAdmins holds the string denoting the admins edge name in mutations. EdgeAdmins = "admins" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgeYoutubeTalents holds the string denoting the youtube_talents edge name in mutations. EdgeYoutubeTalents = "youtube_talents" // Table holds the table name of the guild in the database. Table = "guilds" // MembersTable is the table that holds the members relation/edge. The primary key declared below. MembersTable = "guild_members" // MembersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. MembersInverseTable = "users" // AdminsTable is the table that holds the admins relation/edge. The primary key declared below. AdminsTable = "guild_admins" // AdminsInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AdminsInverseTable = "users" // RolesTable is the table that holds the roles relation/edge. RolesTable = "guild_roles" // RolesInverseTable is the table name for the GuildRole entity. // It exists in this package in order to avoid circular dependency with the "guildrole" package. RolesInverseTable = "guild_roles" // RolesColumn is the table column denoting the roles relation/edge. RolesColumn = "guild_roles" // YoutubeTalentsTable is the table that holds the youtube_talents relation/edge. The primary key declared below. YoutubeTalentsTable = "you_tube_talent_guilds" // YoutubeTalentsInverseTable is the table name for the YouTubeTalent entity. // It exists in this package in order to avoid circular dependency with the "youtubetalent" package. YoutubeTalentsInverseTable = "you_tube_talents" )
const DefaultLanguage = LanguageEnUS
LanguageEnUS is the default value of the Language enum.
Variables ¶
var ( // MembersPrimaryKey and MembersColumn2 are the table columns denoting the // primary key for the members relation (M2M). MembersPrimaryKey = []string{"guild_id", "user_id"} // AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the // primary key for the admins relation (M2M). AdminsPrimaryKey = []string{"guild_id", "user_id"} // YoutubeTalentsPrimaryKey and YoutubeTalentsColumn2 are the table columns denoting the // primary key for the youtube_talents relation (M2M). YoutubeTalentsPrimaryKey = []string{"you_tube_talent_id", "guild_id"} )
var Columns = []string{ FieldID, FieldName, FieldIconHash, FieldAuditChannel, FieldLanguage, FieldAdminSnowflakes, FieldModeratorSnowflakes, FieldSettings, }
Columns holds all SQL columns for guild fields.
Functions ¶
func AuditChannel ¶
AuditChannel applies equality check predicate on the "audit_channel" field. It's identical to AuditChannelEQ.
func AuditChannelEQ ¶
AuditChannelEQ applies the EQ predicate on the "audit_channel" field.
func AuditChannelGT ¶
AuditChannelGT applies the GT predicate on the "audit_channel" field.
func AuditChannelGTE ¶
AuditChannelGTE applies the GTE predicate on the "audit_channel" field.
func AuditChannelIn ¶
AuditChannelIn applies the In predicate on the "audit_channel" field.
func AuditChannelIsNil ¶
AuditChannelIsNil applies the IsNil predicate on the "audit_channel" field.
func AuditChannelLT ¶
AuditChannelLT applies the LT predicate on the "audit_channel" field.
func AuditChannelLTE ¶
AuditChannelLTE applies the LTE predicate on the "audit_channel" field.
func AuditChannelNEQ ¶
AuditChannelNEQ applies the NEQ predicate on the "audit_channel" field.
func AuditChannelNotIn ¶
AuditChannelNotIn applies the NotIn predicate on the "audit_channel" field.
func AuditChannelNotNil ¶
AuditChannelNotNil applies the NotNil predicate on the "audit_channel" field.
func HasAdminsWith ¶
HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func HasYoutubeTalents ¶
HasYoutubeTalents applies the HasEdge predicate on the "youtube_talents" edge.
func HasYoutubeTalentsWith ¶
func HasYoutubeTalentsWith(preds ...predicate.YouTubeTalent) predicate.Guild
HasYoutubeTalentsWith applies the HasEdge predicate on the "youtube_talents" edge with a given conditions (other predicates).
func IconHash ¶
IconHash applies equality check predicate on the "icon_hash" field. It's identical to IconHashEQ.
func IconHashContains ¶
IconHashContains applies the Contains predicate on the "icon_hash" field.
func IconHashContainsFold ¶
IconHashContainsFold applies the ContainsFold predicate on the "icon_hash" field.
func IconHashEQ ¶
IconHashEQ applies the EQ predicate on the "icon_hash" field.
func IconHashEqualFold ¶
IconHashEqualFold applies the EqualFold predicate on the "icon_hash" field.
func IconHashGT ¶
IconHashGT applies the GT predicate on the "icon_hash" field.
func IconHashGTE ¶
IconHashGTE applies the GTE predicate on the "icon_hash" field.
func IconHashHasPrefix ¶
IconHashHasPrefix applies the HasPrefix predicate on the "icon_hash" field.
func IconHashHasSuffix ¶
IconHashHasSuffix applies the HasSuffix predicate on the "icon_hash" field.
func IconHashIn ¶
IconHashIn applies the In predicate on the "icon_hash" field.
func IconHashIsNil ¶
IconHashIsNil applies the IsNil predicate on the "icon_hash" field.
func IconHashLT ¶
IconHashLT applies the LT predicate on the "icon_hash" field.
func IconHashLTE ¶
IconHashLTE applies the LTE predicate on the "icon_hash" field.
func IconHashNEQ ¶
IconHashNEQ applies the NEQ predicate on the "icon_hash" field.
func IconHashNotIn ¶
IconHashNotIn applies the NotIn predicate on the "icon_hash" field.
func IconHashNotNil ¶
IconHashNotNil applies the NotNil predicate on the "icon_hash" field.
func LanguageEQ ¶
LanguageEQ applies the EQ predicate on the "language" field.
func LanguageIn ¶
LanguageIn applies the In predicate on the "language" field.
func LanguageNEQ ¶
LanguageNEQ applies the NEQ predicate on the "language" field.
func LanguageNotIn ¶
LanguageNotIn applies the NotIn predicate on the "language" field.
func LanguageValidator ¶
LanguageValidator is a validator for the "language" field enum values. It is called by the builders before save.
func ModeratorSnowflakesIsNil ¶
ModeratorSnowflakesIsNil applies the IsNil predicate on the "moderator_snowflakes" field.
func ModeratorSnowflakesNotNil ¶
ModeratorSnowflakesNotNil applies the NotNil predicate on the "moderator_snowflakes" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func SettingsIsNil ¶
SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsNotNil ¶
SettingsNotNil applies the NotNil predicate on the "settings" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Language ¶
type Language string
Language defines the type for the "language" enum field.
const (
LanguageEnUS Language = "en-US"
)
Language values.
type OrderOption ¶
OrderOption defines the ordering options for the Guild queries.
func ByAdmins ¶
func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAdmins orders the results by admins terms.
func ByAdminsCount ¶
func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption
ByAdminsCount orders the results by admins count.
func ByAuditChannel ¶
func ByAuditChannel(opts ...sql.OrderTermOption) OrderOption
ByAuditChannel orders the results by the audit_channel field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIconHash ¶
func ByIconHash(opts ...sql.OrderTermOption) OrderOption
ByIconHash orders the results by the icon_hash field.
func ByLanguage ¶
func ByLanguage(opts ...sql.OrderTermOption) OrderOption
ByLanguage orders the results by the language field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.
func ByYoutubeTalents ¶
func ByYoutubeTalents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByYoutubeTalents orders the results by youtube_talents terms.
func ByYoutubeTalentsCount ¶
func ByYoutubeTalentsCount(opts ...sql.OrderTermOption) OrderOption
ByYoutubeTalentsCount orders the results by youtube_talents count.