workflow

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldTraceID holds the string denoting the trace_id field in the database.
	FieldTraceID = "trace_id"
	// FieldParentWorkflowID holds the string denoting the parent_workflow_id field in the database.
	FieldParentWorkflowID = "parent_workflow_id"
	// FieldInitiator holds the string denoting the initiator field in the database.
	FieldInitiator = "initiator"
	// FieldInput holds the string denoting the input field in the database.
	FieldInput = "input"
	// FieldOutput holds the string denoting the output field in the database.
	FieldOutput = "output"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldTaskCount holds the string denoting the task_count field in the database.
	FieldTaskCount = "task_count"
	// FieldCompletedTaskCount holds the string denoting the completed_task_count field in the database.
	FieldCompletedTaskCount = "completed_task_count"
	// FieldFailedTaskCount holds the string denoting the failed_task_count field in the database.
	FieldFailedTaskCount = "failed_task_count"
	// FieldTotalCostUsd holds the string denoting the total_cost_usd field in the database.
	FieldTotalCostUsd = "total_cost_usd"
	// FieldTotalTokens holds the string denoting the total_tokens field in the database.
	FieldTotalTokens = "total_tokens"
	// FieldDurationMs holds the string denoting the duration_ms field in the database.
	FieldDurationMs = "duration_ms"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldEndedAt holds the string denoting the ended_at field in the database.
	FieldEndedAt = "ended_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeHandoffs holds the string denoting the handoffs edge name in mutations.
	EdgeHandoffs = "handoffs"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// Table holds the table name of the workflow in the database.
	Table = "workflows"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "agent_tasks"
	// TasksInverseTable is the table name for the AgentTask entity.
	// It exists in this package in order to avoid circular dependency with the "agenttask" package.
	TasksInverseTable = "agent_tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "workflow_id"
	// HandoffsTable is the table that holds the handoffs relation/edge.
	HandoffsTable = "agent_handoffs"
	// HandoffsInverseTable is the table name for the AgentHandoff entity.
	// It exists in this package in order to avoid circular dependency with the "agenthandoff" package.
	HandoffsInverseTable = "agent_handoffs"
	// HandoffsColumn is the table column denoting the handoffs relation/edge.
	HandoffsColumn = "workflow_id"
	// EventsTable is the table that holds the events relation/edge.
	EventsTable = "agent_events"
	// EventsInverseTable is the table name for the AgentEvent entity.
	// It exists in this package in order to avoid circular dependency with the "agentevent" package.
	EventsInverseTable = "agent_events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "workflow_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultTaskCount holds the default value on creation for the "task_count" field.
	DefaultTaskCount int
	// DefaultCompletedTaskCount holds the default value on creation for the "completed_task_count" field.
	DefaultCompletedTaskCount int
	// DefaultFailedTaskCount holds the default value on creation for the "failed_task_count" field.
	DefaultFailedTaskCount int
	// DefaultTotalCostUsd holds the default value on creation for the "total_cost_usd" field.
	DefaultTotalCostUsd float64
	// DefaultTotalTokens holds the default value on creation for the "total_tokens" field.
	DefaultTotalTokens int
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for workflow fields.

Functions

func And

func And(predicates ...predicate.Workflow) predicate.Workflow

And groups predicates with the AND operator between them.

func CompletedTaskCount

func CompletedTaskCount(v int) predicate.Workflow

CompletedTaskCount applies equality check predicate on the "completed_task_count" field. It's identical to CompletedTaskCountEQ.

func CompletedTaskCountEQ

func CompletedTaskCountEQ(v int) predicate.Workflow

CompletedTaskCountEQ applies the EQ predicate on the "completed_task_count" field.

func CompletedTaskCountGT

func CompletedTaskCountGT(v int) predicate.Workflow

CompletedTaskCountGT applies the GT predicate on the "completed_task_count" field.

func CompletedTaskCountGTE

func CompletedTaskCountGTE(v int) predicate.Workflow

CompletedTaskCountGTE applies the GTE predicate on the "completed_task_count" field.

func CompletedTaskCountIn

func CompletedTaskCountIn(vs ...int) predicate.Workflow

CompletedTaskCountIn applies the In predicate on the "completed_task_count" field.

func CompletedTaskCountLT

func CompletedTaskCountLT(v int) predicate.Workflow

CompletedTaskCountLT applies the LT predicate on the "completed_task_count" field.

func CompletedTaskCountLTE

func CompletedTaskCountLTE(v int) predicate.Workflow

CompletedTaskCountLTE applies the LTE predicate on the "completed_task_count" field.

func CompletedTaskCountNEQ

func CompletedTaskCountNEQ(v int) predicate.Workflow

CompletedTaskCountNEQ applies the NEQ predicate on the "completed_task_count" field.

func CompletedTaskCountNotIn

func CompletedTaskCountNotIn(vs ...int) predicate.Workflow

CompletedTaskCountNotIn applies the NotIn predicate on the "completed_task_count" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Workflow

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Workflow

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Workflow

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Workflow

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Workflow

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Workflow

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Workflow

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

func CreatedAtNotIn

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

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

func DurationMs

func DurationMs(v int64) predicate.Workflow

DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.

func DurationMsEQ

func DurationMsEQ(v int64) predicate.Workflow

DurationMsEQ applies the EQ predicate on the "duration_ms" field.

func DurationMsGT

func DurationMsGT(v int64) predicate.Workflow

DurationMsGT applies the GT predicate on the "duration_ms" field.

func DurationMsGTE

func DurationMsGTE(v int64) predicate.Workflow

DurationMsGTE applies the GTE predicate on the "duration_ms" field.

func DurationMsIn

func DurationMsIn(vs ...int64) predicate.Workflow

DurationMsIn applies the In predicate on the "duration_ms" field.

func DurationMsIsNil

func DurationMsIsNil() predicate.Workflow

DurationMsIsNil applies the IsNil predicate on the "duration_ms" field.

func DurationMsLT

func DurationMsLT(v int64) predicate.Workflow

DurationMsLT applies the LT predicate on the "duration_ms" field.

func DurationMsLTE

func DurationMsLTE(v int64) predicate.Workflow

DurationMsLTE applies the LTE predicate on the "duration_ms" field.

func DurationMsNEQ

func DurationMsNEQ(v int64) predicate.Workflow

DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.

func DurationMsNotIn

func DurationMsNotIn(vs ...int64) predicate.Workflow

DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.

func DurationMsNotNil

func DurationMsNotNil() predicate.Workflow

DurationMsNotNil applies the NotNil predicate on the "duration_ms" field.

func EndedAt

func EndedAt(v time.Time) predicate.Workflow

EndedAt applies equality check predicate on the "ended_at" field. It's identical to EndedAtEQ.

func EndedAtEQ

func EndedAtEQ(v time.Time) predicate.Workflow

EndedAtEQ applies the EQ predicate on the "ended_at" field.

func EndedAtGT

func EndedAtGT(v time.Time) predicate.Workflow

EndedAtGT applies the GT predicate on the "ended_at" field.

func EndedAtGTE

func EndedAtGTE(v time.Time) predicate.Workflow

EndedAtGTE applies the GTE predicate on the "ended_at" field.

func EndedAtIn

func EndedAtIn(vs ...time.Time) predicate.Workflow

EndedAtIn applies the In predicate on the "ended_at" field.

func EndedAtIsNil

func EndedAtIsNil() predicate.Workflow

EndedAtIsNil applies the IsNil predicate on the "ended_at" field.

func EndedAtLT

func EndedAtLT(v time.Time) predicate.Workflow

EndedAtLT applies the LT predicate on the "ended_at" field.

func EndedAtLTE

func EndedAtLTE(v time.Time) predicate.Workflow

EndedAtLTE applies the LTE predicate on the "ended_at" field.

func EndedAtNEQ

func EndedAtNEQ(v time.Time) predicate.Workflow

EndedAtNEQ applies the NEQ predicate on the "ended_at" field.

func EndedAtNotIn

func EndedAtNotIn(vs ...time.Time) predicate.Workflow

EndedAtNotIn applies the NotIn predicate on the "ended_at" field.

func EndedAtNotNil

func EndedAtNotNil() predicate.Workflow

EndedAtNotNil applies the NotNil predicate on the "ended_at" field.

func ErrorMessage

func ErrorMessage(v string) predicate.Workflow

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.Workflow

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.Workflow

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.Workflow

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.Workflow

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.Workflow

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.Workflow

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.Workflow

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.Workflow

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.Workflow

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.Workflow

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.Workflow

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.Workflow

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.Workflow

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.Workflow

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.Workflow

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func FailedTaskCount

func FailedTaskCount(v int) predicate.Workflow

FailedTaskCount applies equality check predicate on the "failed_task_count" field. It's identical to FailedTaskCountEQ.

func FailedTaskCountEQ

func FailedTaskCountEQ(v int) predicate.Workflow

FailedTaskCountEQ applies the EQ predicate on the "failed_task_count" field.

func FailedTaskCountGT

func FailedTaskCountGT(v int) predicate.Workflow

FailedTaskCountGT applies the GT predicate on the "failed_task_count" field.

func FailedTaskCountGTE

func FailedTaskCountGTE(v int) predicate.Workflow

FailedTaskCountGTE applies the GTE predicate on the "failed_task_count" field.

func FailedTaskCountIn

func FailedTaskCountIn(vs ...int) predicate.Workflow

FailedTaskCountIn applies the In predicate on the "failed_task_count" field.

func FailedTaskCountLT

func FailedTaskCountLT(v int) predicate.Workflow

FailedTaskCountLT applies the LT predicate on the "failed_task_count" field.

func FailedTaskCountLTE

func FailedTaskCountLTE(v int) predicate.Workflow

FailedTaskCountLTE applies the LTE predicate on the "failed_task_count" field.

func FailedTaskCountNEQ

func FailedTaskCountNEQ(v int) predicate.Workflow

FailedTaskCountNEQ applies the NEQ predicate on the "failed_task_count" field.

func FailedTaskCountNotIn

func FailedTaskCountNotIn(vs ...int) predicate.Workflow

FailedTaskCountNotIn applies the NotIn predicate on the "failed_task_count" field.

func HasEvents

func HasEvents() predicate.Workflow

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.AgentEvent) predicate.Workflow

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

func HasHandoffs

func HasHandoffs() predicate.Workflow

HasHandoffs applies the HasEdge predicate on the "handoffs" edge.

func HasHandoffsWith

func HasHandoffsWith(preds ...predicate.AgentHandoff) predicate.Workflow

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

func HasTasks

func HasTasks() predicate.Workflow

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.AgentTask) predicate.Workflow

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

func ID

func ID(id string) predicate.Workflow

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Workflow

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Workflow

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Workflow

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Workflow

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Workflow

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Workflow

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Workflow

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Workflow

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Workflow

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Workflow

IDNotIn applies the NotIn predicate on the ID field.

func Initiator

func Initiator(v string) predicate.Workflow

Initiator applies equality check predicate on the "initiator" field. It's identical to InitiatorEQ.

func InitiatorContains

func InitiatorContains(v string) predicate.Workflow

InitiatorContains applies the Contains predicate on the "initiator" field.

func InitiatorContainsFold

func InitiatorContainsFold(v string) predicate.Workflow

InitiatorContainsFold applies the ContainsFold predicate on the "initiator" field.

func InitiatorEQ

func InitiatorEQ(v string) predicate.Workflow

InitiatorEQ applies the EQ predicate on the "initiator" field.

func InitiatorEqualFold

func InitiatorEqualFold(v string) predicate.Workflow

InitiatorEqualFold applies the EqualFold predicate on the "initiator" field.

func InitiatorGT

func InitiatorGT(v string) predicate.Workflow

InitiatorGT applies the GT predicate on the "initiator" field.

func InitiatorGTE

func InitiatorGTE(v string) predicate.Workflow

InitiatorGTE applies the GTE predicate on the "initiator" field.

func InitiatorHasPrefix

func InitiatorHasPrefix(v string) predicate.Workflow

InitiatorHasPrefix applies the HasPrefix predicate on the "initiator" field.

func InitiatorHasSuffix

func InitiatorHasSuffix(v string) predicate.Workflow

InitiatorHasSuffix applies the HasSuffix predicate on the "initiator" field.

func InitiatorIn

func InitiatorIn(vs ...string) predicate.Workflow

InitiatorIn applies the In predicate on the "initiator" field.

func InitiatorIsNil

func InitiatorIsNil() predicate.Workflow

InitiatorIsNil applies the IsNil predicate on the "initiator" field.

func InitiatorLT

func InitiatorLT(v string) predicate.Workflow

InitiatorLT applies the LT predicate on the "initiator" field.

func InitiatorLTE

func InitiatorLTE(v string) predicate.Workflow

InitiatorLTE applies the LTE predicate on the "initiator" field.

func InitiatorNEQ

func InitiatorNEQ(v string) predicate.Workflow

InitiatorNEQ applies the NEQ predicate on the "initiator" field.

func InitiatorNotIn

func InitiatorNotIn(vs ...string) predicate.Workflow

InitiatorNotIn applies the NotIn predicate on the "initiator" field.

func InitiatorNotNil

func InitiatorNotNil() predicate.Workflow

InitiatorNotNil applies the NotNil predicate on the "initiator" field.

func InputIsNil

func InputIsNil() predicate.Workflow

InputIsNil applies the IsNil predicate on the "input" field.

func InputNotNil

func InputNotNil() predicate.Workflow

InputNotNil applies the NotNil predicate on the "input" field.

func MetadataIsNil

func MetadataIsNil() predicate.Workflow

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Workflow

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Workflow

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Workflow

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Workflow

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Workflow

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Workflow

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Workflow

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Workflow

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Workflow

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Workflow

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Workflow

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Workflow

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Workflow

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Workflow

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Workflow

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Workflow) predicate.Workflow

Or groups predicates with the OR operator between them.

func OutputIsNil

func OutputIsNil() predicate.Workflow

OutputIsNil applies the IsNil predicate on the "output" field.

func OutputNotNil

func OutputNotNil() predicate.Workflow

OutputNotNil applies the NotNil predicate on the "output" field.

func ParentWorkflowID

func ParentWorkflowID(v string) predicate.Workflow

ParentWorkflowID applies equality check predicate on the "parent_workflow_id" field. It's identical to ParentWorkflowIDEQ.

func ParentWorkflowIDContains

func ParentWorkflowIDContains(v string) predicate.Workflow

ParentWorkflowIDContains applies the Contains predicate on the "parent_workflow_id" field.

func ParentWorkflowIDContainsFold

func ParentWorkflowIDContainsFold(v string) predicate.Workflow

ParentWorkflowIDContainsFold applies the ContainsFold predicate on the "parent_workflow_id" field.

func ParentWorkflowIDEQ

func ParentWorkflowIDEQ(v string) predicate.Workflow

ParentWorkflowIDEQ applies the EQ predicate on the "parent_workflow_id" field.

func ParentWorkflowIDEqualFold

func ParentWorkflowIDEqualFold(v string) predicate.Workflow

ParentWorkflowIDEqualFold applies the EqualFold predicate on the "parent_workflow_id" field.

func ParentWorkflowIDGT

func ParentWorkflowIDGT(v string) predicate.Workflow

ParentWorkflowIDGT applies the GT predicate on the "parent_workflow_id" field.

func ParentWorkflowIDGTE

func ParentWorkflowIDGTE(v string) predicate.Workflow

ParentWorkflowIDGTE applies the GTE predicate on the "parent_workflow_id" field.

func ParentWorkflowIDHasPrefix

func ParentWorkflowIDHasPrefix(v string) predicate.Workflow

ParentWorkflowIDHasPrefix applies the HasPrefix predicate on the "parent_workflow_id" field.

func ParentWorkflowIDHasSuffix

func ParentWorkflowIDHasSuffix(v string) predicate.Workflow

ParentWorkflowIDHasSuffix applies the HasSuffix predicate on the "parent_workflow_id" field.

func ParentWorkflowIDIn

func ParentWorkflowIDIn(vs ...string) predicate.Workflow

ParentWorkflowIDIn applies the In predicate on the "parent_workflow_id" field.

func ParentWorkflowIDIsNil

func ParentWorkflowIDIsNil() predicate.Workflow

ParentWorkflowIDIsNil applies the IsNil predicate on the "parent_workflow_id" field.

func ParentWorkflowIDLT

func ParentWorkflowIDLT(v string) predicate.Workflow

ParentWorkflowIDLT applies the LT predicate on the "parent_workflow_id" field.

func ParentWorkflowIDLTE

func ParentWorkflowIDLTE(v string) predicate.Workflow

ParentWorkflowIDLTE applies the LTE predicate on the "parent_workflow_id" field.

func ParentWorkflowIDNEQ

func ParentWorkflowIDNEQ(v string) predicate.Workflow

ParentWorkflowIDNEQ applies the NEQ predicate on the "parent_workflow_id" field.

func ParentWorkflowIDNotIn

func ParentWorkflowIDNotIn(vs ...string) predicate.Workflow

ParentWorkflowIDNotIn applies the NotIn predicate on the "parent_workflow_id" field.

func ParentWorkflowIDNotNil

func ParentWorkflowIDNotNil() predicate.Workflow

ParentWorkflowIDNotNil applies the NotNil predicate on the "parent_workflow_id" field.

func StartedAt

func StartedAt(v time.Time) predicate.Workflow

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Workflow

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Workflow

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Workflow

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.Workflow

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Workflow

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Workflow

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Workflow

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.Workflow

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func Status

func Status(v string) predicate.Workflow

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Workflow

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Workflow

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Workflow

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Workflow

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Workflow

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Workflow

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Workflow

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Workflow

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Workflow

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Workflow

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Workflow

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Workflow

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Workflow

StatusNotIn applies the NotIn predicate on the "status" field.

func TaskCount

func TaskCount(v int) predicate.Workflow

TaskCount applies equality check predicate on the "task_count" field. It's identical to TaskCountEQ.

func TaskCountEQ

func TaskCountEQ(v int) predicate.Workflow

TaskCountEQ applies the EQ predicate on the "task_count" field.

func TaskCountGT

func TaskCountGT(v int) predicate.Workflow

TaskCountGT applies the GT predicate on the "task_count" field.

func TaskCountGTE

func TaskCountGTE(v int) predicate.Workflow

TaskCountGTE applies the GTE predicate on the "task_count" field.

func TaskCountIn

func TaskCountIn(vs ...int) predicate.Workflow

TaskCountIn applies the In predicate on the "task_count" field.

func TaskCountLT

func TaskCountLT(v int) predicate.Workflow

TaskCountLT applies the LT predicate on the "task_count" field.

func TaskCountLTE

func TaskCountLTE(v int) predicate.Workflow

TaskCountLTE applies the LTE predicate on the "task_count" field.

func TaskCountNEQ

func TaskCountNEQ(v int) predicate.Workflow

TaskCountNEQ applies the NEQ predicate on the "task_count" field.

func TaskCountNotIn

func TaskCountNotIn(vs ...int) predicate.Workflow

TaskCountNotIn applies the NotIn predicate on the "task_count" field.

func TotalCostUsd

func TotalCostUsd(v float64) predicate.Workflow

TotalCostUsd applies equality check predicate on the "total_cost_usd" field. It's identical to TotalCostUsdEQ.

func TotalCostUsdEQ

func TotalCostUsdEQ(v float64) predicate.Workflow

TotalCostUsdEQ applies the EQ predicate on the "total_cost_usd" field.

func TotalCostUsdGT

func TotalCostUsdGT(v float64) predicate.Workflow

TotalCostUsdGT applies the GT predicate on the "total_cost_usd" field.

func TotalCostUsdGTE

func TotalCostUsdGTE(v float64) predicate.Workflow

TotalCostUsdGTE applies the GTE predicate on the "total_cost_usd" field.

func TotalCostUsdIn

func TotalCostUsdIn(vs ...float64) predicate.Workflow

TotalCostUsdIn applies the In predicate on the "total_cost_usd" field.

func TotalCostUsdLT

func TotalCostUsdLT(v float64) predicate.Workflow

TotalCostUsdLT applies the LT predicate on the "total_cost_usd" field.

func TotalCostUsdLTE

func TotalCostUsdLTE(v float64) predicate.Workflow

TotalCostUsdLTE applies the LTE predicate on the "total_cost_usd" field.

func TotalCostUsdNEQ

func TotalCostUsdNEQ(v float64) predicate.Workflow

TotalCostUsdNEQ applies the NEQ predicate on the "total_cost_usd" field.

func TotalCostUsdNotIn

func TotalCostUsdNotIn(vs ...float64) predicate.Workflow

TotalCostUsdNotIn applies the NotIn predicate on the "total_cost_usd" field.

func TotalTokens

func TotalTokens(v int) predicate.Workflow

TotalTokens applies equality check predicate on the "total_tokens" field. It's identical to TotalTokensEQ.

func TotalTokensEQ

func TotalTokensEQ(v int) predicate.Workflow

TotalTokensEQ applies the EQ predicate on the "total_tokens" field.

func TotalTokensGT

func TotalTokensGT(v int) predicate.Workflow

TotalTokensGT applies the GT predicate on the "total_tokens" field.

func TotalTokensGTE

func TotalTokensGTE(v int) predicate.Workflow

TotalTokensGTE applies the GTE predicate on the "total_tokens" field.

func TotalTokensIn

func TotalTokensIn(vs ...int) predicate.Workflow

TotalTokensIn applies the In predicate on the "total_tokens" field.

func TotalTokensLT

func TotalTokensLT(v int) predicate.Workflow

TotalTokensLT applies the LT predicate on the "total_tokens" field.

func TotalTokensLTE

func TotalTokensLTE(v int) predicate.Workflow

TotalTokensLTE applies the LTE predicate on the "total_tokens" field.

func TotalTokensNEQ

func TotalTokensNEQ(v int) predicate.Workflow

TotalTokensNEQ applies the NEQ predicate on the "total_tokens" field.

func TotalTokensNotIn

func TotalTokensNotIn(vs ...int) predicate.Workflow

TotalTokensNotIn applies the NotIn predicate on the "total_tokens" field.

func TraceID

func TraceID(v string) predicate.Workflow

TraceID applies equality check predicate on the "trace_id" field. It's identical to TraceIDEQ.

func TraceIDContains

func TraceIDContains(v string) predicate.Workflow

TraceIDContains applies the Contains predicate on the "trace_id" field.

func TraceIDContainsFold

func TraceIDContainsFold(v string) predicate.Workflow

TraceIDContainsFold applies the ContainsFold predicate on the "trace_id" field.

func TraceIDEQ

func TraceIDEQ(v string) predicate.Workflow

TraceIDEQ applies the EQ predicate on the "trace_id" field.

func TraceIDEqualFold

func TraceIDEqualFold(v string) predicate.Workflow

TraceIDEqualFold applies the EqualFold predicate on the "trace_id" field.

func TraceIDGT

func TraceIDGT(v string) predicate.Workflow

TraceIDGT applies the GT predicate on the "trace_id" field.

func TraceIDGTE

func TraceIDGTE(v string) predicate.Workflow

TraceIDGTE applies the GTE predicate on the "trace_id" field.

func TraceIDHasPrefix

func TraceIDHasPrefix(v string) predicate.Workflow

TraceIDHasPrefix applies the HasPrefix predicate on the "trace_id" field.

func TraceIDHasSuffix

func TraceIDHasSuffix(v string) predicate.Workflow

TraceIDHasSuffix applies the HasSuffix predicate on the "trace_id" field.

func TraceIDIn

func TraceIDIn(vs ...string) predicate.Workflow

TraceIDIn applies the In predicate on the "trace_id" field.

func TraceIDIsNil

func TraceIDIsNil() predicate.Workflow

TraceIDIsNil applies the IsNil predicate on the "trace_id" field.

func TraceIDLT

func TraceIDLT(v string) predicate.Workflow

TraceIDLT applies the LT predicate on the "trace_id" field.

func TraceIDLTE

func TraceIDLTE(v string) predicate.Workflow

TraceIDLTE applies the LTE predicate on the "trace_id" field.

func TraceIDNEQ

func TraceIDNEQ(v string) predicate.Workflow

TraceIDNEQ applies the NEQ predicate on the "trace_id" field.

func TraceIDNotIn

func TraceIDNotIn(vs ...string) predicate.Workflow

TraceIDNotIn applies the NotIn predicate on the "trace_id" field.

func TraceIDNotNil

func TraceIDNotNil() predicate.Workflow

TraceIDNotNil applies the NotNil predicate on the "trace_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Workflow

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Workflow

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Workflow

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Workflow

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Workflow

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Workflow

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Workflow

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Workflow

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Workflow

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Workflow queries.

func ByCompletedTaskCount

func ByCompletedTaskCount(opts ...sql.OrderTermOption) OrderOption

ByCompletedTaskCount orders the results by the completed_task_count field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDurationMs

func ByDurationMs(opts ...sql.OrderTermOption) OrderOption

ByDurationMs orders the results by the duration_ms field.

func ByEndedAt

func ByEndedAt(opts ...sql.OrderTermOption) OrderOption

ByEndedAt orders the results by the ended_at field.

func ByErrorMessage

func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption

ByErrorMessage orders the results by the error_message field.

func ByEvents

func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEvents orders the results by events terms.

func ByEventsCount

func ByEventsCount(opts ...sql.OrderTermOption) OrderOption

ByEventsCount orders the results by events count.

func ByFailedTaskCount

func ByFailedTaskCount(opts ...sql.OrderTermOption) OrderOption

ByFailedTaskCount orders the results by the failed_task_count field.

func ByHandoffs

func ByHandoffs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHandoffs orders the results by handoffs terms.

func ByHandoffsCount

func ByHandoffsCount(opts ...sql.OrderTermOption) OrderOption

ByHandoffsCount orders the results by handoffs count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInitiator

func ByInitiator(opts ...sql.OrderTermOption) OrderOption

ByInitiator orders the results by the initiator field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByParentWorkflowID

func ByParentWorkflowID(opts ...sql.OrderTermOption) OrderOption

ByParentWorkflowID orders the results by the parent_workflow_id field.

func ByStartedAt

func ByStartedAt(opts ...sql.OrderTermOption) OrderOption

ByStartedAt orders the results by the started_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTaskCount

func ByTaskCount(opts ...sql.OrderTermOption) OrderOption

ByTaskCount orders the results by the task_count field.

func ByTasks

func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTasks orders the results by tasks terms.

func ByTasksCount

func ByTasksCount(opts ...sql.OrderTermOption) OrderOption

ByTasksCount orders the results by tasks count.

func ByTotalCostUsd

func ByTotalCostUsd(opts ...sql.OrderTermOption) OrderOption

ByTotalCostUsd orders the results by the total_cost_usd field.

func ByTotalTokens

func ByTotalTokens(opts ...sql.OrderTermOption) OrderOption

ByTotalTokens orders the results by the total_tokens field.

func ByTraceID

func ByTraceID(opts ...sql.OrderTermOption) OrderOption

ByTraceID orders the results by the trace_id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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