edgetype

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for edgetype fields.

Functions

func And

func And(predicates ...predicate.EdgeType) predicate.EdgeType

And groups predicates with the AND operator between them.

func HasFrom

func HasFrom() predicate.EdgeType

HasFrom applies the HasEdge predicate on the "from" edge.

func HasFromWith

func HasFromWith(preds ...predicate.Node) predicate.EdgeType

HasFromWith applies the HasEdge predicate on the "from" edge with a given conditions (other predicates).

func HasTo

func HasTo() predicate.EdgeType

HasTo applies the HasEdge predicate on the "to" edge.

func HasToWith

func HasToWith(preds ...predicate.Node) predicate.EdgeType

HasToWith applies the HasEdge predicate on the "to" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.EdgeType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.EdgeType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.EdgeType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.EdgeType

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.EdgeType

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.EdgeType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.EdgeType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.EdgeType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.EdgeType

IDNotIn applies the NotIn predicate on the ID field.

func NodeID

func NodeID(v string) predicate.EdgeType

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains

func NodeIDContains(v string) predicate.EdgeType

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold

func NodeIDContainsFold(v string) predicate.EdgeType

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ

func NodeIDEQ(v string) predicate.EdgeType

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold

func NodeIDEqualFold(v string) predicate.EdgeType

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT

func NodeIDGT(v string) predicate.EdgeType

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE

func NodeIDGTE(v string) predicate.EdgeType

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix

func NodeIDHasPrefix(v string) predicate.EdgeType

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix

func NodeIDHasSuffix(v string) predicate.EdgeType

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...string) predicate.EdgeType

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDLT

func NodeIDLT(v string) predicate.EdgeType

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE

func NodeIDLTE(v string) predicate.EdgeType

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v string) predicate.EdgeType

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...string) predicate.EdgeType

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.EdgeType) predicate.EdgeType

Or groups predicates with the OR operator between them.

func ToNodeID

func ToNodeID(v string) predicate.EdgeType

ToNodeID applies equality check predicate on the "to_node_id" field. It's identical to ToNodeIDEQ.

func ToNodeIDContains

func ToNodeIDContains(v string) predicate.EdgeType

ToNodeIDContains applies the Contains predicate on the "to_node_id" field.

func ToNodeIDContainsFold

func ToNodeIDContainsFold(v string) predicate.EdgeType

ToNodeIDContainsFold applies the ContainsFold predicate on the "to_node_id" field.

func ToNodeIDEQ

func ToNodeIDEQ(v string) predicate.EdgeType

ToNodeIDEQ applies the EQ predicate on the "to_node_id" field.

func ToNodeIDEqualFold

func ToNodeIDEqualFold(v string) predicate.EdgeType

ToNodeIDEqualFold applies the EqualFold predicate on the "to_node_id" field.

func ToNodeIDGT

func ToNodeIDGT(v string) predicate.EdgeType

ToNodeIDGT applies the GT predicate on the "to_node_id" field.

func ToNodeIDGTE

func ToNodeIDGTE(v string) predicate.EdgeType

ToNodeIDGTE applies the GTE predicate on the "to_node_id" field.

func ToNodeIDHasPrefix

func ToNodeIDHasPrefix(v string) predicate.EdgeType

ToNodeIDHasPrefix applies the HasPrefix predicate on the "to_node_id" field.

func ToNodeIDHasSuffix

func ToNodeIDHasSuffix(v string) predicate.EdgeType

ToNodeIDHasSuffix applies the HasSuffix predicate on the "to_node_id" field.

func ToNodeIDIn

func ToNodeIDIn(vs ...string) predicate.EdgeType

ToNodeIDIn applies the In predicate on the "to_node_id" field.

func ToNodeIDLT

func ToNodeIDLT(v string) predicate.EdgeType

ToNodeIDLT applies the LT predicate on the "to_node_id" field.

func ToNodeIDLTE

func ToNodeIDLTE(v string) predicate.EdgeType

ToNodeIDLTE applies the LTE predicate on the "to_node_id" field.

func ToNodeIDNEQ

func ToNodeIDNEQ(v string) predicate.EdgeType

ToNodeIDNEQ applies the NEQ predicate on the "to_node_id" field.

func ToNodeIDNotIn

func ToNodeIDNotIn(vs ...string) predicate.EdgeType

ToNodeIDNotIn applies the NotIn predicate on the "to_node_id" field.

func TypeEQ

func TypeEQ(v Type) predicate.EdgeType

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.EdgeType

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.EdgeType

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.EdgeType

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL