guildadminconfig

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 guildadminconfig type in the database.
	Label = "guild_admin_config"
	// 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"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldDefaultMaxChannels holds the string denoting the default_max_channels field in the database.
	FieldDefaultMaxChannels = "default_max_channels"
	// FieldDefaultMaxClones holds the string denoting the default_max_clones field in the database.
	FieldDefaultMaxClones = "default_max_clones"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// Table holds the table name of the guildadminconfig in the database.
	Table = "guild_admin_configs"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "guild_admin_configs"
	// GuildInverseTable is the table name for the Guild entity.
	// It exists in this package in order to avoid circular dependency with the "guild" package.
	GuildInverseTable = "guilds"
	// GuildColumn is the table column denoting the guild relation/edge.
	GuildColumn = "guild_guild_admin_config"
)

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
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultDefaultMaxChannels holds the default value on creation for the "default_max_channels" field.
	DefaultDefaultMaxChannels int
	// DefaultMaxChannelsValidator is a validator for the "default_max_channels" field. It is called by the builders before save.
	DefaultMaxChannelsValidator func(int) error
	// DefaultDefaultMaxClones holds the default value on creation for the "default_max_clones" field.
	DefaultDefaultMaxClones int
	// DefaultMaxClonesValidator is a validator for the "default_max_clones" field. It is called by the builders before save.
	DefaultMaxClonesValidator func(int) error
	// DefaultComment holds the default value on creation for the "comment" field.
	DefaultComment string
)

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"

Columns holds all SQL columns for guildadminconfig fields.

View Source
var ForeignKeys = []string{
	"guild_guild_admin_config",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "guild_admin_configs" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func Comment

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.GuildAdminConfig

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.GuildAdminConfig

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.GuildAdminConfig

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.GuildAdminConfig

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.GuildAdminConfig

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.GuildAdminConfig

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.GuildAdminConfig

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.GuildAdminConfig

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

func CommentIn(vs ...string) predicate.GuildAdminConfig

CommentIn applies the In predicate on the "comment" field.

func CommentIsNil

func CommentIsNil() predicate.GuildAdminConfig

CommentIsNil applies the IsNil predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.GuildAdminConfig

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.GuildAdminConfig

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.GuildAdminConfig

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

func CommentNotIn(vs ...string) predicate.GuildAdminConfig

CommentNotIn applies the NotIn predicate on the "comment" field.

func CommentNotNil

func CommentNotNil() predicate.GuildAdminConfig

CommentNotNil applies the NotNil predicate on the "comment" field.

func CreateTime

func CreateTime(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.GuildAdminConfig

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

func CreateTimeNotIn

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

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

func DefaultMaxChannels

func DefaultMaxChannels(v int) predicate.GuildAdminConfig

DefaultMaxChannels applies equality check predicate on the "default_max_channels" field. It's identical to DefaultMaxChannelsEQ.

func DefaultMaxChannelsEQ

func DefaultMaxChannelsEQ(v int) predicate.GuildAdminConfig

DefaultMaxChannelsEQ applies the EQ predicate on the "default_max_channels" field.

func DefaultMaxChannelsGT

func DefaultMaxChannelsGT(v int) predicate.GuildAdminConfig

DefaultMaxChannelsGT applies the GT predicate on the "default_max_channels" field.

func DefaultMaxChannelsGTE

func DefaultMaxChannelsGTE(v int) predicate.GuildAdminConfig

DefaultMaxChannelsGTE applies the GTE predicate on the "default_max_channels" field.

func DefaultMaxChannelsIn

func DefaultMaxChannelsIn(vs ...int) predicate.GuildAdminConfig

DefaultMaxChannelsIn applies the In predicate on the "default_max_channels" field.

func DefaultMaxChannelsIsNil

func DefaultMaxChannelsIsNil() predicate.GuildAdminConfig

DefaultMaxChannelsIsNil applies the IsNil predicate on the "default_max_channels" field.

func DefaultMaxChannelsLT

func DefaultMaxChannelsLT(v int) predicate.GuildAdminConfig

DefaultMaxChannelsLT applies the LT predicate on the "default_max_channels" field.

func DefaultMaxChannelsLTE

func DefaultMaxChannelsLTE(v int) predicate.GuildAdminConfig

DefaultMaxChannelsLTE applies the LTE predicate on the "default_max_channels" field.

func DefaultMaxChannelsNEQ

func DefaultMaxChannelsNEQ(v int) predicate.GuildAdminConfig

DefaultMaxChannelsNEQ applies the NEQ predicate on the "default_max_channels" field.

func DefaultMaxChannelsNotIn

func DefaultMaxChannelsNotIn(vs ...int) predicate.GuildAdminConfig

DefaultMaxChannelsNotIn applies the NotIn predicate on the "default_max_channels" field.

func DefaultMaxChannelsNotNil

func DefaultMaxChannelsNotNil() predicate.GuildAdminConfig

DefaultMaxChannelsNotNil applies the NotNil predicate on the "default_max_channels" field.

func DefaultMaxClones

func DefaultMaxClones(v int) predicate.GuildAdminConfig

DefaultMaxClones applies equality check predicate on the "default_max_clones" field. It's identical to DefaultMaxClonesEQ.

func DefaultMaxClonesEQ

func DefaultMaxClonesEQ(v int) predicate.GuildAdminConfig

DefaultMaxClonesEQ applies the EQ predicate on the "default_max_clones" field.

func DefaultMaxClonesGT

func DefaultMaxClonesGT(v int) predicate.GuildAdminConfig

DefaultMaxClonesGT applies the GT predicate on the "default_max_clones" field.

func DefaultMaxClonesGTE

func DefaultMaxClonesGTE(v int) predicate.GuildAdminConfig

DefaultMaxClonesGTE applies the GTE predicate on the "default_max_clones" field.

func DefaultMaxClonesIn

func DefaultMaxClonesIn(vs ...int) predicate.GuildAdminConfig

DefaultMaxClonesIn applies the In predicate on the "default_max_clones" field.

func DefaultMaxClonesIsNil

func DefaultMaxClonesIsNil() predicate.GuildAdminConfig

DefaultMaxClonesIsNil applies the IsNil predicate on the "default_max_clones" field.

func DefaultMaxClonesLT

func DefaultMaxClonesLT(v int) predicate.GuildAdminConfig

DefaultMaxClonesLT applies the LT predicate on the "default_max_clones" field.

func DefaultMaxClonesLTE

func DefaultMaxClonesLTE(v int) predicate.GuildAdminConfig

DefaultMaxClonesLTE applies the LTE predicate on the "default_max_clones" field.

func DefaultMaxClonesNEQ

func DefaultMaxClonesNEQ(v int) predicate.GuildAdminConfig

DefaultMaxClonesNEQ applies the NEQ predicate on the "default_max_clones" field.

func DefaultMaxClonesNotIn

func DefaultMaxClonesNotIn(vs ...int) predicate.GuildAdminConfig

DefaultMaxClonesNotIn applies the NotIn predicate on the "default_max_clones" field.

func DefaultMaxClonesNotNil

func DefaultMaxClonesNotNil() predicate.GuildAdminConfig

DefaultMaxClonesNotNil applies the NotNil predicate on the "default_max_clones" field.

func Enabled

func Enabled(v bool) predicate.GuildAdminConfig

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.GuildAdminConfig

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledIsNil

func EnabledIsNil() predicate.GuildAdminConfig

EnabledIsNil applies the IsNil predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.GuildAdminConfig

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func EnabledNotNil

func EnabledNotNil() predicate.GuildAdminConfig

EnabledNotNil applies the NotNil predicate on the "enabled" field.

func HasGuild

func HasGuild() predicate.GuildAdminConfig

HasGuild applies the HasEdge predicate on the "guild" edge.

func HasGuildWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GuildAdminConfig

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GuildAdminConfig

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GuildAdminConfig

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.GuildAdminConfig

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func UpdateTime

func UpdateTime(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.GuildAdminConfig

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

func UpdateTimeNotIn

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

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 GuildAdminConfig queries.

func ByComment

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

ByComment orders the results by the comment field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDefaultMaxChannels

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

ByDefaultMaxChannels orders the results by the default_max_channels field.

func ByDefaultMaxClones

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

ByDefaultMaxClones orders the results by the default_max_clones field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByGuildField

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

ByGuildField orders the results by guild field.

func ByID

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

ByID orders the results by the id 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