workflowtransition

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for workflowtransition fields.

Functions

func And

And groups predicates with the AND operator between them.

func Comment

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

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

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

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

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ToState

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Weight

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL