Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WorkflowTransition) predicate.WorkflowTransition
- func Comment(v string) predicate.WorkflowTransition
- func CommentContains(v string) predicate.WorkflowTransition
- func CommentContainsFold(v string) predicate.WorkflowTransition
- func CommentEQ(v string) predicate.WorkflowTransition
- func CommentEqualFold(v string) predicate.WorkflowTransition
- func CommentGT(v string) predicate.WorkflowTransition
- func CommentGTE(v string) predicate.WorkflowTransition
- func CommentHasPrefix(v string) predicate.WorkflowTransition
- func CommentHasSuffix(v string) predicate.WorkflowTransition
- func CommentIn(vs ...string) predicate.WorkflowTransition
- func CommentLT(v string) predicate.WorkflowTransition
- func CommentLTE(v string) predicate.WorkflowTransition
- func CommentNEQ(v string) predicate.WorkflowTransition
- func CommentNotIn(vs ...string) predicate.WorkflowTransition
- func ID(id int) predicate.WorkflowTransition
- func IDEQ(id int) predicate.WorkflowTransition
- func IDGT(id int) predicate.WorkflowTransition
- func IDGTE(id int) predicate.WorkflowTransition
- func IDIn(ids ...int) predicate.WorkflowTransition
- func IDLT(id int) predicate.WorkflowTransition
- func IDLTE(id int) predicate.WorkflowTransition
- func IDNEQ(id int) predicate.WorkflowTransition
- func IDNotIn(ids ...int) predicate.WorkflowTransition
- func LabelContains(v string) predicate.WorkflowTransition
- func LabelContainsFold(v string) predicate.WorkflowTransition
- func LabelEQ(v string) predicate.WorkflowTransition
- func LabelEqualFold(v string) predicate.WorkflowTransition
- func LabelGT(v string) predicate.WorkflowTransition
- func LabelGTE(v string) predicate.WorkflowTransition
- func LabelHasPrefix(v string) predicate.WorkflowTransition
- func LabelHasSuffix(v string) predicate.WorkflowTransition
- func LabelIn(vs ...string) predicate.WorkflowTransition
- func LabelLT(v string) predicate.WorkflowTransition
- func LabelLTE(v string) predicate.WorkflowTransition
- func LabelNEQ(v string) predicate.WorkflowTransition
- func LabelNotIn(vs ...string) predicate.WorkflowTransition
- func Not(p predicate.WorkflowTransition) predicate.WorkflowTransition
- func Or(predicates ...predicate.WorkflowTransition) predicate.WorkflowTransition
- func ToState(v string) predicate.WorkflowTransition
- func ToStateContains(v string) predicate.WorkflowTransition
- func ToStateContainsFold(v string) predicate.WorkflowTransition
- func ToStateEQ(v string) predicate.WorkflowTransition
- func ToStateEqualFold(v string) predicate.WorkflowTransition
- func ToStateGT(v string) predicate.WorkflowTransition
- func ToStateGTE(v string) predicate.WorkflowTransition
- func ToStateHasPrefix(v string) predicate.WorkflowTransition
- func ToStateHasSuffix(v string) predicate.WorkflowTransition
- func ToStateIn(vs ...string) predicate.WorkflowTransition
- func ToStateLT(v string) predicate.WorkflowTransition
- func ToStateLTE(v string) predicate.WorkflowTransition
- func ToStateNEQ(v string) predicate.WorkflowTransition
- func ToStateNotIn(vs ...string) predicate.WorkflowTransition
- func ValidColumn(column string) bool
- func Weight(v int) predicate.WorkflowTransition
- func WeightEQ(v int) predicate.WorkflowTransition
- func WeightGT(v int) predicate.WorkflowTransition
- func WeightGTE(v int) predicate.WorkflowTransition
- func WeightIn(vs ...int) predicate.WorkflowTransition
- func WeightLT(v int) predicate.WorkflowTransition
- func WeightLTE(v int) predicate.WorkflowTransition
- func WeightNEQ(v int) predicate.WorkflowTransition
- func WeightNotIn(vs ...int) predicate.WorkflowTransition
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the workflowtransition type in the database. Label = "workflow_transition" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFromStates holds the string denoting the from_states field in the database. FieldFromStates = "from_states" // FieldToState holds the string denoting the to_state field in the database. FieldToState = "to_state" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldRoles holds the string denoting the roles field in the database. FieldRoles = "roles" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // Table holds the table name of the workflowtransition in the database. Table = "workflow_transitions" )
Variables ¶
var ( // ToStateValidator is a validator for the "to_state" field. It is called by the builders before save. ToStateValidator func(string) error // LabelValidator is a validator for the "label" field. It is called by the builders before save. LabelValidator func(string) error // DefaultComment holds the default value on creation for the "comment" field. DefaultComment string // CommentValidator is a validator for the "comment" field. It is called by the builders before save. CommentValidator func(string) error // DefaultWeight holds the default value on creation for the "weight" field. DefaultWeight int )
var Columns = []string{ FieldID, FieldFromStates, FieldToState, FieldLabel, FieldRoles, FieldComment, FieldWeight, }
Columns holds all SQL columns for workflowtransition fields.
Functions ¶
func And ¶
func And(predicates ...predicate.WorkflowTransition) predicate.WorkflowTransition
And groups predicates with the AND operator between them.
func Comment ¶
func Comment(v string) predicate.WorkflowTransition
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
func CommentContains(v string) predicate.WorkflowTransition
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
func CommentContainsFold(v string) predicate.WorkflowTransition
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEQ ¶
func CommentEQ(v string) predicate.WorkflowTransition
CommentEQ applies the EQ predicate on the "comment" field.
func CommentEqualFold ¶
func CommentEqualFold(v string) predicate.WorkflowTransition
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGT ¶
func CommentGT(v string) predicate.WorkflowTransition
CommentGT applies the GT predicate on the "comment" field.
func CommentGTE ¶
func CommentGTE(v string) predicate.WorkflowTransition
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
func CommentHasPrefix(v string) predicate.WorkflowTransition
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
func CommentHasSuffix(v string) predicate.WorkflowTransition
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIn ¶
func CommentIn(vs ...string) predicate.WorkflowTransition
CommentIn applies the In predicate on the "comment" field.
func CommentLT ¶
func CommentLT(v string) predicate.WorkflowTransition
CommentLT applies the LT predicate on the "comment" field.
func CommentLTE ¶
func CommentLTE(v string) predicate.WorkflowTransition
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
func CommentNEQ(v string) predicate.WorkflowTransition
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
func CommentNotIn(vs ...string) predicate.WorkflowTransition
CommentNotIn applies the NotIn predicate on the "comment" field.
func IDEQ ¶
func IDEQ(id int) predicate.WorkflowTransition
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.WorkflowTransition
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.WorkflowTransition
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.WorkflowTransition
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.WorkflowTransition
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.WorkflowTransition
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.WorkflowTransition
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.WorkflowTransition
IDNotIn applies the NotIn predicate on the ID field.
func LabelContains ¶
func LabelContains(v string) predicate.WorkflowTransition
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
func LabelContainsFold(v string) predicate.WorkflowTransition
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEQ ¶
func LabelEQ(v string) predicate.WorkflowTransition
LabelEQ applies the EQ predicate on the "label" field.
func LabelEqualFold ¶
func LabelEqualFold(v string) predicate.WorkflowTransition
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelGT ¶
func LabelGT(v string) predicate.WorkflowTransition
LabelGT applies the GT predicate on the "label" field.
func LabelGTE ¶
func LabelGTE(v string) predicate.WorkflowTransition
LabelGTE applies the GTE predicate on the "label" field.
func LabelHasPrefix ¶
func LabelHasPrefix(v string) predicate.WorkflowTransition
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
func LabelHasSuffix(v string) predicate.WorkflowTransition
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelIn ¶
func LabelIn(vs ...string) predicate.WorkflowTransition
LabelIn applies the In predicate on the "label" field.
func LabelLT ¶
func LabelLT(v string) predicate.WorkflowTransition
LabelLT applies the LT predicate on the "label" field.
func LabelLTE ¶
func LabelLTE(v string) predicate.WorkflowTransition
LabelLTE applies the LTE predicate on the "label" field.
func LabelNEQ ¶
func LabelNEQ(v string) predicate.WorkflowTransition
LabelNEQ applies the NEQ predicate on the "label" field.
func LabelNotIn ¶
func LabelNotIn(vs ...string) predicate.WorkflowTransition
LabelNotIn applies the NotIn predicate on the "label" field.
func Not ¶
func Not(p predicate.WorkflowTransition) predicate.WorkflowTransition
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.WorkflowTransition) predicate.WorkflowTransition
Or groups predicates with the OR operator between them.
func ToState ¶
func ToState(v string) predicate.WorkflowTransition
ToState applies equality check predicate on the "to_state" field. It's identical to ToStateEQ.
func ToStateContains ¶
func ToStateContains(v string) predicate.WorkflowTransition
ToStateContains applies the Contains predicate on the "to_state" field.
func ToStateContainsFold ¶
func ToStateContainsFold(v string) predicate.WorkflowTransition
ToStateContainsFold applies the ContainsFold predicate on the "to_state" field.
func ToStateEQ ¶
func ToStateEQ(v string) predicate.WorkflowTransition
ToStateEQ applies the EQ predicate on the "to_state" field.
func ToStateEqualFold ¶
func ToStateEqualFold(v string) predicate.WorkflowTransition
ToStateEqualFold applies the EqualFold predicate on the "to_state" field.
func ToStateGT ¶
func ToStateGT(v string) predicate.WorkflowTransition
ToStateGT applies the GT predicate on the "to_state" field.
func ToStateGTE ¶
func ToStateGTE(v string) predicate.WorkflowTransition
ToStateGTE applies the GTE predicate on the "to_state" field.
func ToStateHasPrefix ¶
func ToStateHasPrefix(v string) predicate.WorkflowTransition
ToStateHasPrefix applies the HasPrefix predicate on the "to_state" field.
func ToStateHasSuffix ¶
func ToStateHasSuffix(v string) predicate.WorkflowTransition
ToStateHasSuffix applies the HasSuffix predicate on the "to_state" field.
func ToStateIn ¶
func ToStateIn(vs ...string) predicate.WorkflowTransition
ToStateIn applies the In predicate on the "to_state" field.
func ToStateLT ¶
func ToStateLT(v string) predicate.WorkflowTransition
ToStateLT applies the LT predicate on the "to_state" field.
func ToStateLTE ¶
func ToStateLTE(v string) predicate.WorkflowTransition
ToStateLTE applies the LTE predicate on the "to_state" field.
func ToStateNEQ ¶
func ToStateNEQ(v string) predicate.WorkflowTransition
ToStateNEQ applies the NEQ predicate on the "to_state" field.
func ToStateNotIn ¶
func ToStateNotIn(vs ...string) predicate.WorkflowTransition
ToStateNotIn applies the NotIn predicate on the "to_state" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Weight ¶
func Weight(v int) predicate.WorkflowTransition
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightEQ ¶
func WeightEQ(v int) predicate.WorkflowTransition
WeightEQ applies the EQ predicate on the "weight" field.
func WeightGT ¶
func WeightGT(v int) predicate.WorkflowTransition
WeightGT applies the GT predicate on the "weight" field.
func WeightGTE ¶
func WeightGTE(v int) predicate.WorkflowTransition
WeightGTE applies the GTE predicate on the "weight" field.
func WeightIn ¶
func WeightIn(vs ...int) predicate.WorkflowTransition
WeightIn applies the In predicate on the "weight" field.
func WeightLT ¶
func WeightLT(v int) predicate.WorkflowTransition
WeightLT applies the LT predicate on the "weight" field.
func WeightLTE ¶
func WeightLTE(v int) predicate.WorkflowTransition
WeightLTE applies the LTE predicate on the "weight" field.
func WeightNEQ ¶
func WeightNEQ(v int) predicate.WorkflowTransition
WeightNEQ applies the NEQ predicate on the "weight" field.
func WeightNotIn ¶
func WeightNotIn(vs ...int) predicate.WorkflowTransition
WeightNotIn applies the NotIn predicate on the "weight" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the WorkflowTransition queries.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLabel ¶
func ByLabel(opts ...sql.OrderTermOption) OrderOption
ByLabel orders the results by the label field.
func ByToState ¶
func ByToState(opts ...sql.OrderTermOption) OrderOption
ByToState orders the results by the to_state field.
func ByWeight ¶
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.