guildconfig

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 guildconfig type in the database.
	Label = "guild_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"
	// FieldDefaultMaxClones holds the string denoting the default_max_clones field in the database.
	FieldDefaultMaxClones = "default_max_clones"
	// FieldRegexMatch holds the string denoting the regex_match field in the database.
	FieldRegexMatch = "regex_match"
	// FieldContactEmail holds the string denoting the contact_email field in the database.
	FieldContactEmail = "contact_email"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// Table holds the table name of the guildconfig in the database.
	Table = "guild_configs"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "guild_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_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
	// 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
	// DefaultRegexMatch holds the default value on creation for the "regex_match" field.
	DefaultRegexMatch string
	// RegexMatchValidator is a validator for the "regex_match" field. It is called by the builders before save.
	RegexMatchValidator func(string) error
	// DefaultContactEmail holds the default value on creation for the "contact_email" field.
	DefaultContactEmail string
	// ContactEmailValidator is a validator for the "contact_email" field. It is called by the builders before save.
	ContactEmailValidator 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"

Columns holds all SQL columns for guildconfig fields.

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

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

Functions

func And

func And(predicates ...predicate.GuildConfig) predicate.GuildConfig

And groups predicates with the AND operator between them.

func ContactEmail

func ContactEmail(v string) predicate.GuildConfig

ContactEmail applies equality check predicate on the "contact_email" field. It's identical to ContactEmailEQ.

func ContactEmailContains

func ContactEmailContains(v string) predicate.GuildConfig

ContactEmailContains applies the Contains predicate on the "contact_email" field.

func ContactEmailContainsFold

func ContactEmailContainsFold(v string) predicate.GuildConfig

ContactEmailContainsFold applies the ContainsFold predicate on the "contact_email" field.

func ContactEmailEQ

func ContactEmailEQ(v string) predicate.GuildConfig

ContactEmailEQ applies the EQ predicate on the "contact_email" field.

func ContactEmailEqualFold

func ContactEmailEqualFold(v string) predicate.GuildConfig

ContactEmailEqualFold applies the EqualFold predicate on the "contact_email" field.

func ContactEmailGT

func ContactEmailGT(v string) predicate.GuildConfig

ContactEmailGT applies the GT predicate on the "contact_email" field.

func ContactEmailGTE

func ContactEmailGTE(v string) predicate.GuildConfig

ContactEmailGTE applies the GTE predicate on the "contact_email" field.

func ContactEmailHasPrefix

func ContactEmailHasPrefix(v string) predicate.GuildConfig

ContactEmailHasPrefix applies the HasPrefix predicate on the "contact_email" field.

func ContactEmailHasSuffix

func ContactEmailHasSuffix(v string) predicate.GuildConfig

ContactEmailHasSuffix applies the HasSuffix predicate on the "contact_email" field.

func ContactEmailIn

func ContactEmailIn(vs ...string) predicate.GuildConfig

ContactEmailIn applies the In predicate on the "contact_email" field.

func ContactEmailIsNil

func ContactEmailIsNil() predicate.GuildConfig

ContactEmailIsNil applies the IsNil predicate on the "contact_email" field.

func ContactEmailLT

func ContactEmailLT(v string) predicate.GuildConfig

ContactEmailLT applies the LT predicate on the "contact_email" field.

func ContactEmailLTE

func ContactEmailLTE(v string) predicate.GuildConfig

ContactEmailLTE applies the LTE predicate on the "contact_email" field.

func ContactEmailNEQ

func ContactEmailNEQ(v string) predicate.GuildConfig

ContactEmailNEQ applies the NEQ predicate on the "contact_email" field.

func ContactEmailNotIn

func ContactEmailNotIn(vs ...string) predicate.GuildConfig

ContactEmailNotIn applies the NotIn predicate on the "contact_email" field.

func ContactEmailNotNil

func ContactEmailNotNil() predicate.GuildConfig

ContactEmailNotNil applies the NotNil predicate on the "contact_email" field.

func CreateTime

func CreateTime(v time.Time) predicate.GuildConfig

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.GuildConfig

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.GuildConfig

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.GuildConfig

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.GuildConfig

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.GuildConfig

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.GuildConfig

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

func CreateTimeNotIn

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

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

func DefaultMaxClones

func DefaultMaxClones(v int) predicate.GuildConfig

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

func DefaultMaxClonesEQ

func DefaultMaxClonesEQ(v int) predicate.GuildConfig

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

func DefaultMaxClonesGT

func DefaultMaxClonesGT(v int) predicate.GuildConfig

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

func DefaultMaxClonesGTE

func DefaultMaxClonesGTE(v int) predicate.GuildConfig

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

func DefaultMaxClonesIn

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

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

func DefaultMaxClonesIsNil

func DefaultMaxClonesIsNil() predicate.GuildConfig

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

func DefaultMaxClonesLT

func DefaultMaxClonesLT(v int) predicate.GuildConfig

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

func DefaultMaxClonesLTE

func DefaultMaxClonesLTE(v int) predicate.GuildConfig

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

func DefaultMaxClonesNEQ

func DefaultMaxClonesNEQ(v int) predicate.GuildConfig

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

func DefaultMaxClonesNotIn

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

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

func DefaultMaxClonesNotNil

func DefaultMaxClonesNotNil() predicate.GuildConfig

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

func Enabled

func Enabled(v bool) predicate.GuildConfig

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

func EnabledEQ

func EnabledEQ(v bool) predicate.GuildConfig

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

func EnabledIsNil

func EnabledIsNil() predicate.GuildConfig

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

func EnabledNEQ

func EnabledNEQ(v bool) predicate.GuildConfig

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

func EnabledNotNil

func EnabledNotNil() predicate.GuildConfig

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

func HasGuild

func HasGuild() predicate.GuildConfig

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

func HasGuildWith

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

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

func ID

func ID(id int) predicate.GuildConfig

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.GuildConfig

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.GuildConfig

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GuildConfig

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.GuildConfig

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GuildConfig

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GuildConfig

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.GuildConfig) predicate.GuildConfig

Or groups predicates with the OR operator between them.

func RegexMatch

func RegexMatch(v string) predicate.GuildConfig

RegexMatch applies equality check predicate on the "regex_match" field. It's identical to RegexMatchEQ.

func RegexMatchContains

func RegexMatchContains(v string) predicate.GuildConfig

RegexMatchContains applies the Contains predicate on the "regex_match" field.

func RegexMatchContainsFold

func RegexMatchContainsFold(v string) predicate.GuildConfig

RegexMatchContainsFold applies the ContainsFold predicate on the "regex_match" field.

func RegexMatchEQ

func RegexMatchEQ(v string) predicate.GuildConfig

RegexMatchEQ applies the EQ predicate on the "regex_match" field.

func RegexMatchEqualFold

func RegexMatchEqualFold(v string) predicate.GuildConfig

RegexMatchEqualFold applies the EqualFold predicate on the "regex_match" field.

func RegexMatchGT

func RegexMatchGT(v string) predicate.GuildConfig

RegexMatchGT applies the GT predicate on the "regex_match" field.

func RegexMatchGTE

func RegexMatchGTE(v string) predicate.GuildConfig

RegexMatchGTE applies the GTE predicate on the "regex_match" field.

func RegexMatchHasPrefix

func RegexMatchHasPrefix(v string) predicate.GuildConfig

RegexMatchHasPrefix applies the HasPrefix predicate on the "regex_match" field.

func RegexMatchHasSuffix

func RegexMatchHasSuffix(v string) predicate.GuildConfig

RegexMatchHasSuffix applies the HasSuffix predicate on the "regex_match" field.

func RegexMatchIn

func RegexMatchIn(vs ...string) predicate.GuildConfig

RegexMatchIn applies the In predicate on the "regex_match" field.

func RegexMatchIsNil

func RegexMatchIsNil() predicate.GuildConfig

RegexMatchIsNil applies the IsNil predicate on the "regex_match" field.

func RegexMatchLT

func RegexMatchLT(v string) predicate.GuildConfig

RegexMatchLT applies the LT predicate on the "regex_match" field.

func RegexMatchLTE

func RegexMatchLTE(v string) predicate.GuildConfig

RegexMatchLTE applies the LTE predicate on the "regex_match" field.

func RegexMatchNEQ

func RegexMatchNEQ(v string) predicate.GuildConfig

RegexMatchNEQ applies the NEQ predicate on the "regex_match" field.

func RegexMatchNotIn

func RegexMatchNotIn(vs ...string) predicate.GuildConfig

RegexMatchNotIn applies the NotIn predicate on the "regex_match" field.

func RegexMatchNotNil

func RegexMatchNotNil() predicate.GuildConfig

RegexMatchNotNil applies the NotNil predicate on the "regex_match" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.GuildConfig

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.GuildConfig

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.GuildConfig

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.GuildConfig

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.GuildConfig

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.GuildConfig

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.GuildConfig

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

func UpdateTimeNotIn

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

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

func ByContactEmail

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

ByContactEmail orders the results by the contact_email field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time 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 ByRegexMatch

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

ByRegexMatch orders the results by the regex_match 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