Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Technology) predicate.Technology
- func Colour(v string) predicate.Technology
- func ColourContains(v string) predicate.Technology
- func ColourContainsFold(v string) predicate.Technology
- func ColourEQ(v string) predicate.Technology
- func ColourEqualFold(v string) predicate.Technology
- func ColourGT(v string) predicate.Technology
- func ColourGTE(v string) predicate.Technology
- func ColourHasPrefix(v string) predicate.Technology
- func ColourHasSuffix(v string) predicate.Technology
- func ColourIn(vs ...string) predicate.Technology
- func ColourIsNil() predicate.Technology
- func ColourLT(v string) predicate.Technology
- func ColourLTE(v string) predicate.Technology
- func ColourNEQ(v string) predicate.Technology
- func ColourNotIn(vs ...string) predicate.Technology
- func ColourNotNil() predicate.Technology
- func Description(v string) predicate.Technology
- func DescriptionContains(v string) predicate.Technology
- func DescriptionContainsFold(v string) predicate.Technology
- func DescriptionEQ(v string) predicate.Technology
- func DescriptionEqualFold(v string) predicate.Technology
- func DescriptionGT(v string) predicate.Technology
- func DescriptionGTE(v string) predicate.Technology
- func DescriptionHasPrefix(v string) predicate.Technology
- func DescriptionHasSuffix(v string) predicate.Technology
- func DescriptionIn(vs ...string) predicate.Technology
- func DescriptionIsNil() predicate.Technology
- func DescriptionLT(v string) predicate.Technology
- func DescriptionLTE(v string) predicate.Technology
- func DescriptionNEQ(v string) predicate.Technology
- func DescriptionNotIn(vs ...string) predicate.Technology
- func DescriptionNotNil() predicate.Technology
- func HasChildTechnologies() predicate.Technology
- func HasChildTechnologiesWith(preds ...predicate.TechnologyAssociation) predicate.Technology
- func HasParentTechnologies() predicate.Technology
- func HasParentTechnologiesWith(preds ...predicate.TechnologyAssociation) predicate.Technology
- func HasProjects() predicate.Technology
- func HasProjectsWith(preds ...predicate.ProjectTechnology) predicate.Technology
- func HasRepositories() predicate.Technology
- func HasRepositoriesWith(preds ...predicate.RepositoryTechnology) predicate.Technology
- func ID(id int) predicate.Technology
- func IDEQ(id int) predicate.Technology
- func IDGT(id int) predicate.Technology
- func IDGTE(id int) predicate.Technology
- func IDIn(ids ...int) predicate.Technology
- func IDLT(id int) predicate.Technology
- func IDLTE(id int) predicate.Technology
- func IDNEQ(id int) predicate.Technology
- func IDNotIn(ids ...int) predicate.Technology
- func Name(v string) predicate.Technology
- func NameContains(v string) predicate.Technology
- func NameContainsFold(v string) predicate.Technology
- func NameEQ(v string) predicate.Technology
- func NameEqualFold(v string) predicate.Technology
- func NameGT(v string) predicate.Technology
- func NameGTE(v string) predicate.Technology
- func NameHasPrefix(v string) predicate.Technology
- func NameHasSuffix(v string) predicate.Technology
- func NameIn(vs ...string) predicate.Technology
- func NameLT(v string) predicate.Technology
- func NameLTE(v string) predicate.Technology
- func NameNEQ(v string) predicate.Technology
- func NameNotIn(vs ...string) predicate.Technology
- func Not(p predicate.Technology) predicate.Technology
- func Or(predicates ...predicate.Technology) predicate.Technology
- func TypeEQ(v Type) predicate.Technology
- func TypeIn(vs ...Type) predicate.Technology
- func TypeNEQ(v Type) predicate.Technology
- func TypeNotIn(vs ...Type) predicate.Technology
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the technology type in the database. Label = "technology" // 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" // FieldColour holds the string denoting the colour field in the database. FieldColour = "colour" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeParentTechnologies holds the string denoting the parent_technologies edge name in mutations. EdgeParentTechnologies = "parent_technologies" // EdgeChildTechnologies holds the string denoting the child_technologies edge name in mutations. EdgeChildTechnologies = "child_technologies" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeRepositories holds the string denoting the repositories edge name in mutations. EdgeRepositories = "repositories" // Table holds the table name of the technology in the database. Table = "technologies" // ParentTechnologiesTable is the table that holds the parent_technologies relation/edge. ParentTechnologiesTable = "technology_associations" // ParentTechnologiesInverseTable is the table name for the TechnologyAssociation entity. // It exists in this package in order to avoid circular dependency with the "technologyassociation" package. ParentTechnologiesInverseTable = "technology_associations" // ParentTechnologiesColumn is the table column denoting the parent_technologies relation/edge. ParentTechnologiesColumn = "technology_parent_technologies" // ChildTechnologiesTable is the table that holds the child_technologies relation/edge. ChildTechnologiesTable = "technology_associations" // ChildTechnologiesInverseTable is the table name for the TechnologyAssociation entity. // It exists in this package in order to avoid circular dependency with the "technologyassociation" package. ChildTechnologiesInverseTable = "technology_associations" // ChildTechnologiesColumn is the table column denoting the child_technologies relation/edge. ChildTechnologiesColumn = "technology_child_technologies" // ProjectsTable is the table that holds the projects relation/edge. ProjectsTable = "project_technologies" // ProjectsInverseTable is the table name for the ProjectTechnology entity. // It exists in this package in order to avoid circular dependency with the "projecttechnology" package. ProjectsInverseTable = "project_technologies" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "technology_projects" // RepositoriesTable is the table that holds the repositories relation/edge. RepositoriesTable = "repository_technologies" // RepositoriesInverseTable is the table name for the RepositoryTechnology entity. // It exists in this package in order to avoid circular dependency with the "repositorytechnology" package. RepositoriesInverseTable = "repository_technologies" // RepositoriesColumn is the table column denoting the repositories relation/edge. RepositoriesColumn = "technology_repositories" )
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, FieldColour, FieldType, }
Columns holds all SQL columns for technology fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Technology) predicate.Technology
And groups predicates with the AND operator between them.
func Colour ¶
func Colour(v string) predicate.Technology
Colour applies equality check predicate on the "colour" field. It's identical to ColourEQ.
func ColourContains ¶
func ColourContains(v string) predicate.Technology
ColourContains applies the Contains predicate on the "colour" field.
func ColourContainsFold ¶
func ColourContainsFold(v string) predicate.Technology
ColourContainsFold applies the ContainsFold predicate on the "colour" field.
func ColourEQ ¶
func ColourEQ(v string) predicate.Technology
ColourEQ applies the EQ predicate on the "colour" field.
func ColourEqualFold ¶
func ColourEqualFold(v string) predicate.Technology
ColourEqualFold applies the EqualFold predicate on the "colour" field.
func ColourGT ¶
func ColourGT(v string) predicate.Technology
ColourGT applies the GT predicate on the "colour" field.
func ColourGTE ¶
func ColourGTE(v string) predicate.Technology
ColourGTE applies the GTE predicate on the "colour" field.
func ColourHasPrefix ¶
func ColourHasPrefix(v string) predicate.Technology
ColourHasPrefix applies the HasPrefix predicate on the "colour" field.
func ColourHasSuffix ¶
func ColourHasSuffix(v string) predicate.Technology
ColourHasSuffix applies the HasSuffix predicate on the "colour" field.
func ColourIn ¶
func ColourIn(vs ...string) predicate.Technology
ColourIn applies the In predicate on the "colour" field.
func ColourIsNil ¶
func ColourIsNil() predicate.Technology
ColourIsNil applies the IsNil predicate on the "colour" field.
func ColourLT ¶
func ColourLT(v string) predicate.Technology
ColourLT applies the LT predicate on the "colour" field.
func ColourLTE ¶
func ColourLTE(v string) predicate.Technology
ColourLTE applies the LTE predicate on the "colour" field.
func ColourNEQ ¶
func ColourNEQ(v string) predicate.Technology
ColourNEQ applies the NEQ predicate on the "colour" field.
func ColourNotIn ¶
func ColourNotIn(vs ...string) predicate.Technology
ColourNotIn applies the NotIn predicate on the "colour" field.
func ColourNotNil ¶
func ColourNotNil() predicate.Technology
ColourNotNil applies the NotNil predicate on the "colour" field.
func Description ¶
func Description(v string) predicate.Technology
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Technology
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Technology
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Technology
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Technology
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Technology
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Technology
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Technology
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Technology
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Technology
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.Technology
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Technology
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Technology
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Technology
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Technology
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.Technology
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasChildTechnologies ¶
func HasChildTechnologies() predicate.Technology
HasChildTechnologies applies the HasEdge predicate on the "child_technologies" edge.
func HasChildTechnologiesWith ¶
func HasChildTechnologiesWith(preds ...predicate.TechnologyAssociation) predicate.Technology
HasChildTechnologiesWith applies the HasEdge predicate on the "child_technologies" edge with a given conditions (other predicates).
func HasParentTechnologies ¶
func HasParentTechnologies() predicate.Technology
HasParentTechnologies applies the HasEdge predicate on the "parent_technologies" edge.
func HasParentTechnologiesWith ¶
func HasParentTechnologiesWith(preds ...predicate.TechnologyAssociation) predicate.Technology
HasParentTechnologiesWith applies the HasEdge predicate on the "parent_technologies" edge with a given conditions (other predicates).
func HasProjects ¶
func HasProjects() predicate.Technology
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
func HasProjectsWith(preds ...predicate.ProjectTechnology) predicate.Technology
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasRepositories ¶
func HasRepositories() predicate.Technology
HasRepositories applies the HasEdge predicate on the "repositories" edge.
func HasRepositoriesWith ¶
func HasRepositoriesWith(preds ...predicate.RepositoryTechnology) predicate.Technology
HasRepositoriesWith applies the HasEdge predicate on the "repositories" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Technology
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Technology
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Technology
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Technology
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Technology
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Technology
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Technology
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Technology
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Technology
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Technology
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Technology
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Technology
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Technology
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Technology
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Technology
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Technology
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Technology
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Technology
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Technology
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Technology) predicate.Technology
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Technology) predicate.Technology
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.Technology
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.Technology
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.Technology
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.Technology
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeLibrary Type = "LIBRARY" TypeLanguage Type = "LANGUAGE" TypeAlgorithm Type = "ALGORITHM" TypeDatabase Type = "DATABASE" TypeProtocol Type = "PROTOCOL" TypeService Type = "SERVICE" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.