Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MessagePin) predicate.MessagePin
- func BeforeID(v snowflake.ID) predicate.MessagePin
- func BeforeIDEQ(v snowflake.ID) predicate.MessagePin
- func BeforeIDGT(v snowflake.ID) predicate.MessagePin
- func BeforeIDGTE(v snowflake.ID) predicate.MessagePin
- func BeforeIDIn(vs ...snowflake.ID) predicate.MessagePin
- func BeforeIDIsNil() predicate.MessagePin
- func BeforeIDLT(v snowflake.ID) predicate.MessagePin
- func BeforeIDLTE(v snowflake.ID) predicate.MessagePin
- func BeforeIDNEQ(v snowflake.ID) predicate.MessagePin
- func BeforeIDNotIn(vs ...snowflake.ID) predicate.MessagePin
- func BeforeIDNotNil() predicate.MessagePin
- func ChannelID(v snowflake.ID) predicate.MessagePin
- func ChannelIDEQ(v snowflake.ID) predicate.MessagePin
- func ChannelIDGT(v snowflake.ID) predicate.MessagePin
- func ChannelIDGTE(v snowflake.ID) predicate.MessagePin
- func ChannelIDIn(vs ...snowflake.ID) predicate.MessagePin
- func ChannelIDLT(v snowflake.ID) predicate.MessagePin
- func ChannelIDLTE(v snowflake.ID) predicate.MessagePin
- func ChannelIDNEQ(v snowflake.ID) predicate.MessagePin
- func ChannelIDNotIn(vs ...snowflake.ID) predicate.MessagePin
- func Content(v string) predicate.MessagePin
- func ContentContains(v string) predicate.MessagePin
- func ContentContainsFold(v string) predicate.MessagePin
- func ContentEQ(v string) predicate.MessagePin
- func ContentEqualFold(v string) predicate.MessagePin
- func ContentGT(v string) predicate.MessagePin
- func ContentGTE(v string) predicate.MessagePin
- func ContentHasPrefix(v string) predicate.MessagePin
- func ContentHasSuffix(v string) predicate.MessagePin
- func ContentIn(vs ...string) predicate.MessagePin
- func ContentIsNil() predicate.MessagePin
- func ContentLT(v string) predicate.MessagePin
- func ContentLTE(v string) predicate.MessagePin
- func ContentNEQ(v string) predicate.MessagePin
- func ContentNotIn(vs ...string) predicate.MessagePin
- func ContentNotNil() predicate.MessagePin
- func EmbedsIsNil() predicate.MessagePin
- func EmbedsNotNil() predicate.MessagePin
- func HasGuild() predicate.MessagePin
- func HasGuildWith(preds ...predicate.Guild) predicate.MessagePin
- func ID(id uuid.UUID) predicate.MessagePin
- func IDEQ(id uuid.UUID) predicate.MessagePin
- func IDGT(id uuid.UUID) predicate.MessagePin
- func IDGTE(id uuid.UUID) predicate.MessagePin
- func IDIn(ids ...uuid.UUID) predicate.MessagePin
- func IDLT(id uuid.UUID) predicate.MessagePin
- func IDLTE(id uuid.UUID) predicate.MessagePin
- func IDNEQ(id uuid.UUID) predicate.MessagePin
- func IDNotIn(ids ...uuid.UUID) predicate.MessagePin
- func Not(p predicate.MessagePin) predicate.MessagePin
- func Or(predicates ...predicate.MessagePin) predicate.MessagePin
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldChannelID, FieldContent, FieldEmbeds, FieldBeforeID, FieldRateLimit, }
Columns holds all SQL columns for messagepin fields.
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 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 ¶
func Not(p predicate.MessagePin) predicate.MessagePin
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.