Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Workflow) predicate.Workflow
- func Description(v string) predicate.Workflow
- func DescriptionContains(v string) predicate.Workflow
- func DescriptionContainsFold(v string) predicate.Workflow
- func DescriptionEQ(v string) predicate.Workflow
- func DescriptionEqualFold(v string) predicate.Workflow
- func DescriptionGT(v string) predicate.Workflow
- func DescriptionGTE(v string) predicate.Workflow
- func DescriptionHasPrefix(v string) predicate.Workflow
- func DescriptionHasSuffix(v string) predicate.Workflow
- func DescriptionIn(vs ...string) predicate.Workflow
- func DescriptionIsNil() predicate.Workflow
- func DescriptionLT(v string) predicate.Workflow
- func DescriptionLTE(v string) predicate.Workflow
- func DescriptionNEQ(v string) predicate.Workflow
- func DescriptionNotIn(vs ...string) predicate.Workflow
- func DescriptionNotNil() predicate.Workflow
- func HasJobs() predicate.Workflow
- func HasJobsWith(preds ...predicate.Job) predicate.Workflow
- func ID(id int) predicate.Workflow
- func IDEQ(id int) predicate.Workflow
- func IDGT(id int) predicate.Workflow
- func IDGTE(id int) predicate.Workflow
- func IDIn(ids ...int) predicate.Workflow
- func IDLT(id int) predicate.Workflow
- func IDLTE(id int) predicate.Workflow
- func IDNEQ(id int) predicate.Workflow
- func IDNotIn(ids ...int) predicate.Workflow
- func Name(v string) predicate.Workflow
- func NameContains(v string) predicate.Workflow
- func NameContainsFold(v string) predicate.Workflow
- func NameEQ(v string) predicate.Workflow
- func NameEqualFold(v string) predicate.Workflow
- func NameGT(v string) predicate.Workflow
- func NameGTE(v string) predicate.Workflow
- func NameHasPrefix(v string) predicate.Workflow
- func NameHasSuffix(v string) predicate.Workflow
- func NameIn(vs ...string) predicate.Workflow
- func NameLT(v string) predicate.Workflow
- func NameLTE(v string) predicate.Workflow
- func NameNEQ(v string) predicate.Workflow
- func NameNotIn(vs ...string) predicate.Workflow
- func Not(p predicate.Workflow) predicate.Workflow
- func Or(predicates ...predicate.Workflow) predicate.Workflow
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the workflow type in the database. Label = "workflow" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldStates holds the string denoting the states field in the database. FieldStates = "states" // FieldTransitions holds the string denoting the transitions field in the database. FieldTransitions = "transitions" // FieldGroups holds the string denoting the groups field in the database. FieldGroups = "groups" // EdgeJobs holds the string denoting the jobs edge name in mutations. EdgeJobs = "jobs" // Table holds the table name of the workflow in the database. Table = "workflow" // JobsTable is the table that holds the jobs relation/edge. JobsTable = "job" // JobsInverseTable is the table name for the Job entity. // It exists in this package in order to avoid circular dependency with the "job" package. JobsInverseTable = "job" // JobsColumn is the table column denoting the jobs relation/edge. JobsColumn = "workflow_jobs" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldStates, FieldTransitions, FieldGroups, }
Columns holds all SQL columns for workflow fields.
Functions ¶
func Description ¶ added in v0.2.0
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶ added in v0.2.0
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶ added in v0.2.0
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶ added in v0.2.0
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶ added in v0.2.0
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶ added in v0.2.0
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶ added in v0.2.0
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶ added in v0.2.0
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶ added in v0.2.0
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶ added in v0.2.0
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶ added in v0.2.0
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶ added in v0.2.0
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶ added in v0.2.0
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶ added in v0.2.0
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶ added in v0.2.0
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶ added in v0.2.0
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasJobsWith ¶
HasJobsWith applies the HasEdge predicate on the "jobs" edge with a given conditions (other predicates).
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Workflow queries.
func ByDescription ¶ added in v0.2.0
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJobs ¶
func ByJobs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByJobs orders the results by jobs terms.
func ByJobsCount ¶
func ByJobsCount(opts ...sql.OrderTermOption) OrderOption
ByJobsCount orders the results by jobs count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.