Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GuildConfig) predicate.GuildConfig
- func ContactEmail(v string) predicate.GuildConfig
- func ContactEmailContains(v string) predicate.GuildConfig
- func ContactEmailContainsFold(v string) predicate.GuildConfig
- func ContactEmailEQ(v string) predicate.GuildConfig
- func ContactEmailEqualFold(v string) predicate.GuildConfig
- func ContactEmailGT(v string) predicate.GuildConfig
- func ContactEmailGTE(v string) predicate.GuildConfig
- func ContactEmailHasPrefix(v string) predicate.GuildConfig
- func ContactEmailHasSuffix(v string) predicate.GuildConfig
- func ContactEmailIn(vs ...string) predicate.GuildConfig
- func ContactEmailIsNil() predicate.GuildConfig
- func ContactEmailLT(v string) predicate.GuildConfig
- func ContactEmailLTE(v string) predicate.GuildConfig
- func ContactEmailNEQ(v string) predicate.GuildConfig
- func ContactEmailNotIn(vs ...string) predicate.GuildConfig
- func ContactEmailNotNil() predicate.GuildConfig
- func CreateTime(v time.Time) predicate.GuildConfig
- func CreateTimeEQ(v time.Time) predicate.GuildConfig
- func CreateTimeGT(v time.Time) predicate.GuildConfig
- func CreateTimeGTE(v time.Time) predicate.GuildConfig
- func CreateTimeIn(vs ...time.Time) predicate.GuildConfig
- func CreateTimeLT(v time.Time) predicate.GuildConfig
- func CreateTimeLTE(v time.Time) predicate.GuildConfig
- func CreateTimeNEQ(v time.Time) predicate.GuildConfig
- func CreateTimeNotIn(vs ...time.Time) predicate.GuildConfig
- func DefaultMaxClones(v int) predicate.GuildConfig
- func DefaultMaxClonesEQ(v int) predicate.GuildConfig
- func DefaultMaxClonesGT(v int) predicate.GuildConfig
- func DefaultMaxClonesGTE(v int) predicate.GuildConfig
- func DefaultMaxClonesIn(vs ...int) predicate.GuildConfig
- func DefaultMaxClonesIsNil() predicate.GuildConfig
- func DefaultMaxClonesLT(v int) predicate.GuildConfig
- func DefaultMaxClonesLTE(v int) predicate.GuildConfig
- func DefaultMaxClonesNEQ(v int) predicate.GuildConfig
- func DefaultMaxClonesNotIn(vs ...int) predicate.GuildConfig
- func DefaultMaxClonesNotNil() predicate.GuildConfig
- func Enabled(v bool) predicate.GuildConfig
- func EnabledEQ(v bool) predicate.GuildConfig
- func EnabledIsNil() predicate.GuildConfig
- func EnabledNEQ(v bool) predicate.GuildConfig
- func EnabledNotNil() predicate.GuildConfig
- func HasGuild() predicate.GuildConfig
- func HasGuildWith(preds ...predicate.Guild) predicate.GuildConfig
- func ID(id int) predicate.GuildConfig
- func IDEQ(id int) predicate.GuildConfig
- func IDGT(id int) predicate.GuildConfig
- func IDGTE(id int) predicate.GuildConfig
- func IDIn(ids ...int) predicate.GuildConfig
- func IDLT(id int) predicate.GuildConfig
- func IDLTE(id int) predicate.GuildConfig
- func IDNEQ(id int) predicate.GuildConfig
- func IDNotIn(ids ...int) predicate.GuildConfig
- func Not(p predicate.GuildConfig) predicate.GuildConfig
- func Or(predicates ...predicate.GuildConfig) predicate.GuildConfig
- func RegexMatch(v string) predicate.GuildConfig
- func RegexMatchContains(v string) predicate.GuildConfig
- func RegexMatchContainsFold(v string) predicate.GuildConfig
- func RegexMatchEQ(v string) predicate.GuildConfig
- func RegexMatchEqualFold(v string) predicate.GuildConfig
- func RegexMatchGT(v string) predicate.GuildConfig
- func RegexMatchGTE(v string) predicate.GuildConfig
- func RegexMatchHasPrefix(v string) predicate.GuildConfig
- func RegexMatchHasSuffix(v string) predicate.GuildConfig
- func RegexMatchIn(vs ...string) predicate.GuildConfig
- func RegexMatchIsNil() predicate.GuildConfig
- func RegexMatchLT(v string) predicate.GuildConfig
- func RegexMatchLTE(v string) predicate.GuildConfig
- func RegexMatchNEQ(v string) predicate.GuildConfig
- func RegexMatchNotIn(vs ...string) predicate.GuildConfig
- func RegexMatchNotNil() predicate.GuildConfig
- func UpdateTime(v time.Time) predicate.GuildConfig
- func UpdateTimeEQ(v time.Time) predicate.GuildConfig
- func UpdateTimeGT(v time.Time) predicate.GuildConfig
- func UpdateTimeGTE(v time.Time) predicate.GuildConfig
- func UpdateTimeIn(vs ...time.Time) predicate.GuildConfig
- func UpdateTimeLT(v time.Time) predicate.GuildConfig
- func UpdateTimeLTE(v time.Time) predicate.GuildConfig
- func UpdateTimeNEQ(v time.Time) predicate.GuildConfig
- func UpdateTimeNotIn(vs ...time.Time) predicate.GuildConfig
- func ValidColumn(column string) bool
- type OrderOption
- func ByContactEmail(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultMaxClones(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRegexMatch(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldEnabled, FieldDefaultMaxClones, FieldRegexMatch, FieldContactEmail, }
Columns holds all SQL columns for guildconfig fields.
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 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 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 ¶
func Not(p predicate.GuildConfig) predicate.GuildConfig
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.