Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DiscordBot) predicate.DiscordBot
- func HasAccount() predicate.DiscordBot
- func HasAccountWith(preds ...predicate.DiscordAccount) predicate.DiscordBot
- func HasProject() predicate.DiscordBot
- func HasProjectWith(preds ...predicate.Project) predicate.DiscordBot
- func HasRepository() predicate.DiscordBot
- func HasRepositoryWith(preds ...predicate.Repository) predicate.DiscordBot
- func ID(id int) predicate.DiscordBot
- func IDEQ(id int) predicate.DiscordBot
- func IDGT(id int) predicate.DiscordBot
- func IDGTE(id int) predicate.DiscordBot
- func IDIn(ids ...int) predicate.DiscordBot
- func IDLT(id int) predicate.DiscordBot
- func IDLTE(id int) predicate.DiscordBot
- func IDNEQ(id int) predicate.DiscordBot
- func IDNotIn(ids ...int) predicate.DiscordBot
- func Not(p predicate.DiscordBot) predicate.DiscordBot
- func Or(predicates ...predicate.DiscordBot) predicate.DiscordBot
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the discordbot type in the database. Label = "discord_bot" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeRepository holds the string denoting the repository edge name in mutations. EdgeRepository = "repository" // Table holds the table name of the discordbot in the database. Table = "discord_bots" // AccountTable is the table that holds the account relation/edge. AccountTable = "discord_accounts" // AccountInverseTable is the table name for the DiscordAccount entity. // It exists in this package in order to avoid circular dependency with the "discordaccount" package. AccountInverseTable = "discord_accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "discord_bot_account" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "discord_bots" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_discord_bots" // RepositoryTable is the table that holds the repository relation/edge. RepositoryTable = "discord_bots" // RepositoryInverseTable is the table name for the Repository entity. // It exists in this package in order to avoid circular dependency with the "repository" package. RepositoryInverseTable = "repositories" // RepositoryColumn is the table column denoting the repository relation/edge. RepositoryColumn = "repository_discord_bots" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy )
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, }
Columns holds all SQL columns for discordbot fields.
var ForeignKeys = []string{
"project_discord_bots",
"repository_discord_bots",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "discord_bots" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.DiscordBot) predicate.DiscordBot
And groups predicates with the AND operator between them.
func HasAccount ¶
func HasAccount() predicate.DiscordBot
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
func HasAccountWith(preds ...predicate.DiscordAccount) predicate.DiscordBot
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasProject ¶
func HasProject() predicate.DiscordBot
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.DiscordBot
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasRepository ¶
func HasRepository() predicate.DiscordBot
HasRepository applies the HasEdge predicate on the "repository" edge.
func HasRepositoryWith ¶
func HasRepositoryWith(preds ...predicate.Repository) predicate.DiscordBot
HasRepositoryWith applies the HasEdge predicate on the "repository" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.DiscordBot
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DiscordBot
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DiscordBot
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DiscordBot
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DiscordBot
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.DiscordBot) predicate.DiscordBot
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DiscordBot) predicate.DiscordBot
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 ¶
This section is empty.