Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RepositoryTechnology) predicate.RepositoryTechnology
- func HasRepository() predicate.RepositoryTechnology
- func HasRepositoryWith(preds ...predicate.Repository) predicate.RepositoryTechnology
- func HasTechnology() predicate.RepositoryTechnology
- func HasTechnologyWith(preds ...predicate.Technology) predicate.RepositoryTechnology
- func ID(id int) predicate.RepositoryTechnology
- func IDEQ(id int) predicate.RepositoryTechnology
- func IDGT(id int) predicate.RepositoryTechnology
- func IDGTE(id int) predicate.RepositoryTechnology
- func IDIn(ids ...int) predicate.RepositoryTechnology
- func IDLT(id int) predicate.RepositoryTechnology
- func IDLTE(id int) predicate.RepositoryTechnology
- func IDNEQ(id int) predicate.RepositoryTechnology
- func IDNotIn(ids ...int) predicate.RepositoryTechnology
- func Not(p predicate.RepositoryTechnology) predicate.RepositoryTechnology
- func Or(predicates ...predicate.RepositoryTechnology) predicate.RepositoryTechnology
- func TypeEQ(v Type) predicate.RepositoryTechnology
- func TypeIn(vs ...Type) predicate.RepositoryTechnology
- func TypeNEQ(v Type) predicate.RepositoryTechnology
- func TypeNotIn(vs ...Type) predicate.RepositoryTechnology
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the repositorytechnology type in the database. Label = "repository_technology" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeRepository holds the string denoting the repository edge name in mutations. EdgeRepository = "repository" // EdgeTechnology holds the string denoting the technology edge name in mutations. EdgeTechnology = "technology" // Table holds the table name of the repositorytechnology in the database. Table = "repository_technologies" // RepositoryTable is the table that holds the repository relation/edge. RepositoryTable = "repository_technologies" // 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_technologies" // TechnologyTable is the table that holds the technology relation/edge. TechnologyTable = "repository_technologies" // TechnologyInverseTable is the table name for the Technology entity. // It exists in this package in order to avoid circular dependency with the "technology" package. TechnologyInverseTable = "technologies" // TechnologyColumn is the table column denoting the technology relation/edge. TechnologyColumn = "technology_repositories" )
Variables ¶
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"
var Columns = []string{ FieldID, FieldType, }
Columns holds all SQL columns for repositorytechnology fields.
var ForeignKeys = []string{
"repository_technologies",
"technology_repositories",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "repository_technologies" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.RepositoryTechnology) predicate.RepositoryTechnology
And groups predicates with the AND operator between them.
func HasRepository ¶
func HasRepository() predicate.RepositoryTechnology
HasRepository applies the HasEdge predicate on the "repository" edge.
func HasRepositoryWith ¶
func HasRepositoryWith(preds ...predicate.Repository) predicate.RepositoryTechnology
HasRepositoryWith applies the HasEdge predicate on the "repository" edge with a given conditions (other predicates).
func HasTechnology ¶
func HasTechnology() predicate.RepositoryTechnology
HasTechnology applies the HasEdge predicate on the "technology" edge.
func HasTechnologyWith ¶
func HasTechnologyWith(preds ...predicate.Technology) predicate.RepositoryTechnology
HasTechnologyWith applies the HasEdge predicate on the "technology" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.RepositoryTechnology
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.RepositoryTechnology
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.RepositoryTechnology
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.RepositoryTechnology
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.RepositoryTechnology
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.RepositoryTechnology
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.RepositoryTechnology
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.RepositoryTechnology
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.RepositoryTechnology
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.RepositoryTechnology) predicate.RepositoryTechnology
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RepositoryTechnology) predicate.RepositoryTechnology
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.RepositoryTechnology
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.RepositoryTechnology
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.RepositoryTechnology
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.RepositoryTechnology
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 ( TypeWrittenIn Type = "WRITTEN_IN" TypeImplements Type = "IMPLEMENTS" TypeUses Type = "USES" TypeContains Type = "CONTAINS" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.