Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Ref) predicate.Ref
- func HasRevision() predicate.Ref
- func HasRevisionWith(preds ...predicate.Revision) predicate.Ref
- func HasRoutes() predicate.Ref
- func HasRoutesWith(preds ...predicate.Route) predicate.Ref
- func HasWorkflow() predicate.Ref
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.Ref
- func ID(id uuid.UUID) predicate.Ref
- func IDEQ(id uuid.UUID) predicate.Ref
- func IDGT(id uuid.UUID) predicate.Ref
- func IDGTE(id uuid.UUID) predicate.Ref
- func IDIn(ids ...uuid.UUID) predicate.Ref
- func IDLT(id uuid.UUID) predicate.Ref
- func IDLTE(id uuid.UUID) predicate.Ref
- func IDNEQ(id uuid.UUID) predicate.Ref
- func IDNotIn(ids ...uuid.UUID) predicate.Ref
- func Immutable(v bool) predicate.Ref
- func ImmutableEQ(v bool) predicate.Ref
- func ImmutableNEQ(v bool) predicate.Ref
- func Name(v string) predicate.Ref
- func NameContains(v string) predicate.Ref
- func NameContainsFold(v string) predicate.Ref
- func NameEQ(v string) predicate.Ref
- func NameEqualFold(v string) predicate.Ref
- func NameGT(v string) predicate.Ref
- func NameGTE(v string) predicate.Ref
- func NameHasPrefix(v string) predicate.Ref
- func NameHasSuffix(v string) predicate.Ref
- func NameIn(vs ...string) predicate.Ref
- func NameLT(v string) predicate.Ref
- func NameLTE(v string) predicate.Ref
- func NameNEQ(v string) predicate.Ref
- func NameNotIn(vs ...string) predicate.Ref
- func Not(p predicate.Ref) predicate.Ref
- func Or(predicates ...predicate.Ref) predicate.Ref
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the ref type in the database. Label = "ref" // FieldID holds the string denoting the id field in the database. FieldID = "oid" // FieldImmutable holds the string denoting the immutable field in the database. FieldImmutable = "immutable" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeWorkflow holds the string denoting the workflow edge name in mutations. EdgeWorkflow = "workflow" // EdgeRevision holds the string denoting the revision edge name in mutations. EdgeRevision = "revision" // EdgeRoutes holds the string denoting the routes edge name in mutations. EdgeRoutes = "routes" // Table holds the table name of the ref in the database. Table = "refs" // WorkflowTable is the table that holds the workflow relation/edge. WorkflowTable = "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_refs" // RevisionTable is the table that holds the revision relation/edge. RevisionTable = "refs" // RevisionInverseTable is the table name for the Revision entity. // It exists in this package in order to avoid circular dependency with the "revision" package. RevisionInverseTable = "revisions" // RevisionColumn is the table column denoting the revision relation/edge. RevisionColumn = "revision_refs" // RoutesTable is the table that holds the routes relation/edge. RoutesTable = "routes" // RoutesInverseTable is the table name for the Route entity. // It exists in this package in order to avoid circular dependency with the "route" package. RoutesInverseTable = "routes" // RoutesColumn is the table column denoting the routes relation/edge. RoutesColumn = "ref_routes" )
Variables ¶
var ( // DefaultImmutable holds the default value on creation for the "immutable" field. DefaultImmutable bool // 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, FieldImmutable, FieldName, }
Columns holds all SQL columns for ref fields.
var ForeignKeys = []string{
"revision_refs",
"workflow_refs",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "refs" table and are not defined as standalone fields in the schema.
Functions ¶
func HasRevision ¶
HasRevision applies the HasEdge predicate on the "revision" edge.
func HasRevisionWith ¶
HasRevisionWith applies the HasEdge predicate on the "revision" edge with a given conditions (other predicates).
func HasRoutesWith ¶
HasRoutesWith applies the HasEdge predicate on the "routes" 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 Immutable ¶
Immutable applies equality check predicate on the "immutable" field. It's identical to ImmutableEQ.
func ImmutableEQ ¶
ImmutableEQ applies the EQ predicate on the "immutable" field.
func ImmutableNEQ ¶
ImmutableNEQ applies the NEQ predicate on the "immutable" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.