Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Route) predicate.Route
- func HasRef() predicate.Route
- func HasRefWith(preds ...predicate.Ref) predicate.Route
- func HasWorkflow() predicate.Route
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.Route
- func ID(id uuid.UUID) predicate.Route
- func IDEQ(id uuid.UUID) predicate.Route
- func IDGT(id uuid.UUID) predicate.Route
- func IDGTE(id uuid.UUID) predicate.Route
- func IDIn(ids ...uuid.UUID) predicate.Route
- func IDLT(id uuid.UUID) predicate.Route
- func IDLTE(id uuid.UUID) predicate.Route
- func IDNEQ(id uuid.UUID) predicate.Route
- func IDNotIn(ids ...uuid.UUID) predicate.Route
- func Not(p predicate.Route) predicate.Route
- func Or(predicates ...predicate.Route) predicate.Route
- func ValidColumn(column string) bool
- func Weight(v int) predicate.Route
- func WeightEQ(v int) predicate.Route
- func WeightGT(v int) predicate.Route
- func WeightGTE(v int) predicate.Route
- func WeightIn(vs ...int) predicate.Route
- func WeightLT(v int) predicate.Route
- func WeightLTE(v int) predicate.Route
- func WeightNEQ(v int) predicate.Route
- func WeightNotIn(vs ...int) predicate.Route
Constants ¶
const ( // Label holds the string label denoting the route type in the database. Label = "route" // FieldID holds the string denoting the id field in the database. FieldID = "oid" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // EdgeWorkflow holds the string denoting the workflow edge name in mutations. EdgeWorkflow = "workflow" // EdgeRef holds the string denoting the ref edge name in mutations. EdgeRef = "ref" // Table holds the table name of the route in the database. Table = "routes" // WorkflowTable is the table that holds the workflow relation/edge. WorkflowTable = "routes" // 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_routes" // RefTable is the table that holds the ref relation/edge. RefTable = "routes" // RefInverseTable is the table name for the Ref entity. // It exists in this package in order to avoid circular dependency with the "ref" package. RefInverseTable = "refs" // RefColumn is the table column denoting the ref relation/edge. RefColumn = "ref_routes" )
Variables ¶
var Columns = []string{ FieldID, FieldWeight, }
Columns holds all SQL columns for route fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ForeignKeys = []string{
"ref_routes",
"workflow_routes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "routes" table and are not defined as standalone fields in the schema.
Functions ¶
func HasRefWith ¶
HasRefWith applies the HasEdge predicate on the "ref" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
Types ¶
This section is empty.