varref

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the varref type in the database.
	Label = "var_ref"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeVardata holds the string denoting the vardata edge name in mutations.
	EdgeVardata = "vardata"
	// EdgeNamespace holds the string denoting the namespace edge name in mutations.
	EdgeNamespace = "namespace"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeInstance holds the string denoting the instance edge name in mutations.
	EdgeInstance = "instance"
	// Table holds the table name of the varref in the database.
	Table = "var_refs"
	// VardataTable is the table that holds the vardata relation/edge.
	VardataTable = "var_refs"
	// VardataInverseTable is the table name for the VarData entity.
	// It exists in this package in order to avoid circular dependency with the "vardata" package.
	VardataInverseTable = "var_data"
	// VardataColumn is the table column denoting the vardata relation/edge.
	VardataColumn = "var_data_varrefs"
	// NamespaceTable is the table that holds the namespace relation/edge.
	NamespaceTable = "var_refs"
	// NamespaceInverseTable is the table name for the Namespace entity.
	// It exists in this package in order to avoid circular dependency with the "namespace" package.
	NamespaceInverseTable = "namespaces"
	// NamespaceColumn is the table column denoting the namespace relation/edge.
	NamespaceColumn = "namespace_vars"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "var_refs"
	// WorkflowInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowInverseTable = "workflows"
	// WorkflowColumn is the table column denoting the workflow relation/edge.
	WorkflowColumn = "workflow_vars"
	// InstanceTable is the table that holds the instance relation/edge.
	InstanceTable = "var_refs"
	// InstanceInverseTable is the table name for the Instance entity.
	// It exists in this package in order to avoid circular dependency with the "instance" package.
	InstanceInverseTable = "instances"
	// InstanceColumn is the table column denoting the instance relation/edge.
	InstanceColumn = "instance_vars"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var Columns = []string{
	FieldID,
	FieldName,
}

Columns holds all SQL columns for varref fields.

View Source
var ForeignKeys = []string{
	"instance_vars",
	"namespace_vars",
	"var_data_varrefs",
	"workflow_vars",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "var_refs" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.VarRef) predicate.VarRef

And groups predicates with the AND operator between them.

func HasInstance

func HasInstance() predicate.VarRef

HasInstance applies the HasEdge predicate on the "instance" edge.

func HasInstanceWith

func HasInstanceWith(preds ...predicate.Instance) predicate.VarRef

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

func HasNamespace

func HasNamespace() predicate.VarRef

HasNamespace applies the HasEdge predicate on the "namespace" edge.

func HasNamespaceWith

func HasNamespaceWith(preds ...predicate.Namespace) predicate.VarRef

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

func HasVardata

func HasVardata() predicate.VarRef

HasVardata applies the HasEdge predicate on the "vardata" edge.

func HasVardataWith

func HasVardataWith(preds ...predicate.VarData) predicate.VarRef

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

func HasWorkflow

func HasWorkflow() predicate.VarRef

HasWorkflow applies the HasEdge predicate on the "workflow" edge.

func HasWorkflowWith

func HasWorkflowWith(preds ...predicate.Workflow) predicate.VarRef

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

func ID

func ID(id uuid.UUID) predicate.VarRef

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.VarRef

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.VarRef

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.VarRef

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.VarRef

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.VarRef

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.VarRef

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.VarRef

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.VarRef

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.VarRef

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.VarRef

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.VarRef

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.VarRef

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.VarRef

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.VarRef

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.VarRef

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.VarRef

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.VarRef

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.VarRef

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.VarRef

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.VarRef

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.VarRef

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.VarRef

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.VarRef

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.VarRef

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.VarRef) predicate.VarRef

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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