guild

package
v0.0.0-...-905e761 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultLanguage = LanguageEnUS

LanguageEnUS is the default value of the Language enum.

Variables

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

Columns holds all SQL columns for guild fields.

Functions

func And

func And(predicates ...predicate.Guild) predicate.Guild

And groups predicates with the AND operator between them.

func AuditChannel

func AuditChannel(v uint64) predicate.Guild

AuditChannel applies equality check predicate on the "audit_channel" field. It's identical to AuditChannelEQ.

func AuditChannelEQ

func AuditChannelEQ(v uint64) predicate.Guild

AuditChannelEQ applies the EQ predicate on the "audit_channel" field.

func AuditChannelGT

func AuditChannelGT(v uint64) predicate.Guild

AuditChannelGT applies the GT predicate on the "audit_channel" field.

func AuditChannelGTE

func AuditChannelGTE(v uint64) predicate.Guild

AuditChannelGTE applies the GTE predicate on the "audit_channel" field.

func AuditChannelIn

func AuditChannelIn(vs ...uint64) predicate.Guild

AuditChannelIn applies the In predicate on the "audit_channel" field.

func AuditChannelIsNil

func AuditChannelIsNil() predicate.Guild

AuditChannelIsNil applies the IsNil predicate on the "audit_channel" field.

func AuditChannelLT

func AuditChannelLT(v uint64) predicate.Guild

AuditChannelLT applies the LT predicate on the "audit_channel" field.

func AuditChannelLTE

func AuditChannelLTE(v uint64) predicate.Guild

AuditChannelLTE applies the LTE predicate on the "audit_channel" field.

func AuditChannelNEQ

func AuditChannelNEQ(v uint64) predicate.Guild

AuditChannelNEQ applies the NEQ predicate on the "audit_channel" field.

func AuditChannelNotIn

func AuditChannelNotIn(vs ...uint64) predicate.Guild

AuditChannelNotIn applies the NotIn predicate on the "audit_channel" field.

func AuditChannelNotNil

func AuditChannelNotNil() predicate.Guild

AuditChannelNotNil applies the NotNil predicate on the "audit_channel" field.

func HasAdmins

func HasAdmins() predicate.Guild

HasAdmins applies the HasEdge predicate on the "admins" edge.

func HasAdminsWith

func HasAdminsWith(preds ...predicate.User) predicate.Guild

HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).

func HasMembers

func HasMembers() predicate.Guild

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.User) predicate.Guild

HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).

func HasRoles

func HasRoles() predicate.Guild

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

func HasRolesWith(preds ...predicate.GuildRole) predicate.Guild

HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).

func HasYoutubeTalents

func HasYoutubeTalents() predicate.Guild

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 ID

func ID(id uint64) predicate.Guild

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Guild

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Guild

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Guild

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.Guild

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Guild

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Guild

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Guild

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.Guild

IDNotIn applies the NotIn predicate on the ID field.

func IconHash

func IconHash(v string) predicate.Guild

IconHash applies equality check predicate on the "icon_hash" field. It's identical to IconHashEQ.

func IconHashContains

func IconHashContains(v string) predicate.Guild

IconHashContains applies the Contains predicate on the "icon_hash" field.

func IconHashContainsFold

func IconHashContainsFold(v string) predicate.Guild

IconHashContainsFold applies the ContainsFold predicate on the "icon_hash" field.

func IconHashEQ

func IconHashEQ(v string) predicate.Guild

IconHashEQ applies the EQ predicate on the "icon_hash" field.

func IconHashEqualFold

func IconHashEqualFold(v string) predicate.Guild

IconHashEqualFold applies the EqualFold predicate on the "icon_hash" field.

func IconHashGT

func IconHashGT(v string) predicate.Guild

IconHashGT applies the GT predicate on the "icon_hash" field.

func IconHashGTE

func IconHashGTE(v string) predicate.Guild

IconHashGTE applies the GTE predicate on the "icon_hash" field.

func IconHashHasPrefix

func IconHashHasPrefix(v string) predicate.Guild

IconHashHasPrefix applies the HasPrefix predicate on the "icon_hash" field.

func IconHashHasSuffix

func IconHashHasSuffix(v string) predicate.Guild

IconHashHasSuffix applies the HasSuffix predicate on the "icon_hash" field.

func IconHashIn

func IconHashIn(vs ...string) predicate.Guild

IconHashIn applies the In predicate on the "icon_hash" field.

func IconHashIsNil

func IconHashIsNil() predicate.Guild

IconHashIsNil applies the IsNil predicate on the "icon_hash" field.

func IconHashLT

func IconHashLT(v string) predicate.Guild

IconHashLT applies the LT predicate on the "icon_hash" field.

func IconHashLTE

func IconHashLTE(v string) predicate.Guild

IconHashLTE applies the LTE predicate on the "icon_hash" field.

func IconHashNEQ

func IconHashNEQ(v string) predicate.Guild

IconHashNEQ applies the NEQ predicate on the "icon_hash" field.

func IconHashNotIn

func IconHashNotIn(vs ...string) predicate.Guild

IconHashNotIn applies the NotIn predicate on the "icon_hash" field.

func IconHashNotNil

func IconHashNotNil() predicate.Guild

IconHashNotNil applies the NotNil predicate on the "icon_hash" field.

func LanguageEQ

func LanguageEQ(v Language) predicate.Guild

LanguageEQ applies the EQ predicate on the "language" field.

func LanguageIn

func LanguageIn(vs ...Language) predicate.Guild

LanguageIn applies the In predicate on the "language" field.

func LanguageNEQ

func LanguageNEQ(v Language) predicate.Guild

LanguageNEQ applies the NEQ predicate on the "language" field.

func LanguageNotIn

func LanguageNotIn(vs ...Language) predicate.Guild

LanguageNotIn applies the NotIn predicate on the "language" field.

func LanguageValidator

func LanguageValidator(l Language) error

LanguageValidator is a validator for the "language" field enum values. It is called by the builders before save.

func ModeratorSnowflakesIsNil

func ModeratorSnowflakesIsNil() predicate.Guild

ModeratorSnowflakesIsNil applies the IsNil predicate on the "moderator_snowflakes" field.

func ModeratorSnowflakesNotNil

func ModeratorSnowflakesNotNil() predicate.Guild

ModeratorSnowflakesNotNil applies the NotNil predicate on the "moderator_snowflakes" field.

func Name

func Name(v string) predicate.Guild

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Guild

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Guild

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Guild

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Guild

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Guild

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Guild

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Guild

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Guild

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Guild

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Guild

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Guild

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Guild

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Guild

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Guild) predicate.Guild

Or groups predicates with the OR operator between them.

func SettingsIsNil

func SettingsIsNil() predicate.Guild

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.Guild

SettingsNotNil applies the NotNil predicate on the "settings" field.

func ValidColumn

func ValidColumn(column string) bool

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.

func (Language) String

func (l Language) String() string

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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