guild

package
v0.0.0-...-d1147f9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 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"
	// 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"
	// FieldGuildID holds the string denoting the guild_id field in the database.
	FieldGuildID = "guild_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldFeatures holds the string denoting the features field in the database.
	FieldFeatures = "features"
	// FieldIconHash holds the string denoting the icon_hash field in the database.
	FieldIconHash = "icon_hash"
	// FieldIconURL holds the string denoting the icon_url field in the database.
	FieldIconURL = "icon_url"
	// FieldJoinedAt holds the string denoting the joined_at field in the database.
	FieldJoinedAt = "joined_at"
	// FieldLarge holds the string denoting the large field in the database.
	FieldLarge = "large"
	// FieldMemberCount holds the string denoting the member_count field in the database.
	FieldMemberCount = "member_count"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldPermissions holds the string denoting the permissions field in the database.
	FieldPermissions = "permissions"
	// FieldSystemChannelFlags holds the string denoting the system_channel_flags field in the database.
	FieldSystemChannelFlags = "system_channel_flags"
	// EdgeGuildConfig holds the string denoting the guild_config edge name in mutations.
	EdgeGuildConfig = "guild_config"
	// EdgeGuildAdminConfig holds the string denoting the guild_admin_config edge name in mutations.
	EdgeGuildAdminConfig = "guild_admin_config"
	// EdgeGuildEvents holds the string denoting the guild_events edge name in mutations.
	EdgeGuildEvents = "guild_events"
	// EdgeAdmins holds the string denoting the admins edge name in mutations.
	EdgeAdmins = "admins"
	// Table holds the table name of the guild in the database.
	Table = "guilds"
	// GuildConfigTable is the table that holds the guild_config relation/edge.
	GuildConfigTable = "guild_configs"
	// GuildConfigInverseTable is the table name for the GuildConfig entity.
	// It exists in this package in order to avoid circular dependency with the "guildconfig" package.
	GuildConfigInverseTable = "guild_configs"
	// GuildConfigColumn is the table column denoting the guild_config relation/edge.
	GuildConfigColumn = "guild_guild_config"
	// GuildAdminConfigTable is the table that holds the guild_admin_config relation/edge.
	GuildAdminConfigTable = "guild_admin_configs"
	// GuildAdminConfigInverseTable is the table name for the GuildAdminConfig entity.
	// It exists in this package in order to avoid circular dependency with the "guildadminconfig" package.
	GuildAdminConfigInverseTable = "guild_admin_configs"
	// GuildAdminConfigColumn is the table column denoting the guild_admin_config relation/edge.
	GuildAdminConfigColumn = "guild_guild_admin_config"
	// GuildEventsTable is the table that holds the guild_events relation/edge.
	GuildEventsTable = "guild_events"
	// GuildEventsInverseTable is the table name for the GuildEvent entity.
	// It exists in this package in order to avoid circular dependency with the "guildevent" package.
	GuildEventsInverseTable = "guild_events"
	// GuildEventsColumn is the table column denoting the guild_events relation/edge.
	GuildEventsColumn = "guild_guild_events"
	// AdminsTable is the table that holds the admins relation/edge. The primary key declared below.
	AdminsTable = "user_user_guilds"
	// 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"
)

Variables

View Source
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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultFeatures holds the default value on creation for the "features" field.
	DefaultFeatures []string
	// IconHashValidator is a validator for the "icon_hash" field. It is called by the builders before save.
	IconHashValidator func(string) error
	// IconURLValidator is a validator for the "icon_url" field. It is called by the builders before save.
	IconURLValidator func(string) error
	// DefaultLarge holds the default value on creation for the "large" field.
	DefaultLarge bool
	// DefaultMemberCount holds the default value on creation for the "member_count" field.
	DefaultMemberCount int
	// DefaultPermissions holds the default value on creation for the "permissions" field.
	DefaultPermissions uint64
	// SystemChannelFlagsValidator is a validator for the "system_channel_flags" field. It is called by the builders before save.
	SystemChannelFlagsValidator 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"
View Source
var (
	// AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the
	// primary key for the admins relation (M2M).
	AdminsPrimaryKey = []string{"user_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 CreateTime

func CreateTime(v time.Time) predicate.Guild

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Guild

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Guild

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Guild

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Guild

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Guild

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Guild

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Guild

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Guild

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func FeaturesIsNil

func FeaturesIsNil() predicate.Guild

FeaturesIsNil applies the IsNil predicate on the "features" field.

func FeaturesNotNil

func FeaturesNotNil() predicate.Guild

FeaturesNotNil applies the NotNil predicate on the "features" field.

func GuildID

func GuildID(v string) predicate.Guild

GuildID applies equality check predicate on the "guild_id" field. It's identical to GuildIDEQ.

func GuildIDContains

func GuildIDContains(v string) predicate.Guild

GuildIDContains applies the Contains predicate on the "guild_id" field.

func GuildIDContainsFold

func GuildIDContainsFold(v string) predicate.Guild

GuildIDContainsFold applies the ContainsFold predicate on the "guild_id" field.

func GuildIDEQ

func GuildIDEQ(v string) predicate.Guild

GuildIDEQ applies the EQ predicate on the "guild_id" field.

func GuildIDEqualFold

func GuildIDEqualFold(v string) predicate.Guild

GuildIDEqualFold applies the EqualFold predicate on the "guild_id" field.

func GuildIDGT

func GuildIDGT(v string) predicate.Guild

GuildIDGT applies the GT predicate on the "guild_id" field.

func GuildIDGTE

func GuildIDGTE(v string) predicate.Guild

GuildIDGTE applies the GTE predicate on the "guild_id" field.

func GuildIDHasPrefix

func GuildIDHasPrefix(v string) predicate.Guild

GuildIDHasPrefix applies the HasPrefix predicate on the "guild_id" field.

func GuildIDHasSuffix

func GuildIDHasSuffix(v string) predicate.Guild

GuildIDHasSuffix applies the HasSuffix predicate on the "guild_id" field.

func GuildIDIn

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

GuildIDIn applies the In predicate on the "guild_id" field.

func GuildIDLT

func GuildIDLT(v string) predicate.Guild

GuildIDLT applies the LT predicate on the "guild_id" field.

func GuildIDLTE

func GuildIDLTE(v string) predicate.Guild

GuildIDLTE applies the LTE predicate on the "guild_id" field.

func GuildIDNEQ

func GuildIDNEQ(v string) predicate.Guild

GuildIDNEQ applies the NEQ predicate on the "guild_id" field.

func GuildIDNotIn

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

GuildIDNotIn applies the NotIn predicate on the "guild_id" 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 HasGuildAdminConfig

func HasGuildAdminConfig() predicate.Guild

HasGuildAdminConfig applies the HasEdge predicate on the "guild_admin_config" edge.

func HasGuildAdminConfigWith

func HasGuildAdminConfigWith(preds ...predicate.GuildAdminConfig) predicate.Guild

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

func HasGuildConfig

func HasGuildConfig() predicate.Guild

HasGuildConfig applies the HasEdge predicate on the "guild_config" edge.

func HasGuildConfigWith

func HasGuildConfigWith(preds ...predicate.GuildConfig) predicate.Guild

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

func HasGuildEvents

func HasGuildEvents() predicate.Guild

HasGuildEvents applies the HasEdge predicate on the "guild_events" edge.

func HasGuildEventsWith

func HasGuildEventsWith(preds ...predicate.GuildEvent) predicate.Guild

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

func ID

func ID(id int) predicate.Guild

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Guild

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Guild

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Guild

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Guild

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Guild

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Guild

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 IconURL

func IconURL(v string) predicate.Guild

IconURL applies equality check predicate on the "icon_url" field. It's identical to IconURLEQ.

func IconURLContains

func IconURLContains(v string) predicate.Guild

IconURLContains applies the Contains predicate on the "icon_url" field.

func IconURLContainsFold

func IconURLContainsFold(v string) predicate.Guild

IconURLContainsFold applies the ContainsFold predicate on the "icon_url" field.

func IconURLEQ

func IconURLEQ(v string) predicate.Guild

IconURLEQ applies the EQ predicate on the "icon_url" field.

func IconURLEqualFold

func IconURLEqualFold(v string) predicate.Guild

IconURLEqualFold applies the EqualFold predicate on the "icon_url" field.

func IconURLGT

func IconURLGT(v string) predicate.Guild

IconURLGT applies the GT predicate on the "icon_url" field.

func IconURLGTE

func IconURLGTE(v string) predicate.Guild

IconURLGTE applies the GTE predicate on the "icon_url" field.

func IconURLHasPrefix

func IconURLHasPrefix(v string) predicate.Guild

IconURLHasPrefix applies the HasPrefix predicate on the "icon_url" field.

func IconURLHasSuffix

func IconURLHasSuffix(v string) predicate.Guild

IconURLHasSuffix applies the HasSuffix predicate on the "icon_url" field.

func IconURLIn

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

IconURLIn applies the In predicate on the "icon_url" field.

func IconURLLT

func IconURLLT(v string) predicate.Guild

IconURLLT applies the LT predicate on the "icon_url" field.

func IconURLLTE

func IconURLLTE(v string) predicate.Guild

IconURLLTE applies the LTE predicate on the "icon_url" field.

func IconURLNEQ

func IconURLNEQ(v string) predicate.Guild

IconURLNEQ applies the NEQ predicate on the "icon_url" field.

func IconURLNotIn

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

IconURLNotIn applies the NotIn predicate on the "icon_url" field.

func JoinedAt

func JoinedAt(v time.Time) predicate.Guild

JoinedAt applies equality check predicate on the "joined_at" field. It's identical to JoinedAtEQ.

func JoinedAtEQ

func JoinedAtEQ(v time.Time) predicate.Guild

JoinedAtEQ applies the EQ predicate on the "joined_at" field.

func JoinedAtGT

func JoinedAtGT(v time.Time) predicate.Guild

JoinedAtGT applies the GT predicate on the "joined_at" field.

func JoinedAtGTE

func JoinedAtGTE(v time.Time) predicate.Guild

JoinedAtGTE applies the GTE predicate on the "joined_at" field.

func JoinedAtIn

func JoinedAtIn(vs ...time.Time) predicate.Guild

JoinedAtIn applies the In predicate on the "joined_at" field.

func JoinedAtIsNil

func JoinedAtIsNil() predicate.Guild

JoinedAtIsNil applies the IsNil predicate on the "joined_at" field.

func JoinedAtLT

func JoinedAtLT(v time.Time) predicate.Guild

JoinedAtLT applies the LT predicate on the "joined_at" field.

func JoinedAtLTE

func JoinedAtLTE(v time.Time) predicate.Guild

JoinedAtLTE applies the LTE predicate on the "joined_at" field.

func JoinedAtNEQ

func JoinedAtNEQ(v time.Time) predicate.Guild

JoinedAtNEQ applies the NEQ predicate on the "joined_at" field.

func JoinedAtNotIn

func JoinedAtNotIn(vs ...time.Time) predicate.Guild

JoinedAtNotIn applies the NotIn predicate on the "joined_at" field.

func JoinedAtNotNil

func JoinedAtNotNil() predicate.Guild

JoinedAtNotNil applies the NotNil predicate on the "joined_at" field.

func Large

func Large(v bool) predicate.Guild

Large applies equality check predicate on the "large" field. It's identical to LargeEQ.

func LargeEQ

func LargeEQ(v bool) predicate.Guild

LargeEQ applies the EQ predicate on the "large" field.

func LargeIsNil

func LargeIsNil() predicate.Guild

LargeIsNil applies the IsNil predicate on the "large" field.

func LargeNEQ

func LargeNEQ(v bool) predicate.Guild

LargeNEQ applies the NEQ predicate on the "large" field.

func LargeNotNil

func LargeNotNil() predicate.Guild

LargeNotNil applies the NotNil predicate on the "large" field.

func MemberCount

func MemberCount(v int) predicate.Guild

MemberCount applies equality check predicate on the "member_count" field. It's identical to MemberCountEQ.

func MemberCountEQ

func MemberCountEQ(v int) predicate.Guild

MemberCountEQ applies the EQ predicate on the "member_count" field.

func MemberCountGT

func MemberCountGT(v int) predicate.Guild

MemberCountGT applies the GT predicate on the "member_count" field.

func MemberCountGTE

func MemberCountGTE(v int) predicate.Guild

MemberCountGTE applies the GTE predicate on the "member_count" field.

func MemberCountIn

func MemberCountIn(vs ...int) predicate.Guild

MemberCountIn applies the In predicate on the "member_count" field.

func MemberCountIsNil

func MemberCountIsNil() predicate.Guild

MemberCountIsNil applies the IsNil predicate on the "member_count" field.

func MemberCountLT

func MemberCountLT(v int) predicate.Guild

MemberCountLT applies the LT predicate on the "member_count" field.

func MemberCountLTE

func MemberCountLTE(v int) predicate.Guild

MemberCountLTE applies the LTE predicate on the "member_count" field.

func MemberCountNEQ

func MemberCountNEQ(v int) predicate.Guild

MemberCountNEQ applies the NEQ predicate on the "member_count" field.

func MemberCountNotIn

func MemberCountNotIn(vs ...int) predicate.Guild

MemberCountNotIn applies the NotIn predicate on the "member_count" field.

func MemberCountNotNil

func MemberCountNotNil() predicate.Guild

MemberCountNotNil applies the NotNil predicate on the "member_count" 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 OwnerID

func OwnerID(v string) predicate.Guild

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Guild

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Guild

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Guild

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Guild

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Guild

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Guild

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Guild

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Guild

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

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

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Guild

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Guild

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Guild

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Guild

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

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

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Guild

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func Permissions

func Permissions(v uint64) predicate.Guild

Permissions applies equality check predicate on the "permissions" field. It's identical to PermissionsEQ.

func PermissionsEQ

func PermissionsEQ(v uint64) predicate.Guild

PermissionsEQ applies the EQ predicate on the "permissions" field.

func PermissionsGT

func PermissionsGT(v uint64) predicate.Guild

PermissionsGT applies the GT predicate on the "permissions" field.

func PermissionsGTE

func PermissionsGTE(v uint64) predicate.Guild

PermissionsGTE applies the GTE predicate on the "permissions" field.

func PermissionsIn

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

PermissionsIn applies the In predicate on the "permissions" field.

func PermissionsIsNil

func PermissionsIsNil() predicate.Guild

PermissionsIsNil applies the IsNil predicate on the "permissions" field.

func PermissionsLT

func PermissionsLT(v uint64) predicate.Guild

PermissionsLT applies the LT predicate on the "permissions" field.

func PermissionsLTE

func PermissionsLTE(v uint64) predicate.Guild

PermissionsLTE applies the LTE predicate on the "permissions" field.

func PermissionsNEQ

func PermissionsNEQ(v uint64) predicate.Guild

PermissionsNEQ applies the NEQ predicate on the "permissions" field.

func PermissionsNotIn

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

PermissionsNotIn applies the NotIn predicate on the "permissions" field.

func PermissionsNotNil

func PermissionsNotNil() predicate.Guild

PermissionsNotNil applies the NotNil predicate on the "permissions" field.

func SystemChannelFlags

func SystemChannelFlags(v string) predicate.Guild

SystemChannelFlags applies equality check predicate on the "system_channel_flags" field. It's identical to SystemChannelFlagsEQ.

func SystemChannelFlagsContains

func SystemChannelFlagsContains(v string) predicate.Guild

SystemChannelFlagsContains applies the Contains predicate on the "system_channel_flags" field.

func SystemChannelFlagsContainsFold

func SystemChannelFlagsContainsFold(v string) predicate.Guild

SystemChannelFlagsContainsFold applies the ContainsFold predicate on the "system_channel_flags" field.

func SystemChannelFlagsEQ

func SystemChannelFlagsEQ(v string) predicate.Guild

SystemChannelFlagsEQ applies the EQ predicate on the "system_channel_flags" field.

func SystemChannelFlagsEqualFold

func SystemChannelFlagsEqualFold(v string) predicate.Guild

SystemChannelFlagsEqualFold applies the EqualFold predicate on the "system_channel_flags" field.

func SystemChannelFlagsGT

func SystemChannelFlagsGT(v string) predicate.Guild

SystemChannelFlagsGT applies the GT predicate on the "system_channel_flags" field.

func SystemChannelFlagsGTE

func SystemChannelFlagsGTE(v string) predicate.Guild

SystemChannelFlagsGTE applies the GTE predicate on the "system_channel_flags" field.

func SystemChannelFlagsHasPrefix

func SystemChannelFlagsHasPrefix(v string) predicate.Guild

SystemChannelFlagsHasPrefix applies the HasPrefix predicate on the "system_channel_flags" field.

func SystemChannelFlagsHasSuffix

func SystemChannelFlagsHasSuffix(v string) predicate.Guild

SystemChannelFlagsHasSuffix applies the HasSuffix predicate on the "system_channel_flags" field.

func SystemChannelFlagsIn

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

SystemChannelFlagsIn applies the In predicate on the "system_channel_flags" field.

func SystemChannelFlagsIsNil

func SystemChannelFlagsIsNil() predicate.Guild

SystemChannelFlagsIsNil applies the IsNil predicate on the "system_channel_flags" field.

func SystemChannelFlagsLT

func SystemChannelFlagsLT(v string) predicate.Guild

SystemChannelFlagsLT applies the LT predicate on the "system_channel_flags" field.

func SystemChannelFlagsLTE

func SystemChannelFlagsLTE(v string) predicate.Guild

SystemChannelFlagsLTE applies the LTE predicate on the "system_channel_flags" field.

func SystemChannelFlagsNEQ

func SystemChannelFlagsNEQ(v string) predicate.Guild

SystemChannelFlagsNEQ applies the NEQ predicate on the "system_channel_flags" field.

func SystemChannelFlagsNotIn

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

SystemChannelFlagsNotIn applies the NotIn predicate on the "system_channel_flags" field.

func SystemChannelFlagsNotNil

func SystemChannelFlagsNotNil() predicate.Guild

SystemChannelFlagsNotNil applies the NotNil predicate on the "system_channel_flags" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Guild

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Guild

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Guild

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Guild

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Guild

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Guild

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Guild

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Guild

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Guild

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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 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 ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByGuildAdminConfigField

func ByGuildAdminConfigField(field string, opts ...sql.OrderTermOption) OrderOption

ByGuildAdminConfigField orders the results by guild_admin_config field.

func ByGuildConfigField

func ByGuildConfigField(field string, opts ...sql.OrderTermOption) OrderOption

ByGuildConfigField orders the results by guild_config field.

func ByGuildEvents

func ByGuildEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGuildEvents orders the results by guild_events terms.

func ByGuildEventsCount

func ByGuildEventsCount(opts ...sql.OrderTermOption) OrderOption

ByGuildEventsCount orders the results by guild_events count.

func ByGuildID

func ByGuildID(opts ...sql.OrderTermOption) OrderOption

ByGuildID orders the results by the guild_id 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 ByIconURL

func ByIconURL(opts ...sql.OrderTermOption) OrderOption

ByIconURL orders the results by the icon_url field.

func ByJoinedAt

func ByJoinedAt(opts ...sql.OrderTermOption) OrderOption

ByJoinedAt orders the results by the joined_at field.

func ByLarge

func ByLarge(opts ...sql.OrderTermOption) OrderOption

ByLarge orders the results by the large field.

func ByMemberCount

func ByMemberCount(opts ...sql.OrderTermOption) OrderOption

ByMemberCount orders the results by the member_count field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOwnerID

func ByOwnerID(opts ...sql.OrderTermOption) OrderOption

ByOwnerID orders the results by the owner_id field.

func ByPermissions

func ByPermissions(opts ...sql.OrderTermOption) OrderOption

ByPermissions orders the results by the permissions field.

func BySystemChannelFlags

func BySystemChannelFlags(opts ...sql.OrderTermOption) OrderOption

BySystemChannelFlags orders the results by the system_channel_flags field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

Jump to

Keyboard shortcuts

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