Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TechnologyAssociation) predicate.TechnologyAssociation
- func HasChild() predicate.TechnologyAssociation
- func HasChildWith(preds ...predicate.Technology) predicate.TechnologyAssociation
- func HasParent() predicate.TechnologyAssociation
- func HasParentWith(preds ...predicate.Technology) predicate.TechnologyAssociation
- func ID(id int) predicate.TechnologyAssociation
- func IDEQ(id int) predicate.TechnologyAssociation
- func IDGT(id int) predicate.TechnologyAssociation
- func IDGTE(id int) predicate.TechnologyAssociation
- func IDIn(ids ...int) predicate.TechnologyAssociation
- func IDLT(id int) predicate.TechnologyAssociation
- func IDLTE(id int) predicate.TechnologyAssociation
- func IDNEQ(id int) predicate.TechnologyAssociation
- func IDNotIn(ids ...int) predicate.TechnologyAssociation
- func Not(p predicate.TechnologyAssociation) predicate.TechnologyAssociation
- func Or(predicates ...predicate.TechnologyAssociation) predicate.TechnologyAssociation
- func TypeEQ(v Type) predicate.TechnologyAssociation
- func TypeIn(vs ...Type) predicate.TechnologyAssociation
- func TypeNEQ(v Type) predicate.TechnologyAssociation
- func TypeNotIn(vs ...Type) predicate.TechnologyAssociation
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the technologyassociation type in the database. Label = "technology_association" // 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" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChild holds the string denoting the child edge name in mutations. EdgeChild = "child" // Table holds the table name of the technologyassociation in the database. Table = "technology_associations" // ParentTable is the table that holds the parent relation/edge. ParentTable = "technology_associations" // ParentInverseTable is the table name for the Technology entity. // It exists in this package in order to avoid circular dependency with the "technology" package. ParentInverseTable = "technologies" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "technology_child_technologies" // ChildTable is the table that holds the child relation/edge. ChildTable = "technology_associations" // ChildInverseTable is the table name for the Technology entity. // It exists in this package in order to avoid circular dependency with the "technology" package. ChildInverseTable = "technologies" // ChildColumn is the table column denoting the child relation/edge. ChildColumn = "technology_parent_technologies" )
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 technologyassociation fields.
var ForeignKeys = []string{
"technology_parent_technologies",
"technology_child_technologies",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "technology_associations" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.TechnologyAssociation) predicate.TechnologyAssociation
And groups predicates with the AND operator between them.
func HasChild ¶
func HasChild() predicate.TechnologyAssociation
HasChild applies the HasEdge predicate on the "child" edge.
func HasChildWith ¶
func HasChildWith(preds ...predicate.Technology) predicate.TechnologyAssociation
HasChildWith applies the HasEdge predicate on the "child" edge with a given conditions (other predicates).
func HasParent ¶
func HasParent() predicate.TechnologyAssociation
HasParent applies the HasEdge predicate on the "parent" edge.
func HasParentWith ¶
func HasParentWith(preds ...predicate.Technology) predicate.TechnologyAssociation
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.TechnologyAssociation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.TechnologyAssociation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.TechnologyAssociation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.TechnologyAssociation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.TechnologyAssociation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.TechnologyAssociation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.TechnologyAssociation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.TechnologyAssociation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.TechnologyAssociation
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TechnologyAssociation) predicate.TechnologyAssociation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TechnologyAssociation) predicate.TechnologyAssociation
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.TechnologyAssociation
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.TechnologyAssociation
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.TechnologyAssociation
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.TechnologyAssociation
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" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.