messageremind

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the messageremind type in the database.
	Label = "message_remind"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChannelID holds the string denoting the channel_id field in the database.
	FieldChannelID = "channel_id"
	// FieldAuthorID holds the string denoting the author_id field in the database.
	FieldAuthorID = "author_id"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// Table holds the table name of the messageremind in the database.
	Table = "message_reminds"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "message_reminds"
	// 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_reminds"
)

Variables

View Source
var (
	// ContentValidator is a validator for the "content" field. It is called by the builders before save.
	ContentValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for messageremind fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func AuthorID

func AuthorID(v snowflake.ID) predicate.MessageRemind

AuthorID applies equality check predicate on the "author_id" field. It's identical to AuthorIDEQ.

func AuthorIDEQ

func AuthorIDEQ(v snowflake.ID) predicate.MessageRemind

AuthorIDEQ applies the EQ predicate on the "author_id" field.

func AuthorIDGT

func AuthorIDGT(v snowflake.ID) predicate.MessageRemind

AuthorIDGT applies the GT predicate on the "author_id" field.

func AuthorIDGTE

func AuthorIDGTE(v snowflake.ID) predicate.MessageRemind

AuthorIDGTE applies the GTE predicate on the "author_id" field.

func AuthorIDIn

func AuthorIDIn(vs ...snowflake.ID) predicate.MessageRemind

AuthorIDIn applies the In predicate on the "author_id" field.

func AuthorIDLT

func AuthorIDLT(v snowflake.ID) predicate.MessageRemind

AuthorIDLT applies the LT predicate on the "author_id" field.

func AuthorIDLTE

func AuthorIDLTE(v snowflake.ID) predicate.MessageRemind

AuthorIDLTE applies the LTE predicate on the "author_id" field.

func AuthorIDNEQ

func AuthorIDNEQ(v snowflake.ID) predicate.MessageRemind

AuthorIDNEQ applies the NEQ predicate on the "author_id" field.

func AuthorIDNotIn

func AuthorIDNotIn(vs ...snowflake.ID) predicate.MessageRemind

AuthorIDNotIn applies the NotIn predicate on the "author_id" field.

func ChannelID

func ChannelID(v snowflake.ID) predicate.MessageRemind

ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.

func ChannelIDEQ

func ChannelIDEQ(v snowflake.ID) predicate.MessageRemind

ChannelIDEQ applies the EQ predicate on the "channel_id" field.

func ChannelIDGT

func ChannelIDGT(v snowflake.ID) predicate.MessageRemind

ChannelIDGT applies the GT predicate on the "channel_id" field.

func ChannelIDGTE

func ChannelIDGTE(v snowflake.ID) predicate.MessageRemind

ChannelIDGTE applies the GTE predicate on the "channel_id" field.

func ChannelIDIn

func ChannelIDIn(vs ...snowflake.ID) predicate.MessageRemind

ChannelIDIn applies the In predicate on the "channel_id" field.

func ChannelIDLT

func ChannelIDLT(v snowflake.ID) predicate.MessageRemind

ChannelIDLT applies the LT predicate on the "channel_id" field.

func ChannelIDLTE

func ChannelIDLTE(v snowflake.ID) predicate.MessageRemind

ChannelIDLTE applies the LTE predicate on the "channel_id" field.

func ChannelIDNEQ

func ChannelIDNEQ(v snowflake.ID) predicate.MessageRemind

ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.

func ChannelIDNotIn

func ChannelIDNotIn(vs ...snowflake.ID) predicate.MessageRemind

ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.

func Content

func Content(v string) predicate.MessageRemind

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.MessageRemind

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.MessageRemind

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.MessageRemind

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.MessageRemind

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.MessageRemind

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.MessageRemind

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.MessageRemind

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.MessageRemind

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.MessageRemind

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.MessageRemind

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.MessageRemind

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.MessageRemind

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.MessageRemind

ContentNotIn applies the NotIn predicate on the "content" field.

func HasGuild

func HasGuild() predicate.MessageRemind

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

func HasGuildWith

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

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 uuid.UUID) predicate.MessageRemind

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.MessageRemind

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 uuid.UUID) predicate.MessageRemind

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MessageRemind

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.MessageRemind

IDNotIn applies the NotIn predicate on the ID field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.MessageRemind

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.MessageRemind

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.MessageRemind

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.MessageRemind

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.MessageRemind

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.MessageRemind

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.MessageRemind

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.MessageRemind

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.MessageRemind

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.MessageRemind

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.MessageRemind

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.MessageRemind

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.MessageRemind

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Time

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.MessageRemind

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.MessageRemind

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.MessageRemind

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Time) predicate.MessageRemind

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.MessageRemind

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.MessageRemind

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.MessageRemind

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.MessageRemind

TimeNotIn applies the NotIn predicate on the "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 MessageRemind queries.

func ByAuthorID

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

ByAuthorID orders the results by the author_id field.

func ByChannelID

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

ByChannelID orders the results by the channel_id field.

func ByContent

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

ByContent orders the results by the content 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 ByName

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

ByName orders the results by the name field.

func ByTime

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

ByTime orders the results by the time field.

Jump to

Keyboard shortcuts

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