wordsuffix

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultRule = RuleWebhook

RuleWebhook is the default value of the Rule enum.

Variables

View Source
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
)

Columns holds all SQL columns for wordsuffix fields.

View Source
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 ID

ID filters vertices based on their ID field.

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

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

func RuleValidator(r Rule) error

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

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

type Rule

type Rule string

Rule defines the type for the "rule" enum field.

const (
	RuleWebhook Rule = "webhook"
	RuleWarn    Rule = "warn"
	RuleDelete  Rule = "delete"
)

Rule values.

func (Rule) String

func (r Rule) String() string

Jump to

Keyboard shortcuts

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