discordbot

package
v0.0.0-...-5435fe0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"
View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for discordbot fields.

View Source
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 ID

func ID(id int) predicate.DiscordBot

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DiscordBot

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DiscordBot

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.DiscordBot

IDLT applies the LT 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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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