revision

package
Version: 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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the revision type in the database.
	Label = "revision"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeRefs holds the string denoting the refs edge name in mutations.
	EdgeRefs = "refs"
	// EdgeInstances holds the string denoting the instances edge name in mutations.
	EdgeInstances = "instances"
	// Table holds the table name of the revision in the database.
	Table = "revisions"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "revisions"
	// 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_revisions"
	// RefsTable is the table that holds the refs relation/edge.
	RefsTable = "refs"
	// RefsInverseTable is the table name for the Ref entity.
	// It exists in this package in order to avoid circular dependency with the "ref" package.
	RefsInverseTable = "refs"
	// RefsColumn is the table column denoting the refs relation/edge.
	RefsColumn = "revision_refs"
	// InstancesTable is the table that holds the instances relation/edge.
	InstancesTable = "instances"
	// InstancesInverseTable is the table name for the Instance entity.
	// It exists in this package in order to avoid circular dependency with the "instance" package.
	InstancesInverseTable = "instances"
	// InstancesColumn is the table column denoting the instances relation/edge.
	InstancesColumn = "revision_instances"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for revision fields.

View Source
var ForeignKeys = []string{
	"workflow_revisions",
}

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

Functions

func And

func And(predicates ...predicate.Revision) predicate.Revision

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Revision

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Revision

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Revision

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Revision

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Revision

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Revision

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Revision

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Revision

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Revision

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasInstances

func HasInstances() predicate.Revision

HasInstances applies the HasEdge predicate on the "instances" edge.

func HasInstancesWith

func HasInstancesWith(preds ...predicate.Instance) predicate.Revision

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

func HasRefs

func HasRefs() predicate.Revision

HasRefs applies the HasEdge predicate on the "refs" edge.

func HasRefsWith

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

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

func HasWorkflow

func HasWorkflow() predicate.Revision

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

func HasWorkflowWith

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

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

func Hash

func Hash(v string) predicate.Revision

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Revision

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Revision

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Revision

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Revision

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Revision

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Revision

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Revision

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Revision

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Revision

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Revision

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Revision

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Revision

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Revision

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id uuid.UUID) predicate.Revision

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Revision

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Revision

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Revision

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Revision

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Revision

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Revision

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Revision) predicate.Revision

Or groups predicates with the OR operator between them.

func Source

func Source(v []byte) predicate.Revision

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceEQ

func SourceEQ(v []byte) predicate.Revision

SourceEQ applies the EQ predicate on the "source" field.

func SourceGT

func SourceGT(v []byte) predicate.Revision

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v []byte) predicate.Revision

SourceGTE applies the GTE predicate on the "source" field.

func SourceIn

func SourceIn(vs ...[]byte) predicate.Revision

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v []byte) predicate.Revision

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v []byte) predicate.Revision

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v []byte) predicate.Revision

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...[]byte) predicate.Revision

SourceNotIn applies the NotIn predicate on the "source" field.

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