discorduser

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the discorduser type in the database.
	Label = "discord_user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDiscordid holds the string denoting the discordid field in the database.
	FieldDiscordid = "discordid"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// EdgeDiscordMessages holds the string denoting the discord_messages edge name in mutations.
	EdgeDiscordMessages = "discord_messages"
	// Table holds the table name of the discorduser in the database.
	Table = "discord_users"
	// DiscordMessagesTable is the table that holds the discord_messages relation/edge. The primary key declared below.
	DiscordMessagesTable = "discord_user_discord_messages"
	// DiscordMessagesInverseTable is the table name for the DiscordMessage entity.
	// It exists in this package in order to avoid circular dependency with the "discordmessage" package.
	DiscordMessagesInverseTable = "discord_messages"
)

Variables

Columns holds all SQL columns for discorduser fields.

View Source
var (
	// DefaultDiscordid holds the default value on creation for the "discordid" field.
	DefaultDiscordid string
)
View Source
var (
	// DiscordMessagesPrimaryKey and DiscordMessagesColumn2 are the table columns denoting the
	// primary key for the discord_messages relation (M2M).
	DiscordMessagesPrimaryKey = []string{"discord_user_id", "discord_message_id"}
)

Functions

func And

func And(predicates ...predicate.DiscordUser) predicate.DiscordUser

And groups predicates with the AND operator between them.

func Discordid

func Discordid(v string) predicate.DiscordUser

Discordid applies equality check predicate on the "discordid" field. It's identical to DiscordidEQ.

func DiscordidContains

func DiscordidContains(v string) predicate.DiscordUser

DiscordidContains applies the Contains predicate on the "discordid" field.

func DiscordidContainsFold

func DiscordidContainsFold(v string) predicate.DiscordUser

DiscordidContainsFold applies the ContainsFold predicate on the "discordid" field.

func DiscordidEQ

func DiscordidEQ(v string) predicate.DiscordUser

DiscordidEQ applies the EQ predicate on the "discordid" field.

func DiscordidEqualFold

func DiscordidEqualFold(v string) predicate.DiscordUser

DiscordidEqualFold applies the EqualFold predicate on the "discordid" field.

func DiscordidGT

func DiscordidGT(v string) predicate.DiscordUser

DiscordidGT applies the GT predicate on the "discordid" field.

func DiscordidGTE

func DiscordidGTE(v string) predicate.DiscordUser

DiscordidGTE applies the GTE predicate on the "discordid" field.

func DiscordidHasPrefix

func DiscordidHasPrefix(v string) predicate.DiscordUser

DiscordidHasPrefix applies the HasPrefix predicate on the "discordid" field.

func DiscordidHasSuffix

func DiscordidHasSuffix(v string) predicate.DiscordUser

DiscordidHasSuffix applies the HasSuffix predicate on the "discordid" field.

func DiscordidIn

func DiscordidIn(vs ...string) predicate.DiscordUser

DiscordidIn applies the In predicate on the "discordid" field.

func DiscordidLT

func DiscordidLT(v string) predicate.DiscordUser

DiscordidLT applies the LT predicate on the "discordid" field.

func DiscordidLTE

func DiscordidLTE(v string) predicate.DiscordUser

DiscordidLTE applies the LTE predicate on the "discordid" field.

func DiscordidNEQ

func DiscordidNEQ(v string) predicate.DiscordUser

DiscordidNEQ applies the NEQ predicate on the "discordid" field.

func DiscordidNotIn

func DiscordidNotIn(vs ...string) predicate.DiscordUser

DiscordidNotIn applies the NotIn predicate on the "discordid" field.

func HasDiscordMessages

func HasDiscordMessages() predicate.DiscordUser

HasDiscordMessages applies the HasEdge predicate on the "discord_messages" edge.

func HasDiscordMessagesWith

func HasDiscordMessagesWith(preds ...predicate.DiscordMessage) predicate.DiscordUser

HasDiscordMessagesWith applies the HasEdge predicate on the "discord_messages" 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.DiscordUser

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.DiscordUser

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.DiscordUser

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.DiscordUser

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.DiscordUser

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.DiscordUser

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Username

func Username(v string) predicate.DiscordUser

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.DiscordUser

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.DiscordUser

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.DiscordUser

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.DiscordUser

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.DiscordUser

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.DiscordUser

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.DiscordUser

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.DiscordUser

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.DiscordUser

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.DiscordUser

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.DiscordUser

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.DiscordUser

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.DiscordUser

UsernameNotIn applies the NotIn predicate on the "username" 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 DiscordUser queries.

func ByDiscordMessages

func ByDiscordMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDiscordMessages orders the results by discord_messages terms.

func ByDiscordMessagesCount

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

ByDiscordMessagesCount orders the results by discord_messages count.

func ByDiscordid

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

ByDiscordid orders the results by the discordid field.

func ByID

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

ByID orders the results by the id field.

func ByUsername

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

ByUsername orders the results by the username field.

Jump to

Keyboard shortcuts

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