Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProjectTechnology) predicate.ProjectTechnology
- func HasProject() predicate.ProjectTechnology
- func HasProjectWith(preds ...predicate.Project) predicate.ProjectTechnology
- func HasTechnology() predicate.ProjectTechnology
- func HasTechnologyWith(preds ...predicate.Technology) predicate.ProjectTechnology
- func ID(id int) predicate.ProjectTechnology
- func IDEQ(id int) predicate.ProjectTechnology
- func IDGT(id int) predicate.ProjectTechnology
- func IDGTE(id int) predicate.ProjectTechnology
- func IDIn(ids ...int) predicate.ProjectTechnology
- func IDLT(id int) predicate.ProjectTechnology
- func IDLTE(id int) predicate.ProjectTechnology
- func IDNEQ(id int) predicate.ProjectTechnology
- func IDNotIn(ids ...int) predicate.ProjectTechnology
- func Not(p predicate.ProjectTechnology) predicate.ProjectTechnology
- func Or(predicates ...predicate.ProjectTechnology) predicate.ProjectTechnology
- func TypeEQ(v Type) predicate.ProjectTechnology
- func TypeIn(vs ...Type) predicate.ProjectTechnology
- func TypeNEQ(v Type) predicate.ProjectTechnology
- func TypeNotIn(vs ...Type) predicate.ProjectTechnology
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the projecttechnology type in the database. Label = "project_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" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeTechnology holds the string denoting the technology edge name in mutations. EdgeTechnology = "technology" // Table holds the table name of the projecttechnology in the database. Table = "project_technologies" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "project_technologies" // 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_technologies" // TechnologyTable is the table that holds the technology relation/edge. TechnologyTable = "project_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_projects" )
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 projecttechnology fields.
var ForeignKeys = []string{
"project_technologies",
"technology_projects",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "project_technologies" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.ProjectTechnology) predicate.ProjectTechnology
And groups predicates with the AND operator between them.
func HasProject ¶
func HasProject() predicate.ProjectTechnology
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.ProjectTechnology
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasTechnology ¶
func HasTechnology() predicate.ProjectTechnology
HasTechnology applies the HasEdge predicate on the "technology" edge.
func HasTechnologyWith ¶
func HasTechnologyWith(preds ...predicate.Technology) predicate.ProjectTechnology
HasTechnologyWith applies the HasEdge predicate on the "technology" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ProjectTechnology
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ProjectTechnology
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ProjectTechnology
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ProjectTechnology
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ProjectTechnology
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ProjectTechnology
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ProjectTechnology
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ProjectTechnology
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProjectTechnology) predicate.ProjectTechnology
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProjectTechnology) predicate.ProjectTechnology
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.ProjectTechnology
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.ProjectTechnology
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.ProjectTechnology
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.ProjectTechnology
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.