Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Revision) predicate.Revision
- func CreatedAt(v time.Time) predicate.Revision
- func CreatedAtEQ(v time.Time) predicate.Revision
- func CreatedAtGT(v time.Time) predicate.Revision
- func CreatedAtGTE(v time.Time) predicate.Revision
- func CreatedAtIn(vs ...time.Time) predicate.Revision
- func CreatedAtLT(v time.Time) predicate.Revision
- func CreatedAtLTE(v time.Time) predicate.Revision
- func CreatedAtNEQ(v time.Time) predicate.Revision
- func CreatedAtNotIn(vs ...time.Time) predicate.Revision
- func HasInstances() predicate.Revision
- func HasInstancesWith(preds ...predicate.Instance) predicate.Revision
- func HasRefs() predicate.Revision
- func HasRefsWith(preds ...predicate.Ref) predicate.Revision
- func HasWorkflow() predicate.Revision
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.Revision
- func Hash(v string) predicate.Revision
- func HashContains(v string) predicate.Revision
- func HashContainsFold(v string) predicate.Revision
- func HashEQ(v string) predicate.Revision
- func HashEqualFold(v string) predicate.Revision
- func HashGT(v string) predicate.Revision
- func HashGTE(v string) predicate.Revision
- func HashHasPrefix(v string) predicate.Revision
- func HashHasSuffix(v string) predicate.Revision
- func HashIn(vs ...string) predicate.Revision
- func HashLT(v string) predicate.Revision
- func HashLTE(v string) predicate.Revision
- func HashNEQ(v string) predicate.Revision
- func HashNotIn(vs ...string) predicate.Revision
- func ID(id uuid.UUID) predicate.Revision
- func IDEQ(id uuid.UUID) predicate.Revision
- func IDGT(id uuid.UUID) predicate.Revision
- func IDGTE(id uuid.UUID) predicate.Revision
- func IDIn(ids ...uuid.UUID) predicate.Revision
- func IDLT(id uuid.UUID) predicate.Revision
- func IDLTE(id uuid.UUID) predicate.Revision
- func IDNEQ(id uuid.UUID) predicate.Revision
- func IDNotIn(ids ...uuid.UUID) predicate.Revision
- func Not(p predicate.Revision) predicate.Revision
- func Or(predicates ...predicate.Revision) predicate.Revision
- func Source(v []byte) predicate.Revision
- func SourceEQ(v []byte) predicate.Revision
- func SourceGT(v []byte) predicate.Revision
- func SourceGTE(v []byte) predicate.Revision
- func SourceIn(vs ...[]byte) predicate.Revision
- func SourceLT(v []byte) predicate.Revision
- func SourceLTE(v []byte) predicate.Revision
- func SourceNEQ(v []byte) predicate.Revision
- func SourceNotIn(vs ...[]byte) predicate.Revision
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldHash, FieldSource, }
Columns holds all SQL columns for revision fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasInstances ¶
HasInstances applies the HasEdge predicate on the "instances" edge.
func HasInstancesWith ¶
HasInstancesWith applies the HasEdge predicate on the "instances" edge with a given conditions (other predicates).
func HasRefsWith ¶
HasRefsWith applies the HasEdge predicate on the "refs" 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 HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.