ref

package
v0.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Columns holds all SQL columns for ref fields.

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

func And(predicates ...predicate.Ref) predicate.Ref

And groups predicates with the AND operator between them.

func HasRevision

func HasRevision() predicate.Ref

HasRevision applies the HasEdge predicate on the "revision" edge.

func HasRevisionWith

func HasRevisionWith(preds ...predicate.Revision) predicate.Ref

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

func HasRoutes

func HasRoutes() predicate.Ref

HasRoutes applies the HasEdge predicate on the "routes" edge.

func HasRoutesWith

func HasRoutesWith(preds ...predicate.Route) predicate.Ref

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

func HasWorkflow

func HasWorkflow() predicate.Ref

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

func HasWorkflowWith

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

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

func ID

func ID(id uuid.UUID) predicate.Ref

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Ref

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Ref

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Ref

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Ref

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Ref

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Ref

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Immutable

func Immutable(v bool) predicate.Ref

Immutable applies equality check predicate on the "immutable" field. It's identical to ImmutableEQ.

func ImmutableEQ

func ImmutableEQ(v bool) predicate.Ref

ImmutableEQ applies the EQ predicate on the "immutable" field.

func ImmutableNEQ

func ImmutableNEQ(v bool) predicate.Ref

ImmutableNEQ applies the NEQ predicate on the "immutable" field.

func Name

func Name(v string) predicate.Ref

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

func NameContains

func NameContains(v string) predicate.Ref

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

func NameContainsFold

func NameContainsFold(v string) predicate.Ref

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

func NameEQ

func NameEQ(v string) predicate.Ref

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

func NameEqualFold

func NameEqualFold(v string) predicate.Ref

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

func NameGT

func NameGT(v string) predicate.Ref

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

func NameGTE

func NameGTE(v string) predicate.Ref

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Ref

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Ref

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Ref

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

func NameLTE

func NameLTE(v string) predicate.Ref

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

func NameNEQ

func NameNEQ(v string) predicate.Ref

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

func NameNotIn

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

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

func Not

func Not(p predicate.Ref) predicate.Ref

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Ref) predicate.Ref

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