Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.VarRef) predicate.VarRef
- func HasInstance() predicate.VarRef
- func HasInstanceWith(preds ...predicate.Instance) predicate.VarRef
- func HasNamespace() predicate.VarRef
- func HasNamespaceWith(preds ...predicate.Namespace) predicate.VarRef
- func HasVardata() predicate.VarRef
- func HasVardataWith(preds ...predicate.VarData) predicate.VarRef
- func HasWorkflow() predicate.VarRef
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.VarRef
- func ID(id uuid.UUID) predicate.VarRef
- func IDEQ(id uuid.UUID) predicate.VarRef
- func IDGT(id uuid.UUID) predicate.VarRef
- func IDGTE(id uuid.UUID) predicate.VarRef
- func IDIn(ids ...uuid.UUID) predicate.VarRef
- func IDLT(id uuid.UUID) predicate.VarRef
- func IDLTE(id uuid.UUID) predicate.VarRef
- func IDNEQ(id uuid.UUID) predicate.VarRef
- func IDNotIn(ids ...uuid.UUID) predicate.VarRef
- func Name(v string) predicate.VarRef
- func NameContains(v string) predicate.VarRef
- func NameContainsFold(v string) predicate.VarRef
- func NameEQ(v string) predicate.VarRef
- func NameEqualFold(v string) predicate.VarRef
- func NameGT(v string) predicate.VarRef
- func NameGTE(v string) predicate.VarRef
- func NameHasPrefix(v string) predicate.VarRef
- func NameHasSuffix(v string) predicate.VarRef
- func NameIn(vs ...string) predicate.VarRef
- func NameIsNil() predicate.VarRef
- func NameLT(v string) predicate.VarRef
- func NameLTE(v string) predicate.VarRef
- func NameNEQ(v string) predicate.VarRef
- func NameNotIn(vs ...string) predicate.VarRef
- func NameNotNil() predicate.VarRef
- func Not(p predicate.VarRef) predicate.VarRef
- func Or(predicates ...predicate.VarRef) predicate.VarRef
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for varref fields.
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 HasInstance ¶
HasInstance applies the HasEdge predicate on the "instance" edge.
func HasInstanceWith ¶
HasInstanceWith applies the HasEdge predicate on the "instance" edge with a given conditions (other predicates).
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func HasVardata ¶
HasVardata applies the HasEdge predicate on the "vardata" edge.
func HasVardataWith ¶
HasVardataWith applies the HasEdge predicate on the "vardata" edge with a given conditions (other predicates).
func HasWorkflow ¶
HasWorkflow applies the HasEdge predicate on the "workflow" edge.
func HasWorkflowWith ¶
HasWorkflowWith applies the HasEdge predicate on the "workflow" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.