repository

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

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

Columns holds all SQL columns for repository fields.

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

func ID(id int) predicate.Repository

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Repository

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Repository

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Repository

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

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

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