messagepin

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 messagepin type in the database.
	Label = "message_pin"
	// 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"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldEmbeds holds the string denoting the embeds field in the database.
	FieldEmbeds = "embeds"
	// FieldBeforeID holds the string denoting the before_id field in the database.
	FieldBeforeID = "before_id"
	// FieldRateLimit holds the string denoting the rate_limit field in the database.
	FieldRateLimit = "rate_limit"
	// EdgeGuild holds the string denoting the guild edge name in mutations.
	EdgeGuild = "guild"
	// Table holds the table name of the messagepin in the database.
	Table = "message_pins"
	// GuildTable is the table that holds the guild relation/edge.
	GuildTable = "message_pins"
	// 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_message_pins"
)

Variables

View Source
var (
	// DefaultRateLimit holds the default value on creation for the "rate_limit" field.
	DefaultRateLimit schema.RateLimit
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for messagepin fields.

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

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

Functions

func And

func And(predicates ...predicate.MessagePin) predicate.MessagePin

And groups predicates with the AND operator between them.

func BeforeID

func BeforeID(v snowflake.ID) predicate.MessagePin

BeforeID applies equality check predicate on the "before_id" field. It's identical to BeforeIDEQ.

func BeforeIDEQ

func BeforeIDEQ(v snowflake.ID) predicate.MessagePin

BeforeIDEQ applies the EQ predicate on the "before_id" field.

func BeforeIDGT

func BeforeIDGT(v snowflake.ID) predicate.MessagePin

BeforeIDGT applies the GT predicate on the "before_id" field.

func BeforeIDGTE

func BeforeIDGTE(v snowflake.ID) predicate.MessagePin

BeforeIDGTE applies the GTE predicate on the "before_id" field.

func BeforeIDIn

func BeforeIDIn(vs ...snowflake.ID) predicate.MessagePin

BeforeIDIn applies the In predicate on the "before_id" field.

func BeforeIDIsNil

func BeforeIDIsNil() predicate.MessagePin

BeforeIDIsNil applies the IsNil predicate on the "before_id" field.

func BeforeIDLT

func BeforeIDLT(v snowflake.ID) predicate.MessagePin

BeforeIDLT applies the LT predicate on the "before_id" field.

func BeforeIDLTE

func BeforeIDLTE(v snowflake.ID) predicate.MessagePin

BeforeIDLTE applies the LTE predicate on the "before_id" field.

func BeforeIDNEQ

func BeforeIDNEQ(v snowflake.ID) predicate.MessagePin

BeforeIDNEQ applies the NEQ predicate on the "before_id" field.

func BeforeIDNotIn

func BeforeIDNotIn(vs ...snowflake.ID) predicate.MessagePin

BeforeIDNotIn applies the NotIn predicate on the "before_id" field.

func BeforeIDNotNil

func BeforeIDNotNil() predicate.MessagePin

BeforeIDNotNil applies the NotNil predicate on the "before_id" field.

func ChannelID

func ChannelID(v snowflake.ID) predicate.MessagePin

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

func ChannelIDEQ

func ChannelIDEQ(v snowflake.ID) predicate.MessagePin

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

func ChannelIDGT

func ChannelIDGT(v snowflake.ID) predicate.MessagePin

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

func ChannelIDGTE

func ChannelIDGTE(v snowflake.ID) predicate.MessagePin

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

func ChannelIDIn

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

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

func ChannelIDLT

func ChannelIDLT(v snowflake.ID) predicate.MessagePin

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

func ChannelIDLTE

func ChannelIDLTE(v snowflake.ID) predicate.MessagePin

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

func ChannelIDNEQ

func ChannelIDNEQ(v snowflake.ID) predicate.MessagePin

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

func ChannelIDNotIn

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

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

func Content

func Content(v string) predicate.MessagePin

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

func ContentContains

func ContentContains(v string) predicate.MessagePin

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

func ContentContainsFold

func ContentContainsFold(v string) predicate.MessagePin

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

func ContentEQ

func ContentEQ(v string) predicate.MessagePin

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

func ContentEqualFold

func ContentEqualFold(v string) predicate.MessagePin

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

func ContentGT

func ContentGT(v string) predicate.MessagePin

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

func ContentGTE

func ContentGTE(v string) predicate.MessagePin

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

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.MessagePin

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

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.MessagePin

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

func ContentIn

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

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

func ContentIsNil

func ContentIsNil() predicate.MessagePin

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.MessagePin

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

func ContentLTE

func ContentLTE(v string) predicate.MessagePin

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

func ContentNEQ

func ContentNEQ(v string) predicate.MessagePin

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

func ContentNotIn

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

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

func ContentNotNil

func ContentNotNil() predicate.MessagePin

ContentNotNil applies the NotNil predicate on the "content" field.

func EmbedsIsNil

func EmbedsIsNil() predicate.MessagePin

EmbedsIsNil applies the IsNil predicate on the "embeds" field.

func EmbedsNotNil

func EmbedsNotNil() predicate.MessagePin

EmbedsNotNil applies the NotNil predicate on the "embeds" field.

func HasGuild

func HasGuild() predicate.MessagePin

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

func HasGuildWith

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

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

func IDEQ(id uuid.UUID) predicate.MessagePin

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.MessagePin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.MessagePin

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.MessagePin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.MessagePin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MessagePin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.MessagePin) predicate.MessagePin

Or groups predicates with the OR operator between them.

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

func ByBeforeID

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

ByBeforeID orders the results by the before_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.

Jump to

Keyboard shortcuts

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