Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WordSuffix) predicate.WordSuffix
- func Expired(v time.Time) predicate.WordSuffix
- func ExpiredEQ(v time.Time) predicate.WordSuffix
- func ExpiredGT(v time.Time) predicate.WordSuffix
- func ExpiredGTE(v time.Time) predicate.WordSuffix
- func ExpiredIn(vs ...time.Time) predicate.WordSuffix
- func ExpiredIsNil() predicate.WordSuffix
- func ExpiredLT(v time.Time) predicate.WordSuffix
- func ExpiredLTE(v time.Time) predicate.WordSuffix
- func ExpiredNEQ(v time.Time) predicate.WordSuffix
- func ExpiredNotIn(vs ...time.Time) predicate.WordSuffix
- func ExpiredNotNil() predicate.WordSuffix
- func GuildID(v snowflake.ID) predicate.WordSuffix
- func GuildIDEQ(v snowflake.ID) predicate.WordSuffix
- func GuildIDIn(vs ...snowflake.ID) predicate.WordSuffix
- func GuildIDIsNil() predicate.WordSuffix
- func GuildIDNEQ(v snowflake.ID) predicate.WordSuffix
- func GuildIDNotIn(vs ...snowflake.ID) predicate.WordSuffix
- func GuildIDNotNil() predicate.WordSuffix
- func HasGuild() predicate.WordSuffix
- func HasGuildWith(preds ...predicate.Guild) predicate.WordSuffix
- func HasOwner() predicate.WordSuffix
- func HasOwnerWith(preds ...predicate.User) predicate.WordSuffix
- func ID(id uuid.UUID) predicate.WordSuffix
- func IDEQ(id uuid.UUID) predicate.WordSuffix
- func IDGT(id uuid.UUID) predicate.WordSuffix
- func IDGTE(id uuid.UUID) predicate.WordSuffix
- func IDIn(ids ...uuid.UUID) predicate.WordSuffix
- func IDLT(id uuid.UUID) predicate.WordSuffix
- func IDLTE(id uuid.UUID) predicate.WordSuffix
- func IDNEQ(id uuid.UUID) predicate.WordSuffix
- func IDNotIn(ids ...uuid.UUID) predicate.WordSuffix
- func Not(p predicate.WordSuffix) predicate.WordSuffix
- func Or(predicates ...predicate.WordSuffix) predicate.WordSuffix
- func RuleEQ(v Rule) predicate.WordSuffix
- func RuleIn(vs ...Rule) predicate.WordSuffix
- func RuleNEQ(v Rule) predicate.WordSuffix
- func RuleNotIn(vs ...Rule) predicate.WordSuffix
- func RuleValidator(r Rule) error
- func Suffix(v string) predicate.WordSuffix
- func SuffixContains(v string) predicate.WordSuffix
- func SuffixContainsFold(v string) predicate.WordSuffix
- func SuffixEQ(v string) predicate.WordSuffix
- func SuffixEqualFold(v string) predicate.WordSuffix
- func SuffixGT(v string) predicate.WordSuffix
- func SuffixGTE(v string) predicate.WordSuffix
- func SuffixHasPrefix(v string) predicate.WordSuffix
- func SuffixHasSuffix(v string) predicate.WordSuffix
- func SuffixIn(vs ...string) predicate.WordSuffix
- func SuffixLT(v string) predicate.WordSuffix
- func SuffixLTE(v string) predicate.WordSuffix
- func SuffixNEQ(v string) predicate.WordSuffix
- func SuffixNotIn(vs ...string) predicate.WordSuffix
- func ValidColumn(column string) bool
- type OrderOption
- func ByExpired(opts ...sql.OrderTermOption) OrderOption
- func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGuildID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRule(opts ...sql.OrderTermOption) OrderOption
- func BySuffix(opts ...sql.OrderTermOption) OrderOption
- type Rule
Constants ¶
const ( // Label holds the string label denoting the wordsuffix type in the database. Label = "word_suffix" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSuffix holds the string denoting the suffix field in the database. FieldSuffix = "suffix" // FieldExpired holds the string denoting the expired field in the database. FieldExpired = "expired" // FieldGuildID holds the string denoting the guild_id field in the database. FieldGuildID = "guild_id" // FieldRule holds the string denoting the rule field in the database. FieldRule = "rule" // EdgeGuild holds the string denoting the guild edge name in mutations. EdgeGuild = "guild" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the wordsuffix in the database. Table = "word_suffixes" // GuildTable is the table that holds the guild relation/edge. GuildTable = "word_suffixes" // 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_id" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "word_suffixes" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_word_suffix" )
const DefaultRule = RuleWebhook
RuleWebhook is the default value of the Rule enum.
Variables ¶
var ( // SuffixValidator is a validator for the "suffix" field. It is called by the builders before save. SuffixValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldSuffix, FieldExpired, FieldGuildID, FieldRule, }
Columns holds all SQL columns for wordsuffix fields.
var ForeignKeys = []string{
"user_word_suffix",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "word_suffixes" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.WordSuffix) predicate.WordSuffix
And groups predicates with the AND operator between them.
func Expired ¶
func Expired(v time.Time) predicate.WordSuffix
Expired applies equality check predicate on the "expired" field. It's identical to ExpiredEQ.
func ExpiredEQ ¶
func ExpiredEQ(v time.Time) predicate.WordSuffix
ExpiredEQ applies the EQ predicate on the "expired" field.
func ExpiredGT ¶
func ExpiredGT(v time.Time) predicate.WordSuffix
ExpiredGT applies the GT predicate on the "expired" field.
func ExpiredGTE ¶
func ExpiredGTE(v time.Time) predicate.WordSuffix
ExpiredGTE applies the GTE predicate on the "expired" field.
func ExpiredIn ¶
func ExpiredIn(vs ...time.Time) predicate.WordSuffix
ExpiredIn applies the In predicate on the "expired" field.
func ExpiredIsNil ¶
func ExpiredIsNil() predicate.WordSuffix
ExpiredIsNil applies the IsNil predicate on the "expired" field.
func ExpiredLT ¶
func ExpiredLT(v time.Time) predicate.WordSuffix
ExpiredLT applies the LT predicate on the "expired" field.
func ExpiredLTE ¶
func ExpiredLTE(v time.Time) predicate.WordSuffix
ExpiredLTE applies the LTE predicate on the "expired" field.
func ExpiredNEQ ¶
func ExpiredNEQ(v time.Time) predicate.WordSuffix
ExpiredNEQ applies the NEQ predicate on the "expired" field.
func ExpiredNotIn ¶
func ExpiredNotIn(vs ...time.Time) predicate.WordSuffix
ExpiredNotIn applies the NotIn predicate on the "expired" field.
func ExpiredNotNil ¶
func ExpiredNotNil() predicate.WordSuffix
ExpiredNotNil applies the NotNil predicate on the "expired" field.
func GuildID ¶
func GuildID(v snowflake.ID) predicate.WordSuffix
GuildID applies equality check predicate on the "guild_id" field. It's identical to GuildIDEQ.
func GuildIDEQ ¶
func GuildIDEQ(v snowflake.ID) predicate.WordSuffix
GuildIDEQ applies the EQ predicate on the "guild_id" field.
func GuildIDIn ¶
func GuildIDIn(vs ...snowflake.ID) predicate.WordSuffix
GuildIDIn applies the In predicate on the "guild_id" field.
func GuildIDIsNil ¶
func GuildIDIsNil() predicate.WordSuffix
GuildIDIsNil applies the IsNil predicate on the "guild_id" field.
func GuildIDNEQ ¶
func GuildIDNEQ(v snowflake.ID) predicate.WordSuffix
GuildIDNEQ applies the NEQ predicate on the "guild_id" field.
func GuildIDNotIn ¶
func GuildIDNotIn(vs ...snowflake.ID) predicate.WordSuffix
GuildIDNotIn applies the NotIn predicate on the "guild_id" field.
func GuildIDNotNil ¶
func GuildIDNotNil() predicate.WordSuffix
GuildIDNotNil applies the NotNil predicate on the "guild_id" field.
func HasGuild ¶
func HasGuild() predicate.WordSuffix
HasGuild applies the HasEdge predicate on the "guild" edge.
func HasGuildWith ¶
func HasGuildWith(preds ...predicate.Guild) predicate.WordSuffix
HasGuildWith applies the HasEdge predicate on the "guild" edge with a given conditions (other predicates).
func HasOwner ¶
func HasOwner() predicate.WordSuffix
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.User) predicate.WordSuffix
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.WordSuffix
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.WordSuffix
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.WordSuffix
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.WordSuffix
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.WordSuffix
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.WordSuffix
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.WordSuffix
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.WordSuffix
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.WordSuffix) predicate.WordSuffix
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WordSuffix) predicate.WordSuffix
Or groups predicates with the OR operator between them.
func RuleEQ ¶
func RuleEQ(v Rule) predicate.WordSuffix
RuleEQ applies the EQ predicate on the "rule" field.
func RuleIn ¶
func RuleIn(vs ...Rule) predicate.WordSuffix
RuleIn applies the In predicate on the "rule" field.
func RuleNEQ ¶
func RuleNEQ(v Rule) predicate.WordSuffix
RuleNEQ applies the NEQ predicate on the "rule" field.
func RuleNotIn ¶
func RuleNotIn(vs ...Rule) predicate.WordSuffix
RuleNotIn applies the NotIn predicate on the "rule" field.
func RuleValidator ¶
RuleValidator is a validator for the "rule" field enum values. It is called by the builders before save.
func Suffix ¶
func Suffix(v string) predicate.WordSuffix
Suffix applies equality check predicate on the "suffix" field. It's identical to SuffixEQ.
func SuffixContains ¶
func SuffixContains(v string) predicate.WordSuffix
SuffixContains applies the Contains predicate on the "suffix" field.
func SuffixContainsFold ¶
func SuffixContainsFold(v string) predicate.WordSuffix
SuffixContainsFold applies the ContainsFold predicate on the "suffix" field.
func SuffixEQ ¶
func SuffixEQ(v string) predicate.WordSuffix
SuffixEQ applies the EQ predicate on the "suffix" field.
func SuffixEqualFold ¶
func SuffixEqualFold(v string) predicate.WordSuffix
SuffixEqualFold applies the EqualFold predicate on the "suffix" field.
func SuffixGT ¶
func SuffixGT(v string) predicate.WordSuffix
SuffixGT applies the GT predicate on the "suffix" field.
func SuffixGTE ¶
func SuffixGTE(v string) predicate.WordSuffix
SuffixGTE applies the GTE predicate on the "suffix" field.
func SuffixHasPrefix ¶
func SuffixHasPrefix(v string) predicate.WordSuffix
SuffixHasPrefix applies the HasPrefix predicate on the "suffix" field.
func SuffixHasSuffix ¶
func SuffixHasSuffix(v string) predicate.WordSuffix
SuffixHasSuffix applies the HasSuffix predicate on the "suffix" field.
func SuffixIn ¶
func SuffixIn(vs ...string) predicate.WordSuffix
SuffixIn applies the In predicate on the "suffix" field.
func SuffixLT ¶
func SuffixLT(v string) predicate.WordSuffix
SuffixLT applies the LT predicate on the "suffix" field.
func SuffixLTE ¶
func SuffixLTE(v string) predicate.WordSuffix
SuffixLTE applies the LTE predicate on the "suffix" field.
func SuffixNEQ ¶
func SuffixNEQ(v string) predicate.WordSuffix
SuffixNEQ applies the NEQ predicate on the "suffix" field.
func SuffixNotIn ¶
func SuffixNotIn(vs ...string) predicate.WordSuffix
SuffixNotIn applies the NotIn predicate on the "suffix" 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 WordSuffix queries.
func ByExpired ¶
func ByExpired(opts ...sql.OrderTermOption) OrderOption
ByExpired orders the results by the expired field.
func ByGuildField ¶
func ByGuildField(field string, opts ...sql.OrderTermOption) OrderOption
ByGuildField orders the results by guild field.
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 ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByRule ¶
func ByRule(opts ...sql.OrderTermOption) OrderOption
ByRule orders the results by the rule field.
func BySuffix ¶
func BySuffix(opts ...sql.OrderTermOption) OrderOption
BySuffix orders the results by the suffix field.