Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Project) predicate.Project
- func Description(v string) predicate.Project
- func DescriptionContains(v string) predicate.Project
- func DescriptionContainsFold(v string) predicate.Project
- func DescriptionEQ(v string) predicate.Project
- func DescriptionEqualFold(v string) predicate.Project
- func DescriptionGT(v string) predicate.Project
- func DescriptionGTE(v string) predicate.Project
- func DescriptionHasPrefix(v string) predicate.Project
- func DescriptionHasSuffix(v string) predicate.Project
- func DescriptionIn(vs ...string) predicate.Project
- func DescriptionIsNil() predicate.Project
- func DescriptionLT(v string) predicate.Project
- func DescriptionLTE(v string) predicate.Project
- func DescriptionNEQ(v string) predicate.Project
- func DescriptionNotIn(vs ...string) predicate.Project
- func DescriptionNotNil() predicate.Project
- func EndDate(v time.Time) predicate.Project
- func EndDateEQ(v time.Time) predicate.Project
- func EndDateGT(v time.Time) predicate.Project
- func EndDateGTE(v time.Time) predicate.Project
- func EndDateIn(vs ...time.Time) predicate.Project
- func EndDateIsNil() predicate.Project
- func EndDateLT(v time.Time) predicate.Project
- func EndDateLTE(v time.Time) predicate.Project
- func EndDateNEQ(v time.Time) predicate.Project
- func EndDateNotIn(vs ...time.Time) predicate.Project
- func EndDateNotNil() predicate.Project
- func HasChildProjects() predicate.Project
- func HasChildProjectsWith(preds ...predicate.ProjectAssociation) predicate.Project
- func HasContributors() predicate.Project
- func HasContributorsWith(preds ...predicate.ProjectContributor) predicate.Project
- func HasDiscordBots() predicate.Project
- func HasDiscordBotsWith(preds ...predicate.DiscordBot) predicate.Project
- func HasParentProjects() predicate.Project
- func HasParentProjectsWith(preds ...predicate.ProjectAssociation) predicate.Project
- func HasRepositories() predicate.Project
- func HasRepositoriesWith(preds ...predicate.Repository) predicate.Project
- func HasSites() predicate.Project
- func HasSitesWith(preds ...predicate.Site) predicate.Project
- func HasTechnologies() predicate.Project
- func HasTechnologiesWith(preds ...predicate.ProjectTechnology) predicate.Project
- func ID(id int) predicate.Project
- func IDEQ(id int) predicate.Project
- func IDGT(id int) predicate.Project
- func IDGTE(id int) predicate.Project
- func IDIn(ids ...int) predicate.Project
- func IDLT(id int) predicate.Project
- func IDLTE(id int) predicate.Project
- func IDNEQ(id int) predicate.Project
- func IDNotIn(ids ...int) predicate.Project
- func Name(v string) predicate.Project
- func NameContains(v string) predicate.Project
- func NameContainsFold(v string) predicate.Project
- func NameEQ(v string) predicate.Project
- func NameEqualFold(v string) predicate.Project
- func NameGT(v string) predicate.Project
- func NameGTE(v string) predicate.Project
- func NameHasPrefix(v string) predicate.Project
- func NameHasSuffix(v string) predicate.Project
- func NameIn(vs ...string) predicate.Project
- func NameLT(v string) predicate.Project
- func NameLTE(v string) predicate.Project
- func NameNEQ(v string) predicate.Project
- func NameNotIn(vs ...string) predicate.Project
- func Not(p predicate.Project) predicate.Project
- func Or(predicates ...predicate.Project) predicate.Project
- func StartDate(v time.Time) predicate.Project
- func StartDateEQ(v time.Time) predicate.Project
- func StartDateGT(v time.Time) predicate.Project
- func StartDateGTE(v time.Time) predicate.Project
- func StartDateIn(vs ...time.Time) predicate.Project
- func StartDateLT(v time.Time) predicate.Project
- func StartDateLTE(v time.Time) predicate.Project
- func StartDateNEQ(v time.Time) predicate.Project
- func StartDateNotIn(vs ...time.Time) predicate.Project
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the project type in the database. Label = "project" // 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" // FieldStartDate holds the string denoting the start_date field in the database. FieldStartDate = "start_date" // FieldEndDate holds the string denoting the end_date field in the database. FieldEndDate = "end_date" // EdgeContributors holds the string denoting the contributors edge name in mutations. EdgeContributors = "contributors" // EdgeParentProjects holds the string denoting the parent_projects edge name in mutations. EdgeParentProjects = "parent_projects" // EdgeChildProjects holds the string denoting the child_projects edge name in mutations. EdgeChildProjects = "child_projects" // EdgeRepositories holds the string denoting the repositories edge name in mutations. EdgeRepositories = "repositories" // 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 project in the database. Table = "projects" // ContributorsTable is the table that holds the contributors relation/edge. ContributorsTable = "project_contributors" // ContributorsInverseTable is the table name for the ProjectContributor entity. // It exists in this package in order to avoid circular dependency with the "projectcontributor" package. ContributorsInverseTable = "project_contributors" // ContributorsColumn is the table column denoting the contributors relation/edge. ContributorsColumn = "project_contributors" // ParentProjectsTable is the table that holds the parent_projects relation/edge. ParentProjectsTable = "project_associations" // ParentProjectsInverseTable is the table name for the ProjectAssociation entity. // It exists in this package in order to avoid circular dependency with the "projectassociation" package. ParentProjectsInverseTable = "project_associations" // ParentProjectsColumn is the table column denoting the parent_projects relation/edge. ParentProjectsColumn = "project_parent_projects" // ChildProjectsTable is the table that holds the child_projects relation/edge. ChildProjectsTable = "project_associations" // ChildProjectsInverseTable is the table name for the ProjectAssociation entity. // It exists in this package in order to avoid circular dependency with the "projectassociation" package. ChildProjectsInverseTable = "project_associations" // ChildProjectsColumn is the table column denoting the child_projects relation/edge. ChildProjectsColumn = "project_child_projects" // RepositoriesTable is the table that holds the repositories relation/edge. RepositoriesTable = "repositories" // RepositoriesInverseTable is the table name for the Repository entity. // It exists in this package in order to avoid circular dependency with the "repository" package. RepositoriesInverseTable = "repositories" // RepositoriesColumn is the table column denoting the repositories relation/edge. RepositoriesColumn = "project_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 = "project_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 = "project_sites" // TechnologiesTable is the table that holds the technologies relation/edge. TechnologiesTable = "project_technologies" // TechnologiesInverseTable is the table name for the ProjectTechnology entity. // It exists in this package in order to avoid circular dependency with the "projecttechnology" package. TechnologiesInverseTable = "project_technologies" // TechnologiesColumn is the table column denoting the technologies relation/edge. TechnologiesColumn = "project_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, FieldStartDate, FieldEndDate, }
Columns holds all SQL columns for project fields.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndDate ¶
EndDate applies equality check predicate on the "end_date" field. It's identical to EndDateEQ.
func EndDateGTE ¶
EndDateGTE applies the GTE predicate on the "end_date" field.
func EndDateIsNil ¶
EndDateIsNil applies the IsNil predicate on the "end_date" field.
func EndDateLTE ¶
EndDateLTE applies the LTE predicate on the "end_date" field.
func EndDateNEQ ¶
EndDateNEQ applies the NEQ predicate on the "end_date" field.
func EndDateNotIn ¶
EndDateNotIn applies the NotIn predicate on the "end_date" field.
func EndDateNotNil ¶
EndDateNotNil applies the NotNil predicate on the "end_date" field.
func HasChildProjects ¶
HasChildProjects applies the HasEdge predicate on the "child_projects" edge.
func HasChildProjectsWith ¶
func HasChildProjectsWith(preds ...predicate.ProjectAssociation) predicate.Project
HasChildProjectsWith applies the HasEdge predicate on the "child_projects" edge with a given conditions (other predicates).
func HasContributors ¶
HasContributors applies the HasEdge predicate on the "contributors" edge.
func HasContributorsWith ¶
func HasContributorsWith(preds ...predicate.ProjectContributor) predicate.Project
HasContributorsWith applies the HasEdge predicate on the "contributors" edge with a given conditions (other predicates).
func HasDiscordBots ¶
HasDiscordBots applies the HasEdge predicate on the "discord_bots" edge.
func HasDiscordBotsWith ¶
func HasDiscordBotsWith(preds ...predicate.DiscordBot) predicate.Project
HasDiscordBotsWith applies the HasEdge predicate on the "discord_bots" edge with a given conditions (other predicates).
func HasParentProjects ¶
HasParentProjects applies the HasEdge predicate on the "parent_projects" edge.
func HasParentProjectsWith ¶
func HasParentProjectsWith(preds ...predicate.ProjectAssociation) predicate.Project
HasParentProjectsWith applies the HasEdge predicate on the "parent_projects" edge with a given conditions (other predicates).
func HasRepositories ¶
HasRepositories applies the HasEdge predicate on the "repositories" edge.
func HasRepositoriesWith ¶
func HasRepositoriesWith(preds ...predicate.Repository) predicate.Project
HasRepositoriesWith applies the HasEdge predicate on the "repositories" edge with a given conditions (other predicates).
func HasSitesWith ¶
HasSitesWith applies the HasEdge predicate on the "sites" edge with a given conditions (other predicates).
func HasTechnologies ¶
HasTechnologies applies the HasEdge predicate on the "technologies" edge.
func HasTechnologiesWith ¶
func HasTechnologiesWith(preds ...predicate.ProjectTechnology) predicate.Project
HasTechnologiesWith applies the HasEdge predicate on the "technologies" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func StartDate ¶
StartDate applies equality check predicate on the "start_date" field. It's identical to StartDateEQ.
func StartDateEQ ¶
StartDateEQ applies the EQ predicate on the "start_date" field.
func StartDateGT ¶
StartDateGT applies the GT predicate on the "start_date" field.
func StartDateGTE ¶
StartDateGTE applies the GTE predicate on the "start_date" field.
func StartDateIn ¶
StartDateIn applies the In predicate on the "start_date" field.
func StartDateLT ¶
StartDateLT applies the LT predicate on the "start_date" field.
func StartDateLTE ¶
StartDateLTE applies the LTE predicate on the "start_date" field.
func StartDateNEQ ¶
StartDateNEQ applies the NEQ predicate on the "start_date" field.
func StartDateNotIn ¶
StartDateNotIn applies the NotIn predicate on the "start_date" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.