Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EdgeType) predicate.EdgeType
- func HasFrom() predicate.EdgeType
- func HasFromWith(preds ...predicate.Node) predicate.EdgeType
- func HasTo() predicate.EdgeType
- func HasToWith(preds ...predicate.Node) predicate.EdgeType
- func ID(id int) predicate.EdgeType
- func IDEQ(id int) predicate.EdgeType
- func IDGT(id int) predicate.EdgeType
- func IDGTE(id int) predicate.EdgeType
- func IDIn(ids ...int) predicate.EdgeType
- func IDLT(id int) predicate.EdgeType
- func IDLTE(id int) predicate.EdgeType
- func IDNEQ(id int) predicate.EdgeType
- func IDNotIn(ids ...int) predicate.EdgeType
- func NodeID(v string) predicate.EdgeType
- func NodeIDContains(v string) predicate.EdgeType
- func NodeIDContainsFold(v string) predicate.EdgeType
- func NodeIDEQ(v string) predicate.EdgeType
- func NodeIDEqualFold(v string) predicate.EdgeType
- func NodeIDGT(v string) predicate.EdgeType
- func NodeIDGTE(v string) predicate.EdgeType
- func NodeIDHasPrefix(v string) predicate.EdgeType
- func NodeIDHasSuffix(v string) predicate.EdgeType
- func NodeIDIn(vs ...string) predicate.EdgeType
- func NodeIDLT(v string) predicate.EdgeType
- func NodeIDLTE(v string) predicate.EdgeType
- func NodeIDNEQ(v string) predicate.EdgeType
- func NodeIDNotIn(vs ...string) predicate.EdgeType
- func Not(p predicate.EdgeType) predicate.EdgeType
- func Or(predicates ...predicate.EdgeType) predicate.EdgeType
- func ToNodeID(v string) predicate.EdgeType
- func ToNodeIDContains(v string) predicate.EdgeType
- func ToNodeIDContainsFold(v string) predicate.EdgeType
- func ToNodeIDEQ(v string) predicate.EdgeType
- func ToNodeIDEqualFold(v string) predicate.EdgeType
- func ToNodeIDGT(v string) predicate.EdgeType
- func ToNodeIDGTE(v string) predicate.EdgeType
- func ToNodeIDHasPrefix(v string) predicate.EdgeType
- func ToNodeIDHasSuffix(v string) predicate.EdgeType
- func ToNodeIDIn(vs ...string) predicate.EdgeType
- func ToNodeIDLT(v string) predicate.EdgeType
- func ToNodeIDLTE(v string) predicate.EdgeType
- func ToNodeIDNEQ(v string) predicate.EdgeType
- func ToNodeIDNotIn(vs ...string) predicate.EdgeType
- func TypeEQ(v Type) predicate.EdgeType
- func TypeIn(vs ...Type) predicate.EdgeType
- func TypeNEQ(v Type) predicate.EdgeType
- func TypeNotIn(vs ...Type) predicate.EdgeType
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByFromField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByToField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByToNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the edgetype type in the database. Label = "edge_type" // 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" // FieldNodeID holds the string denoting the node_id field in the database. FieldNodeID = "node_id" // FieldToNodeID holds the string denoting the to_node_id field in the database. FieldToNodeID = "to_node_id" // EdgeFrom holds the string denoting the from edge name in mutations. EdgeFrom = "from" // EdgeTo holds the string denoting the to edge name in mutations. EdgeTo = "to" // Table holds the table name of the edgetype in the database. Table = "edge_types" // FromTable is the table that holds the from relation/edge. FromTable = "edge_types" // FromInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. FromInverseTable = "nodes" // FromColumn is the table column denoting the from relation/edge. FromColumn = "node_id" // ToTable is the table that holds the to relation/edge. ToTable = "edge_types" // ToInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. ToInverseTable = "nodes" // ToColumn is the table column denoting the to relation/edge. ToColumn = "to_node_id" )
Variables ¶
var Columns = []string{ FieldID, FieldType, FieldNodeID, FieldToNodeID, }
Columns holds all SQL columns for edgetype fields.
Functions ¶
func HasFromWith ¶
HasFromWith applies the HasEdge predicate on the "from" edge with a given conditions (other predicates).
func HasToWith ¶
HasToWith applies the HasEdge predicate on the "to" edge with a given conditions (other predicates).
func NodeID ¶
NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.
func NodeIDContains ¶
NodeIDContains applies the Contains predicate on the "node_id" field.
func NodeIDContainsFold ¶
NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.
func NodeIDEqualFold ¶
NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.
func NodeIDHasPrefix ¶
NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.
func NodeIDHasSuffix ¶
NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.
func NodeIDNotIn ¶
NodeIDNotIn applies the NotIn predicate on the "node_id" field.
func ToNodeID ¶
ToNodeID applies equality check predicate on the "to_node_id" field. It's identical to ToNodeIDEQ.
func ToNodeIDContains ¶
ToNodeIDContains applies the Contains predicate on the "to_node_id" field.
func ToNodeIDContainsFold ¶
ToNodeIDContainsFold applies the ContainsFold predicate on the "to_node_id" field.
func ToNodeIDEQ ¶
ToNodeIDEQ applies the EQ predicate on the "to_node_id" field.
func ToNodeIDEqualFold ¶
ToNodeIDEqualFold applies the EqualFold predicate on the "to_node_id" field.
func ToNodeIDGT ¶
ToNodeIDGT applies the GT predicate on the "to_node_id" field.
func ToNodeIDGTE ¶
ToNodeIDGTE applies the GTE predicate on the "to_node_id" field.
func ToNodeIDHasPrefix ¶
ToNodeIDHasPrefix applies the HasPrefix predicate on the "to_node_id" field.
func ToNodeIDHasSuffix ¶
ToNodeIDHasSuffix applies the HasSuffix predicate on the "to_node_id" field.
func ToNodeIDIn ¶
ToNodeIDIn applies the In predicate on the "to_node_id" field.
func ToNodeIDLT ¶
ToNodeIDLT applies the LT predicate on the "to_node_id" field.
func ToNodeIDLTE ¶
ToNodeIDLTE applies the LTE predicate on the "to_node_id" field.
func ToNodeIDNEQ ¶
ToNodeIDNEQ applies the NEQ predicate on the "to_node_id" field.
func ToNodeIDNotIn ¶
ToNodeIDNotIn applies the NotIn predicate on the "to_node_id" 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 OrderOption ¶
OrderOption defines the ordering options for the EdgeType queries.
func ByFromField ¶
func ByFromField(field string, opts ...sql.OrderTermOption) OrderOption
ByFromField orders the results by from field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNodeID ¶
func ByNodeID(opts ...sql.OrderTermOption) OrderOption
ByNodeID orders the results by the node_id field.
func ByToField ¶
func ByToField(field string, opts ...sql.OrderTermOption) OrderOption
ByToField orders the results by to field.
func ByToNodeID ¶
func ByToNodeID(opts ...sql.OrderTermOption) OrderOption
ByToNodeID orders the results by the to_node_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeUNKNOWN Type = "UNKNOWN" TypeAmends Type = "amends" TypeAncestor Type = "ancestor" TypeBuildDependency Type = "buildDependency" TypeBuildTool Type = "buildTool" TypeContains Type = "contains" TypeContainedBy Type = "contained_by" TypeCopy Type = "copy" TypeDataFile Type = "dataFile" TypeDependencyManifest Type = "dependencyManifest" TypeDependsOn Type = "dependsOn" TypeDependencyOf Type = "dependencyOf" TypeDescendant Type = "descendant" TypeDescribes Type = "describes" TypeDescribedBy Type = "describedBy" TypeDevDependency Type = "devDependency" TypeDevTool Type = "devTool" TypeDistributionArtifact Type = "distributionArtifact" TypeDocumentation Type = "documentation" TypeDynamicLink Type = "dynamicLink" TypeExample Type = "example" TypeExpandedFromArchive Type = "expandedFromArchive" TypeFileAdded Type = "fileAdded" TypeFileDeleted Type = "fileDeleted" TypeFileModified Type = "fileModified" TypeGenerates Type = "generates" TypeGeneratedFrom Type = "generatedFrom" TypeMetafile Type = "metafile" TypeOptionalComponent Type = "optionalComponent" TypeOptionalDependency Type = "optionalDependency" TypeOther Type = "other" TypePackages Type = "packages" TypePatch Type = "patch" TypePrerequisite Type = "prerequisite" TypePrerequisiteFor Type = "prerequisiteFor" TypeProvidedDependency Type = "providedDependency" TypeRequirementFor Type = "requirementFor" TypeRuntimeDependency Type = "runtimeDependency" TypeSpecificationFor Type = "specificationFor" TypeStaticLink Type = "staticLink" TypeTest Type = "test" TypeTestCase Type = "testCase" TypeTestDependency Type = "testDependency" TypeTestTool Type = "testTool" TypeVariant Type = "variant" )
Type values.