Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DiscordUser) predicate.DiscordUser
- func Discordid(v string) predicate.DiscordUser
- func DiscordidContains(v string) predicate.DiscordUser
- func DiscordidContainsFold(v string) predicate.DiscordUser
- func DiscordidEQ(v string) predicate.DiscordUser
- func DiscordidEqualFold(v string) predicate.DiscordUser
- func DiscordidGT(v string) predicate.DiscordUser
- func DiscordidGTE(v string) predicate.DiscordUser
- func DiscordidHasPrefix(v string) predicate.DiscordUser
- func DiscordidHasSuffix(v string) predicate.DiscordUser
- func DiscordidIn(vs ...string) predicate.DiscordUser
- func DiscordidLT(v string) predicate.DiscordUser
- func DiscordidLTE(v string) predicate.DiscordUser
- func DiscordidNEQ(v string) predicate.DiscordUser
- func DiscordidNotIn(vs ...string) predicate.DiscordUser
- func HasDiscordMessages() predicate.DiscordUser
- func HasDiscordMessagesWith(preds ...predicate.DiscordMessage) predicate.DiscordUser
- func ID(id uuid.UUID) predicate.DiscordUser
- func IDEQ(id uuid.UUID) predicate.DiscordUser
- func IDGT(id uuid.UUID) predicate.DiscordUser
- func IDGTE(id uuid.UUID) predicate.DiscordUser
- func IDIn(ids ...uuid.UUID) predicate.DiscordUser
- func IDLT(id uuid.UUID) predicate.DiscordUser
- func IDLTE(id uuid.UUID) predicate.DiscordUser
- func IDNEQ(id uuid.UUID) predicate.DiscordUser
- func IDNotIn(ids ...uuid.UUID) predicate.DiscordUser
- func Not(p predicate.DiscordUser) predicate.DiscordUser
- func Or(predicates ...predicate.DiscordUser) predicate.DiscordUser
- func Username(v string) predicate.DiscordUser
- func UsernameContains(v string) predicate.DiscordUser
- func UsernameContainsFold(v string) predicate.DiscordUser
- func UsernameEQ(v string) predicate.DiscordUser
- func UsernameEqualFold(v string) predicate.DiscordUser
- func UsernameGT(v string) predicate.DiscordUser
- func UsernameGTE(v string) predicate.DiscordUser
- func UsernameHasPrefix(v string) predicate.DiscordUser
- func UsernameHasSuffix(v string) predicate.DiscordUser
- func UsernameIn(vs ...string) predicate.DiscordUser
- func UsernameLT(v string) predicate.DiscordUser
- func UsernameLTE(v string) predicate.DiscordUser
- func UsernameNEQ(v string) predicate.DiscordUser
- func UsernameNotIn(vs ...string) predicate.DiscordUser
- func ValidColumn(column string) bool
- type OrderOption
- func ByDiscordMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDiscordMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDiscordid(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldDiscordid, FieldUsername, }
Columns holds all SQL columns for discorduser fields.
var ( // DefaultDiscordid holds the default value on creation for the "discordid" field. DefaultDiscordid string )
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 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 ¶
func Not(p predicate.DiscordUser) predicate.DiscordUser
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.