Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DiscordAccount) predicate.DiscordAccount
- func DiscordID(v string) predicate.DiscordAccount
- func DiscordIDContains(v string) predicate.DiscordAccount
- func DiscordIDContainsFold(v string) predicate.DiscordAccount
- func DiscordIDEQ(v string) predicate.DiscordAccount
- func DiscordIDEqualFold(v string) predicate.DiscordAccount
- func DiscordIDGT(v string) predicate.DiscordAccount
- func DiscordIDGTE(v string) predicate.DiscordAccount
- func DiscordIDHasPrefix(v string) predicate.DiscordAccount
- func DiscordIDHasSuffix(v string) predicate.DiscordAccount
- func DiscordIDIn(vs ...string) predicate.DiscordAccount
- func DiscordIDLT(v string) predicate.DiscordAccount
- func DiscordIDLTE(v string) predicate.DiscordAccount
- func DiscordIDNEQ(v string) predicate.DiscordAccount
- func DiscordIDNotIn(vs ...string) predicate.DiscordAccount
- func Discriminator(v string) predicate.DiscordAccount
- func DiscriminatorContains(v string) predicate.DiscordAccount
- func DiscriminatorContainsFold(v string) predicate.DiscordAccount
- func DiscriminatorEQ(v string) predicate.DiscordAccount
- func DiscriminatorEqualFold(v string) predicate.DiscordAccount
- func DiscriminatorGT(v string) predicate.DiscordAccount
- func DiscriminatorGTE(v string) predicate.DiscordAccount
- func DiscriminatorHasPrefix(v string) predicate.DiscordAccount
- func DiscriminatorHasSuffix(v string) predicate.DiscordAccount
- func DiscriminatorIn(vs ...string) predicate.DiscordAccount
- func DiscriminatorLT(v string) predicate.DiscordAccount
- func DiscriminatorLTE(v string) predicate.DiscordAccount
- func DiscriminatorNEQ(v string) predicate.DiscordAccount
- func DiscriminatorNotIn(vs ...string) predicate.DiscordAccount
- func HasBot() predicate.DiscordAccount
- func HasBotWith(preds ...predicate.DiscordBot) predicate.DiscordAccount
- func HasOwner() predicate.DiscordAccount
- func HasOwnerWith(preds ...predicate.User) predicate.DiscordAccount
- func ID(id int) predicate.DiscordAccount
- func IDEQ(id int) predicate.DiscordAccount
- func IDGT(id int) predicate.DiscordAccount
- func IDGTE(id int) predicate.DiscordAccount
- func IDIn(ids ...int) predicate.DiscordAccount
- func IDLT(id int) predicate.DiscordAccount
- func IDLTE(id int) predicate.DiscordAccount
- func IDNEQ(id int) predicate.DiscordAccount
- func IDNotIn(ids ...int) predicate.DiscordAccount
- func Not(p predicate.DiscordAccount) predicate.DiscordAccount
- func Or(predicates ...predicate.DiscordAccount) predicate.DiscordAccount
- func Username(v string) predicate.DiscordAccount
- func UsernameContains(v string) predicate.DiscordAccount
- func UsernameContainsFold(v string) predicate.DiscordAccount
- func UsernameEQ(v string) predicate.DiscordAccount
- func UsernameEqualFold(v string) predicate.DiscordAccount
- func UsernameGT(v string) predicate.DiscordAccount
- func UsernameGTE(v string) predicate.DiscordAccount
- func UsernameHasPrefix(v string) predicate.DiscordAccount
- func UsernameHasSuffix(v string) predicate.DiscordAccount
- func UsernameIn(vs ...string) predicate.DiscordAccount
- func UsernameLT(v string) predicate.DiscordAccount
- func UsernameLTE(v string) predicate.DiscordAccount
- func UsernameNEQ(v string) predicate.DiscordAccount
- func UsernameNotIn(vs ...string) predicate.DiscordAccount
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the discordaccount type in the database. Label = "discord_account" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDiscordID holds the string denoting the discord_id field in the database. FieldDiscordID = "discord_id" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldDiscriminator holds the string denoting the discriminator field in the database. FieldDiscriminator = "discriminator" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeBot holds the string denoting the bot edge name in mutations. EdgeBot = "bot" // Table holds the table name of the discordaccount in the database. Table = "discord_accounts" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "discord_accounts" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_discord_accounts" // BotTable is the table that holds the bot relation/edge. BotTable = "discord_accounts" // BotInverseTable is the table name for the DiscordBot entity. // It exists in this package in order to avoid circular dependency with the "discordbot" package. BotInverseTable = "discord_bots" // BotColumn is the table column denoting the bot relation/edge. BotColumn = "discord_bot_account" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // DiscordIDValidator is a validator for the "discord_id" field. It is called by the builders before save. DiscordIDValidator func(string) error // DiscriminatorValidator is a validator for the "discriminator" field. It is called by the builders before save. DiscriminatorValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/fogo-sh/grackdb/ent/runtime"
var Columns = []string{ FieldID, FieldDiscordID, FieldUsername, FieldDiscriminator, }
Columns holds all SQL columns for discordaccount fields.
var ForeignKeys = []string{
"discord_bot_account",
"user_discord_accounts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "discord_accounts" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.DiscordAccount) predicate.DiscordAccount
And groups predicates with the AND operator between them.
func DiscordID ¶
func DiscordID(v string) predicate.DiscordAccount
DiscordID applies equality check predicate on the "discord_id" field. It's identical to DiscordIDEQ.
func DiscordIDContains ¶
func DiscordIDContains(v string) predicate.DiscordAccount
DiscordIDContains applies the Contains predicate on the "discord_id" field.
func DiscordIDContainsFold ¶
func DiscordIDContainsFold(v string) predicate.DiscordAccount
DiscordIDContainsFold applies the ContainsFold predicate on the "discord_id" field.
func DiscordIDEQ ¶
func DiscordIDEQ(v string) predicate.DiscordAccount
DiscordIDEQ applies the EQ predicate on the "discord_id" field.
func DiscordIDEqualFold ¶
func DiscordIDEqualFold(v string) predicate.DiscordAccount
DiscordIDEqualFold applies the EqualFold predicate on the "discord_id" field.
func DiscordIDGT ¶
func DiscordIDGT(v string) predicate.DiscordAccount
DiscordIDGT applies the GT predicate on the "discord_id" field.
func DiscordIDGTE ¶
func DiscordIDGTE(v string) predicate.DiscordAccount
DiscordIDGTE applies the GTE predicate on the "discord_id" field.
func DiscordIDHasPrefix ¶
func DiscordIDHasPrefix(v string) predicate.DiscordAccount
DiscordIDHasPrefix applies the HasPrefix predicate on the "discord_id" field.
func DiscordIDHasSuffix ¶
func DiscordIDHasSuffix(v string) predicate.DiscordAccount
DiscordIDHasSuffix applies the HasSuffix predicate on the "discord_id" field.
func DiscordIDIn ¶
func DiscordIDIn(vs ...string) predicate.DiscordAccount
DiscordIDIn applies the In predicate on the "discord_id" field.
func DiscordIDLT ¶
func DiscordIDLT(v string) predicate.DiscordAccount
DiscordIDLT applies the LT predicate on the "discord_id" field.
func DiscordIDLTE ¶
func DiscordIDLTE(v string) predicate.DiscordAccount
DiscordIDLTE applies the LTE predicate on the "discord_id" field.
func DiscordIDNEQ ¶
func DiscordIDNEQ(v string) predicate.DiscordAccount
DiscordIDNEQ applies the NEQ predicate on the "discord_id" field.
func DiscordIDNotIn ¶
func DiscordIDNotIn(vs ...string) predicate.DiscordAccount
DiscordIDNotIn applies the NotIn predicate on the "discord_id" field.
func Discriminator ¶
func Discriminator(v string) predicate.DiscordAccount
Discriminator applies equality check predicate on the "discriminator" field. It's identical to DiscriminatorEQ.
func DiscriminatorContains ¶
func DiscriminatorContains(v string) predicate.DiscordAccount
DiscriminatorContains applies the Contains predicate on the "discriminator" field.
func DiscriminatorContainsFold ¶
func DiscriminatorContainsFold(v string) predicate.DiscordAccount
DiscriminatorContainsFold applies the ContainsFold predicate on the "discriminator" field.
func DiscriminatorEQ ¶
func DiscriminatorEQ(v string) predicate.DiscordAccount
DiscriminatorEQ applies the EQ predicate on the "discriminator" field.
func DiscriminatorEqualFold ¶
func DiscriminatorEqualFold(v string) predicate.DiscordAccount
DiscriminatorEqualFold applies the EqualFold predicate on the "discriminator" field.
func DiscriminatorGT ¶
func DiscriminatorGT(v string) predicate.DiscordAccount
DiscriminatorGT applies the GT predicate on the "discriminator" field.
func DiscriminatorGTE ¶
func DiscriminatorGTE(v string) predicate.DiscordAccount
DiscriminatorGTE applies the GTE predicate on the "discriminator" field.
func DiscriminatorHasPrefix ¶
func DiscriminatorHasPrefix(v string) predicate.DiscordAccount
DiscriminatorHasPrefix applies the HasPrefix predicate on the "discriminator" field.
func DiscriminatorHasSuffix ¶
func DiscriminatorHasSuffix(v string) predicate.DiscordAccount
DiscriminatorHasSuffix applies the HasSuffix predicate on the "discriminator" field.
func DiscriminatorIn ¶
func DiscriminatorIn(vs ...string) predicate.DiscordAccount
DiscriminatorIn applies the In predicate on the "discriminator" field.
func DiscriminatorLT ¶
func DiscriminatorLT(v string) predicate.DiscordAccount
DiscriminatorLT applies the LT predicate on the "discriminator" field.
func DiscriminatorLTE ¶
func DiscriminatorLTE(v string) predicate.DiscordAccount
DiscriminatorLTE applies the LTE predicate on the "discriminator" field.
func DiscriminatorNEQ ¶
func DiscriminatorNEQ(v string) predicate.DiscordAccount
DiscriminatorNEQ applies the NEQ predicate on the "discriminator" field.
func DiscriminatorNotIn ¶
func DiscriminatorNotIn(vs ...string) predicate.DiscordAccount
DiscriminatorNotIn applies the NotIn predicate on the "discriminator" field.
func HasBot ¶
func HasBot() predicate.DiscordAccount
HasBot applies the HasEdge predicate on the "bot" edge.
func HasBotWith ¶
func HasBotWith(preds ...predicate.DiscordBot) predicate.DiscordAccount
HasBotWith applies the HasEdge predicate on the "bot" edge with a given conditions (other predicates).
func HasOwner ¶
func HasOwner() predicate.DiscordAccount
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.User) predicate.DiscordAccount
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.DiscordAccount
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.DiscordAccount
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.DiscordAccount
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DiscordAccount
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.DiscordAccount
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DiscordAccount
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DiscordAccount
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DiscordAccount
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.DiscordAccount) predicate.DiscordAccount
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DiscordAccount) predicate.DiscordAccount
Or groups predicates with the OR operator between them.
func Username ¶
func Username(v string) predicate.DiscordAccount
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
func UsernameContains(v string) predicate.DiscordAccount
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
func UsernameContainsFold(v string) predicate.DiscordAccount
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
func UsernameEQ(v string) predicate.DiscordAccount
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
func UsernameEqualFold(v string) predicate.DiscordAccount
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
func UsernameGT(v string) predicate.DiscordAccount
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
func UsernameGTE(v string) predicate.DiscordAccount
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
func UsernameHasPrefix(v string) predicate.DiscordAccount
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
func UsernameHasSuffix(v string) predicate.DiscordAccount
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
func UsernameIn(vs ...string) predicate.DiscordAccount
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
func UsernameLT(v string) predicate.DiscordAccount
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
func UsernameLTE(v string) predicate.DiscordAccount
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
func UsernameNEQ(v string) predicate.DiscordAccount
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
func UsernameNotIn(vs ...string) predicate.DiscordAccount
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 ¶
This section is empty.