Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Repository) predicate.Repository
- func Description(v string) predicate.Repository
- func DescriptionContains(v string) predicate.Repository
- func DescriptionContainsFold(v string) predicate.Repository
- func DescriptionEQ(v string) predicate.Repository
- func DescriptionEqualFold(v string) predicate.Repository
- func DescriptionGT(v string) predicate.Repository
- func DescriptionGTE(v string) predicate.Repository
- func DescriptionHasPrefix(v string) predicate.Repository
- func DescriptionHasSuffix(v string) predicate.Repository
- func DescriptionIn(vs ...string) predicate.Repository
- func DescriptionIsNil() predicate.Repository
- func DescriptionLT(v string) predicate.Repository
- func DescriptionLTE(v string) predicate.Repository
- func DescriptionNEQ(v string) predicate.Repository
- func DescriptionNotIn(vs ...string) predicate.Repository
- func DescriptionNotNil() predicate.Repository
- func HasDiscordBots() predicate.Repository
- func HasDiscordBotsWith(preds ...predicate.DiscordBot) predicate.Repository
- func HasGithubAccount() predicate.Repository
- func HasGithubAccountWith(preds ...predicate.GithubAccount) predicate.Repository
- func HasGithubOrganization() predicate.Repository
- func HasGithubOrganizationWith(preds ...predicate.GithubOrganization) predicate.Repository
- func HasProject() predicate.Repository
- func HasProjectWith(preds ...predicate.Project) predicate.Repository
- func HasSites() predicate.Repository
- func HasSitesWith(preds ...predicate.Site) predicate.Repository
- func HasTechnologies() predicate.Repository
- func HasTechnologiesWith(preds ...predicate.RepositoryTechnology) predicate.Repository
- func ID(id int) predicate.Repository
- func IDEQ(id int) predicate.Repository
- func IDGT(id int) predicate.Repository
- func IDGTE(id int) predicate.Repository
- func IDIn(ids ...int) predicate.Repository
- func IDLT(id int) predicate.Repository
- func IDLTE(id int) predicate.Repository
- func IDNEQ(id int) predicate.Repository
- func IDNotIn(ids ...int) predicate.Repository
- func Name(v string) predicate.Repository
- func NameContains(v string) predicate.Repository
- func NameContainsFold(v string) predicate.Repository
- func NameEQ(v string) predicate.Repository
- func NameEqualFold(v string) predicate.Repository
- func NameGT(v string) predicate.Repository
- func NameGTE(v string) predicate.Repository
- func NameHasPrefix(v string) predicate.Repository
- func NameHasSuffix(v string) predicate.Repository
- func NameIn(vs ...string) predicate.Repository
- func NameLT(v string) predicate.Repository
- func NameLTE(v string) predicate.Repository
- func NameNEQ(v string) predicate.Repository
- func NameNotIn(vs ...string) predicate.Repository
- func Not(p predicate.Repository) predicate.Repository
- func Or(predicates ...predicate.Repository) predicate.Repository
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the repository type in the database. Label = "repository" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeGithubAccount holds the string denoting the github_account edge name in mutations. EdgeGithubAccount = "github_account" // EdgeGithubOrganization holds the string denoting the github_organization edge name in mutations. EdgeGithubOrganization = "github_organization" // EdgeDiscordBots holds the string denoting the discord_bots edge name in mutations. EdgeDiscordBots = "discord_bots" // EdgeSites holds the string denoting the sites edge name in mutations. EdgeSites = "sites" // EdgeTechnologies holds the string denoting the technologies edge name in mutations. EdgeTechnologies = "technologies" // Table holds the table name of the repository in the database. Table = "repositories" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "repositories" // 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_repositories" // GithubAccountTable is the table that holds the github_account relation/edge. GithubAccountTable = "repositories" // GithubAccountInverseTable is the table name for the GithubAccount entity. // It exists in this package in order to avoid circular dependency with the "githubaccount" package. GithubAccountInverseTable = "github_accounts" // GithubAccountColumn is the table column denoting the github_account relation/edge. GithubAccountColumn = "github_account_repositories" // GithubOrganizationTable is the table that holds the github_organization relation/edge. GithubOrganizationTable = "repositories" // GithubOrganizationInverseTable is the table name for the GithubOrganization entity. // It exists in this package in order to avoid circular dependency with the "githuborganization" package. GithubOrganizationInverseTable = "github_organizations" // GithubOrganizationColumn is the table column denoting the github_organization relation/edge. GithubOrganizationColumn = "github_organization_repositories" // DiscordBotsTable is the table that holds the discord_bots relation/edge. DiscordBotsTable = "discord_bots" // DiscordBotsInverseTable is the table name for the DiscordBot entity. // It exists in this package in order to avoid circular dependency with the "discordbot" package. DiscordBotsInverseTable = "discord_bots" // DiscordBotsColumn is the table column denoting the discord_bots relation/edge. DiscordBotsColumn = "repository_discord_bots" // SitesTable is the table that holds the sites relation/edge. SitesTable = "sites" // SitesInverseTable is the table name for the Site entity. // It exists in this package in order to avoid circular dependency with the "site" package. SitesInverseTable = "sites" // SitesColumn is the table column denoting the sites relation/edge. SitesColumn = "repository_sites" // TechnologiesTable is the table that holds the technologies relation/edge. TechnologiesTable = "repository_technologies" // TechnologiesInverseTable is the table name for the RepositoryTechnology entity. // It exists in this package in order to avoid circular dependency with the "repositorytechnology" package. TechnologiesInverseTable = "repository_technologies" // TechnologiesColumn is the table column denoting the technologies relation/edge. TechnologiesColumn = "repository_technologies" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator 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, FieldName, FieldDescription, }
Columns holds all SQL columns for repository fields.
var ForeignKeys = []string{
"github_account_repositories",
"github_organization_repositories",
"project_repositories",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "repositories" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Repository) predicate.Repository
And groups predicates with the AND operator between them.
func Description ¶
func Description(v string) predicate.Repository
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Repository
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Repository
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Repository
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Repository
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Repository
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Repository
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Repository
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Repository
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Repository
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.Repository
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Repository
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Repository
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Repository
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Repository
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.Repository
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasDiscordBots ¶
func HasDiscordBots() predicate.Repository
HasDiscordBots applies the HasEdge predicate on the "discord_bots" edge.
func HasDiscordBotsWith ¶
func HasDiscordBotsWith(preds ...predicate.DiscordBot) predicate.Repository
HasDiscordBotsWith applies the HasEdge predicate on the "discord_bots" edge with a given conditions (other predicates).
func HasGithubAccount ¶
func HasGithubAccount() predicate.Repository
HasGithubAccount applies the HasEdge predicate on the "github_account" edge.
func HasGithubAccountWith ¶
func HasGithubAccountWith(preds ...predicate.GithubAccount) predicate.Repository
HasGithubAccountWith applies the HasEdge predicate on the "github_account" edge with a given conditions (other predicates).
func HasGithubOrganization ¶
func HasGithubOrganization() predicate.Repository
HasGithubOrganization applies the HasEdge predicate on the "github_organization" edge.
func HasGithubOrganizationWith ¶
func HasGithubOrganizationWith(preds ...predicate.GithubOrganization) predicate.Repository
HasGithubOrganizationWith applies the HasEdge predicate on the "github_organization" edge with a given conditions (other predicates).
func HasProject ¶
func HasProject() predicate.Repository
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.Repository
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasSites ¶
func HasSites() predicate.Repository
HasSites applies the HasEdge predicate on the "sites" edge.
func HasSitesWith ¶
func HasSitesWith(preds ...predicate.Site) predicate.Repository
HasSitesWith applies the HasEdge predicate on the "sites" edge with a given conditions (other predicates).
func HasTechnologies ¶
func HasTechnologies() predicate.Repository
HasTechnologies applies the HasEdge predicate on the "technologies" edge.
func HasTechnologiesWith ¶
func HasTechnologiesWith(preds ...predicate.RepositoryTechnology) predicate.Repository
HasTechnologiesWith applies the HasEdge predicate on the "technologies" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Repository
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Repository
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Repository
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Repository
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Repository
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Repository
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Repository
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Repository
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Repository
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Repository
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Repository
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Repository
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Repository
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Repository
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Repository
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Repository
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Repository
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Repository
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Repository
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Repository) predicate.Repository
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Repository) predicate.Repository
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.