Documentation ¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type Namespace
- type NamespaceClient
- func (c *NamespaceClient) Create() *NamespaceCreate
- func (c *NamespaceClient) CreateBulk(builders ...*NamespaceCreate) *NamespaceCreateBulk
- func (c *NamespaceClient) Delete() *NamespaceDelete
- func (c *NamespaceClient) DeleteOne(n *Namespace) *NamespaceDeleteOne
- func (c *NamespaceClient) DeleteOneID(id string) *NamespaceDeleteOne
- func (c *NamespaceClient) Get(ctx context.Context, id string) (*Namespace, error)
- func (c *NamespaceClient) GetX(ctx context.Context, id string) *Namespace
- func (c *NamespaceClient) Hooks() []Hook
- func (c *NamespaceClient) Query() *NamespaceQuery
- func (c *NamespaceClient) QueryWorkflows(n *Namespace) *WorkflowQuery
- func (c *NamespaceClient) Update() *NamespaceUpdate
- func (c *NamespaceClient) UpdateOne(n *Namespace) *NamespaceUpdateOne
- func (c *NamespaceClient) UpdateOneID(id string) *NamespaceUpdateOne
- func (c *NamespaceClient) Use(hooks ...Hook)
- type NamespaceCreate
- func (nc *NamespaceCreate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceCreate
- func (nc *NamespaceCreate) AddWorkflows(w ...*Workflow) *NamespaceCreate
- func (nc *NamespaceCreate) Exec(ctx context.Context) error
- func (nc *NamespaceCreate) ExecX(ctx context.Context)
- func (nc *NamespaceCreate) Mutation() *NamespaceMutation
- func (nc *NamespaceCreate) Save(ctx context.Context) (*Namespace, error)
- func (nc *NamespaceCreate) SaveX(ctx context.Context) *Namespace
- func (nc *NamespaceCreate) SetCreated(t time.Time) *NamespaceCreate
- func (nc *NamespaceCreate) SetID(s string) *NamespaceCreate
- func (nc *NamespaceCreate) SetNillableCreated(t *time.Time) *NamespaceCreate
- type NamespaceCreateBulk
- type NamespaceDelete
- type NamespaceDeleteOne
- type NamespaceEdges
- type NamespaceGroupBy
- func (ngb *NamespaceGroupBy) Aggregate(fns ...AggregateFunc) *NamespaceGroupBy
- func (ngb *NamespaceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ngb *NamespaceGroupBy) BoolX(ctx context.Context) bool
- func (ngb *NamespaceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ngb *NamespaceGroupBy) BoolsX(ctx context.Context) []bool
- func (ngb *NamespaceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ngb *NamespaceGroupBy) Float64X(ctx context.Context) float64
- func (ngb *NamespaceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ngb *NamespaceGroupBy) Float64sX(ctx context.Context) []float64
- func (ngb *NamespaceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ngb *NamespaceGroupBy) IntX(ctx context.Context) int
- func (ngb *NamespaceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ngb *NamespaceGroupBy) IntsX(ctx context.Context) []int
- func (ngb *NamespaceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ngb *NamespaceGroupBy) ScanX(ctx context.Context, v interface{})
- func (ngb *NamespaceGroupBy) String(ctx context.Context) (_ string, err error)
- func (ngb *NamespaceGroupBy) StringX(ctx context.Context) string
- func (ngb *NamespaceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ngb *NamespaceGroupBy) StringsX(ctx context.Context) []string
- type NamespaceMutation
- func (m *NamespaceMutation) AddField(name string, value ent.Value) error
- func (m *NamespaceMutation) AddWorkflowIDs(ids ...uuid.UUID)
- func (m *NamespaceMutation) AddedEdges() []string
- func (m *NamespaceMutation) AddedField(name string) (ent.Value, bool)
- func (m *NamespaceMutation) AddedFields() []string
- func (m *NamespaceMutation) AddedIDs(name string) []ent.Value
- func (m *NamespaceMutation) ClearEdge(name string) error
- func (m *NamespaceMutation) ClearField(name string) error
- func (m *NamespaceMutation) ClearWorkflows()
- func (m *NamespaceMutation) ClearedEdges() []string
- func (m *NamespaceMutation) ClearedFields() []string
- func (m NamespaceMutation) Client() *Client
- func (m *NamespaceMutation) Created() (r time.Time, exists bool)
- func (m *NamespaceMutation) EdgeCleared(name string) bool
- func (m *NamespaceMutation) Field(name string) (ent.Value, bool)
- func (m *NamespaceMutation) FieldCleared(name string) bool
- func (m *NamespaceMutation) Fields() []string
- func (m *NamespaceMutation) ID() (id string, exists bool)
- func (m *NamespaceMutation) OldCreated(ctx context.Context) (v time.Time, err error)
- func (m *NamespaceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NamespaceMutation) Op() Op
- func (m *NamespaceMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
- func (m *NamespaceMutation) RemovedEdges() []string
- func (m *NamespaceMutation) RemovedIDs(name string) []ent.Value
- func (m *NamespaceMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
- func (m *NamespaceMutation) ResetCreated()
- func (m *NamespaceMutation) ResetEdge(name string) error
- func (m *NamespaceMutation) ResetField(name string) error
- func (m *NamespaceMutation) ResetWorkflows()
- func (m *NamespaceMutation) SetCreated(t time.Time)
- func (m *NamespaceMutation) SetField(name string, value ent.Value) error
- func (m *NamespaceMutation) SetID(id string)
- func (m NamespaceMutation) Tx() (*Tx, error)
- func (m *NamespaceMutation) Type() string
- func (m *NamespaceMutation) Where(ps ...predicate.Namespace)
- func (m *NamespaceMutation) WorkflowsCleared() bool
- func (m *NamespaceMutation) WorkflowsIDs() (ids []uuid.UUID)
- type NamespaceQuery
- func (nq *NamespaceQuery) All(ctx context.Context) ([]*Namespace, error)
- func (nq *NamespaceQuery) AllX(ctx context.Context) []*Namespace
- func (nq *NamespaceQuery) Clone() *NamespaceQuery
- func (nq *NamespaceQuery) Count(ctx context.Context) (int, error)
- func (nq *NamespaceQuery) CountX(ctx context.Context) int
- func (nq *NamespaceQuery) Exist(ctx context.Context) (bool, error)
- func (nq *NamespaceQuery) ExistX(ctx context.Context) bool
- func (nq *NamespaceQuery) First(ctx context.Context) (*Namespace, error)
- func (nq *NamespaceQuery) FirstID(ctx context.Context) (id string, err error)
- func (nq *NamespaceQuery) FirstIDX(ctx context.Context) string
- func (nq *NamespaceQuery) FirstX(ctx context.Context) *Namespace
- func (nq *NamespaceQuery) GroupBy(field string, fields ...string) *NamespaceGroupBy
- func (nq *NamespaceQuery) IDs(ctx context.Context) ([]string, error)
- func (nq *NamespaceQuery) IDsX(ctx context.Context) []string
- func (nq *NamespaceQuery) Limit(limit int) *NamespaceQuery
- func (nq *NamespaceQuery) Offset(offset int) *NamespaceQuery
- func (nq *NamespaceQuery) Only(ctx context.Context) (*Namespace, error)
- func (nq *NamespaceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (nq *NamespaceQuery) OnlyIDX(ctx context.Context) string
- func (nq *NamespaceQuery) OnlyX(ctx context.Context) *Namespace
- func (nq *NamespaceQuery) Order(o ...OrderFunc) *NamespaceQuery
- func (nq *NamespaceQuery) QueryWorkflows() *WorkflowQuery
- func (nq *NamespaceQuery) Select(fields ...string) *NamespaceSelect
- func (nq *NamespaceQuery) Unique(unique bool) *NamespaceQuery
- func (nq *NamespaceQuery) Where(ps ...predicate.Namespace) *NamespaceQuery
- func (nq *NamespaceQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *NamespaceQuery
- type NamespaceSelect
- func (ns *NamespaceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ns *NamespaceSelect) BoolX(ctx context.Context) bool
- func (ns *NamespaceSelect) Bools(ctx context.Context) ([]bool, error)
- func (ns *NamespaceSelect) BoolsX(ctx context.Context) []bool
- func (ns *NamespaceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ns *NamespaceSelect) Float64X(ctx context.Context) float64
- func (ns *NamespaceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ns *NamespaceSelect) Float64sX(ctx context.Context) []float64
- func (ns *NamespaceSelect) Int(ctx context.Context) (_ int, err error)
- func (ns *NamespaceSelect) IntX(ctx context.Context) int
- func (ns *NamespaceSelect) Ints(ctx context.Context) ([]int, error)
- func (ns *NamespaceSelect) IntsX(ctx context.Context) []int
- func (ns *NamespaceSelect) Scan(ctx context.Context, v interface{}) error
- func (ns *NamespaceSelect) ScanX(ctx context.Context, v interface{})
- func (ns *NamespaceSelect) String(ctx context.Context) (_ string, err error)
- func (ns *NamespaceSelect) StringX(ctx context.Context) string
- func (ns *NamespaceSelect) Strings(ctx context.Context) ([]string, error)
- func (ns *NamespaceSelect) StringsX(ctx context.Context) []string
- type NamespaceUpdate
- func (nu *NamespaceUpdate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate
- func (nu *NamespaceUpdate) AddWorkflows(w ...*Workflow) *NamespaceUpdate
- func (nu *NamespaceUpdate) ClearWorkflows() *NamespaceUpdate
- func (nu *NamespaceUpdate) Exec(ctx context.Context) error
- func (nu *NamespaceUpdate) ExecX(ctx context.Context)
- func (nu *NamespaceUpdate) Mutation() *NamespaceMutation
- func (nu *NamespaceUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate
- func (nu *NamespaceUpdate) RemoveWorkflows(w ...*Workflow) *NamespaceUpdate
- func (nu *NamespaceUpdate) Save(ctx context.Context) (int, error)
- func (nu *NamespaceUpdate) SaveX(ctx context.Context) int
- func (nu *NamespaceUpdate) Where(ps ...predicate.Namespace) *NamespaceUpdate
- type NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) AddWorkflows(w ...*Workflow) *NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) ClearWorkflows() *NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) Exec(ctx context.Context) error
- func (nuo *NamespaceUpdateOne) ExecX(ctx context.Context)
- func (nuo *NamespaceUpdateOne) Mutation() *NamespaceMutation
- func (nuo *NamespaceUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) RemoveWorkflows(w ...*Workflow) *NamespaceUpdateOne
- func (nuo *NamespaceUpdateOne) Save(ctx context.Context) (*Namespace, error)
- func (nuo *NamespaceUpdateOne) SaveX(ctx context.Context) *Namespace
- func (nuo *NamespaceUpdateOne) Select(field string, fields ...string) *NamespaceUpdateOne
- type Namespaces
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Tx
- type ValidationError
- type Value
- type Workflow
- type WorkflowClient
- func (c *WorkflowClient) Create() *WorkflowCreate
- func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk
- func (c *WorkflowClient) Delete() *WorkflowDelete
- func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne
- func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne
- func (c *WorkflowClient) Get(ctx context.Context, id uuid.UUID) (*Workflow, error)
- func (c *WorkflowClient) GetX(ctx context.Context, id uuid.UUID) *Workflow
- func (c *WorkflowClient) Hooks() []Hook
- func (c *WorkflowClient) Query() *WorkflowQuery
- func (c *WorkflowClient) QueryInstances(w *Workflow) *WorkflowInstanceQuery
- func (c *WorkflowClient) QueryNamespace(w *Workflow) *NamespaceQuery
- func (c *WorkflowClient) QueryWfevents(w *Workflow) *WorkflowEventsQuery
- func (c *WorkflowClient) Update() *WorkflowUpdate
- func (c *WorkflowClient) UpdateOne(w *Workflow) *WorkflowUpdateOne
- func (c *WorkflowClient) UpdateOneID(id uuid.UUID) *WorkflowUpdateOne
- func (c *WorkflowClient) Use(hooks ...Hook)
- type WorkflowCreate
- func (wc *WorkflowCreate) AddInstanceIDs(ids ...int) *WorkflowCreate
- func (wc *WorkflowCreate) AddInstances(w ...*WorkflowInstance) *WorkflowCreate
- func (wc *WorkflowCreate) AddWfeventIDs(ids ...int) *WorkflowCreate
- func (wc *WorkflowCreate) AddWfevents(w ...*WorkflowEvents) *WorkflowCreate
- func (wc *WorkflowCreate) Exec(ctx context.Context) error
- func (wc *WorkflowCreate) ExecX(ctx context.Context)
- func (wc *WorkflowCreate) Mutation() *WorkflowMutation
- func (wc *WorkflowCreate) Save(ctx context.Context) (*Workflow, error)
- func (wc *WorkflowCreate) SaveX(ctx context.Context) *Workflow
- func (wc *WorkflowCreate) SetActive(b bool) *WorkflowCreate
- func (wc *WorkflowCreate) SetCreated(t time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetDescription(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate
- func (wc *WorkflowCreate) SetLogToEvents(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNamespace(n *Namespace) *WorkflowCreate
- func (wc *WorkflowCreate) SetNamespaceID(id string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableActive(b *bool) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableCreated(t *time.Time) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableDescription(s *string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableLogToEvents(s *string) *WorkflowCreate
- func (wc *WorkflowCreate) SetNillableRevision(i *int) *WorkflowCreate
- func (wc *WorkflowCreate) SetRevision(i int) *WorkflowCreate
- func (wc *WorkflowCreate) SetWorkflow(b []byte) *WorkflowCreate
- type WorkflowCreateBulk
- type WorkflowDelete
- type WorkflowDeleteOne
- type WorkflowEdges
- type WorkflowEvents
- func (we *WorkflowEvents) QueryWfeventswait() *WorkflowEventsWaitQuery
- func (we *WorkflowEvents) QueryWorkflow() *WorkflowQuery
- func (we *WorkflowEvents) QueryWorkflowinstance() *WorkflowInstanceQuery
- func (we *WorkflowEvents) String() string
- func (we *WorkflowEvents) Unwrap() *WorkflowEvents
- func (we *WorkflowEvents) Update() *WorkflowEventsUpdateOne
- type WorkflowEventsClient
- func (c *WorkflowEventsClient) Create() *WorkflowEventsCreate
- func (c *WorkflowEventsClient) CreateBulk(builders ...*WorkflowEventsCreate) *WorkflowEventsCreateBulk
- func (c *WorkflowEventsClient) Delete() *WorkflowEventsDelete
- func (c *WorkflowEventsClient) DeleteOne(we *WorkflowEvents) *WorkflowEventsDeleteOne
- func (c *WorkflowEventsClient) DeleteOneID(id int) *WorkflowEventsDeleteOne
- func (c *WorkflowEventsClient) Get(ctx context.Context, id int) (*WorkflowEvents, error)
- func (c *WorkflowEventsClient) GetX(ctx context.Context, id int) *WorkflowEvents
- func (c *WorkflowEventsClient) Hooks() []Hook
- func (c *WorkflowEventsClient) Query() *WorkflowEventsQuery
- func (c *WorkflowEventsClient) QueryWfeventswait(we *WorkflowEvents) *WorkflowEventsWaitQuery
- func (c *WorkflowEventsClient) QueryWorkflow(we *WorkflowEvents) *WorkflowQuery
- func (c *WorkflowEventsClient) QueryWorkflowinstance(we *WorkflowEvents) *WorkflowInstanceQuery
- func (c *WorkflowEventsClient) Update() *WorkflowEventsUpdate
- func (c *WorkflowEventsClient) UpdateOne(we *WorkflowEvents) *WorkflowEventsUpdateOne
- func (c *WorkflowEventsClient) UpdateOneID(id int) *WorkflowEventsUpdateOne
- func (c *WorkflowEventsClient) Use(hooks ...Hook)
- type WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) Exec(ctx context.Context) error
- func (wec *WorkflowEventsCreate) ExecX(ctx context.Context)
- func (wec *WorkflowEventsCreate) Mutation() *WorkflowEventsMutation
- func (wec *WorkflowEventsCreate) Save(ctx context.Context) (*WorkflowEvents, error)
- func (wec *WorkflowEventsCreate) SaveX(ctx context.Context) *WorkflowEvents
- func (wec *WorkflowEventsCreate) SetCorrelations(s []string) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetCount(i int) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetEvents(m []map[string]interface{}) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetSignature(b []byte) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetWorkflow(w *Workflow) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetWorkflowID(id uuid.UUID) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsCreate
- func (wec *WorkflowEventsCreate) SetWorkflowinstanceID(id int) *WorkflowEventsCreate
- type WorkflowEventsCreateBulk
- func (wecb *WorkflowEventsCreateBulk) Exec(ctx context.Context) error
- func (wecb *WorkflowEventsCreateBulk) ExecX(ctx context.Context)
- func (wecb *WorkflowEventsCreateBulk) Save(ctx context.Context) ([]*WorkflowEvents, error)
- func (wecb *WorkflowEventsCreateBulk) SaveX(ctx context.Context) []*WorkflowEvents
- type WorkflowEventsDelete
- type WorkflowEventsDeleteOne
- type WorkflowEventsEdges
- type WorkflowEventsGroupBy
- func (wegb *WorkflowEventsGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowEventsGroupBy
- func (wegb *WorkflowEventsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (wegb *WorkflowEventsGroupBy) BoolX(ctx context.Context) bool
- func (wegb *WorkflowEventsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (wegb *WorkflowEventsGroupBy) BoolsX(ctx context.Context) []bool
- func (wegb *WorkflowEventsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (wegb *WorkflowEventsGroupBy) Float64X(ctx context.Context) float64
- func (wegb *WorkflowEventsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (wegb *WorkflowEventsGroupBy) Float64sX(ctx context.Context) []float64
- func (wegb *WorkflowEventsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (wegb *WorkflowEventsGroupBy) IntX(ctx context.Context) int
- func (wegb *WorkflowEventsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (wegb *WorkflowEventsGroupBy) IntsX(ctx context.Context) []int
- func (wegb *WorkflowEventsGroupBy) Scan(ctx context.Context, v interface{}) error
- func (wegb *WorkflowEventsGroupBy) ScanX(ctx context.Context, v interface{})
- func (wegb *WorkflowEventsGroupBy) String(ctx context.Context) (_ string, err error)
- func (wegb *WorkflowEventsGroupBy) StringX(ctx context.Context) string
- func (wegb *WorkflowEventsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (wegb *WorkflowEventsGroupBy) StringsX(ctx context.Context) []string
- type WorkflowEventsMutation
- func (m *WorkflowEventsMutation) AddCount(i int)
- func (m *WorkflowEventsMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowEventsMutation) AddWfeventswaitIDs(ids ...int)
- func (m *WorkflowEventsMutation) AddedCount() (r int, exists bool)
- func (m *WorkflowEventsMutation) AddedEdges() []string
- func (m *WorkflowEventsMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowEventsMutation) AddedFields() []string
- func (m *WorkflowEventsMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowEventsMutation) ClearEdge(name string) error
- func (m *WorkflowEventsMutation) ClearField(name string) error
- func (m *WorkflowEventsMutation) ClearSignature()
- func (m *WorkflowEventsMutation) ClearWfeventswait()
- func (m *WorkflowEventsMutation) ClearWorkflow()
- func (m *WorkflowEventsMutation) ClearWorkflowinstance()
- func (m *WorkflowEventsMutation) ClearedEdges() []string
- func (m *WorkflowEventsMutation) ClearedFields() []string
- func (m WorkflowEventsMutation) Client() *Client
- func (m *WorkflowEventsMutation) Correlations() (r []string, exists bool)
- func (m *WorkflowEventsMutation) Count() (r int, exists bool)
- func (m *WorkflowEventsMutation) EdgeCleared(name string) bool
- func (m *WorkflowEventsMutation) Events() (r []map[string]interface{}, exists bool)
- func (m *WorkflowEventsMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowEventsMutation) FieldCleared(name string) bool
- func (m *WorkflowEventsMutation) Fields() []string
- func (m *WorkflowEventsMutation) ID() (id int, exists bool)
- func (m *WorkflowEventsMutation) OldCorrelations(ctx context.Context) (v []string, err error)
- func (m *WorkflowEventsMutation) OldCount(ctx context.Context) (v int, err error)
- func (m *WorkflowEventsMutation) OldEvents(ctx context.Context) (v []map[string]interface{}, err error)
- func (m *WorkflowEventsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowEventsMutation) OldSignature(ctx context.Context) (v []byte, err error)
- func (m *WorkflowEventsMutation) Op() Op
- func (m *WorkflowEventsMutation) RemoveWfeventswaitIDs(ids ...int)
- func (m *WorkflowEventsMutation) RemovedEdges() []string
- func (m *WorkflowEventsMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowEventsMutation) RemovedWfeventswaitIDs() (ids []int)
- func (m *WorkflowEventsMutation) ResetCorrelations()
- func (m *WorkflowEventsMutation) ResetCount()
- func (m *WorkflowEventsMutation) ResetEdge(name string) error
- func (m *WorkflowEventsMutation) ResetEvents()
- func (m *WorkflowEventsMutation) ResetField(name string) error
- func (m *WorkflowEventsMutation) ResetSignature()
- func (m *WorkflowEventsMutation) ResetWfeventswait()
- func (m *WorkflowEventsMutation) ResetWorkflow()
- func (m *WorkflowEventsMutation) ResetWorkflowinstance()
- func (m *WorkflowEventsMutation) SetCorrelations(s []string)
- func (m *WorkflowEventsMutation) SetCount(i int)
- func (m *WorkflowEventsMutation) SetEvents(value []map[string]interface{})
- func (m *WorkflowEventsMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowEventsMutation) SetSignature(b []byte)
- func (m *WorkflowEventsMutation) SetWorkflowID(id uuid.UUID)
- func (m *WorkflowEventsMutation) SetWorkflowinstanceID(id int)
- func (m *WorkflowEventsMutation) Signature() (r []byte, exists bool)
- func (m *WorkflowEventsMutation) SignatureCleared() bool
- func (m WorkflowEventsMutation) Tx() (*Tx, error)
- func (m *WorkflowEventsMutation) Type() string
- func (m *WorkflowEventsMutation) WfeventswaitCleared() bool
- func (m *WorkflowEventsMutation) WfeventswaitIDs() (ids []int)
- func (m *WorkflowEventsMutation) Where(ps ...predicate.WorkflowEvents)
- func (m *WorkflowEventsMutation) WorkflowCleared() bool
- func (m *WorkflowEventsMutation) WorkflowID() (id uuid.UUID, exists bool)
- func (m *WorkflowEventsMutation) WorkflowIDs() (ids []uuid.UUID)
- func (m *WorkflowEventsMutation) WorkflowinstanceCleared() bool
- func (m *WorkflowEventsMutation) WorkflowinstanceID() (id int, exists bool)
- func (m *WorkflowEventsMutation) WorkflowinstanceIDs() (ids []int)
- type WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) All(ctx context.Context) ([]*WorkflowEvents, error)
- func (weq *WorkflowEventsQuery) AllX(ctx context.Context) []*WorkflowEvents
- func (weq *WorkflowEventsQuery) Clone() *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) Count(ctx context.Context) (int, error)
- func (weq *WorkflowEventsQuery) CountX(ctx context.Context) int
- func (weq *WorkflowEventsQuery) Exist(ctx context.Context) (bool, error)
- func (weq *WorkflowEventsQuery) ExistX(ctx context.Context) bool
- func (weq *WorkflowEventsQuery) First(ctx context.Context) (*WorkflowEvents, error)
- func (weq *WorkflowEventsQuery) FirstID(ctx context.Context) (id int, err error)
- func (weq *WorkflowEventsQuery) FirstIDX(ctx context.Context) int
- func (weq *WorkflowEventsQuery) FirstX(ctx context.Context) *WorkflowEvents
- func (weq *WorkflowEventsQuery) GroupBy(field string, fields ...string) *WorkflowEventsGroupBy
- func (weq *WorkflowEventsQuery) IDs(ctx context.Context) ([]int, error)
- func (weq *WorkflowEventsQuery) IDsX(ctx context.Context) []int
- func (weq *WorkflowEventsQuery) Limit(limit int) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) Offset(offset int) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) Only(ctx context.Context) (*WorkflowEvents, error)
- func (weq *WorkflowEventsQuery) OnlyID(ctx context.Context) (id int, err error)
- func (weq *WorkflowEventsQuery) OnlyIDX(ctx context.Context) int
- func (weq *WorkflowEventsQuery) OnlyX(ctx context.Context) *WorkflowEvents
- func (weq *WorkflowEventsQuery) Order(o ...OrderFunc) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) QueryWfeventswait() *WorkflowEventsWaitQuery
- func (weq *WorkflowEventsQuery) QueryWorkflow() *WorkflowQuery
- func (weq *WorkflowEventsQuery) QueryWorkflowinstance() *WorkflowInstanceQuery
- func (weq *WorkflowEventsQuery) Select(fields ...string) *WorkflowEventsSelect
- func (weq *WorkflowEventsQuery) Unique(unique bool) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) Where(ps ...predicate.WorkflowEvents) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) WithWfeventswait(opts ...func(*WorkflowEventsWaitQuery)) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowEventsQuery
- func (weq *WorkflowEventsQuery) WithWorkflowinstance(opts ...func(*WorkflowInstanceQuery)) *WorkflowEventsQuery
- type WorkflowEventsSelect
- func (wes *WorkflowEventsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (wes *WorkflowEventsSelect) BoolX(ctx context.Context) bool
- func (wes *WorkflowEventsSelect) Bools(ctx context.Context) ([]bool, error)
- func (wes *WorkflowEventsSelect) BoolsX(ctx context.Context) []bool
- func (wes *WorkflowEventsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (wes *WorkflowEventsSelect) Float64X(ctx context.Context) float64
- func (wes *WorkflowEventsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (wes *WorkflowEventsSelect) Float64sX(ctx context.Context) []float64
- func (wes *WorkflowEventsSelect) Int(ctx context.Context) (_ int, err error)
- func (wes *WorkflowEventsSelect) IntX(ctx context.Context) int
- func (wes *WorkflowEventsSelect) Ints(ctx context.Context) ([]int, error)
- func (wes *WorkflowEventsSelect) IntsX(ctx context.Context) []int
- func (wes *WorkflowEventsSelect) Scan(ctx context.Context, v interface{}) error
- func (wes *WorkflowEventsSelect) ScanX(ctx context.Context, v interface{})
- func (wes *WorkflowEventsSelect) String(ctx context.Context) (_ string, err error)
- func (wes *WorkflowEventsSelect) StringX(ctx context.Context) string
- func (wes *WorkflowEventsSelect) Strings(ctx context.Context) ([]string, error)
- func (wes *WorkflowEventsSelect) StringsX(ctx context.Context) []string
- type WorkflowEventsSlice
- type WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) AddCount(i int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) ClearSignature() *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) ClearWfeventswait() *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) ClearWorkflow() *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) ClearWorkflowinstance() *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) Exec(ctx context.Context) error
- func (weu *WorkflowEventsUpdate) ExecX(ctx context.Context)
- func (weu *WorkflowEventsUpdate) Mutation() *WorkflowEventsMutation
- func (weu *WorkflowEventsUpdate) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) Save(ctx context.Context) (int, error)
- func (weu *WorkflowEventsUpdate) SaveX(ctx context.Context) int
- func (weu *WorkflowEventsUpdate) SetCorrelations(s []string) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetCount(i int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetSignature(b []byte) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetWorkflow(w *Workflow) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) SetWorkflowinstanceID(id int) *WorkflowEventsUpdate
- func (weu *WorkflowEventsUpdate) Where(ps ...predicate.WorkflowEvents) *WorkflowEventsUpdate
- type WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) AddCount(i int) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) ClearSignature() *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) ClearWfeventswait() *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) ClearWorkflow() *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) ClearWorkflowinstance() *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) Exec(ctx context.Context) error
- func (weuo *WorkflowEventsUpdateOne) ExecX(ctx context.Context)
- func (weuo *WorkflowEventsUpdateOne) Mutation() *WorkflowEventsMutation
- func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) Save(ctx context.Context) (*WorkflowEvents, error)
- func (weuo *WorkflowEventsUpdateOne) SaveX(ctx context.Context) *WorkflowEvents
- func (weuo *WorkflowEventsUpdateOne) Select(field string, fields ...string) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetCorrelations(s []string) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetCount(i int) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetSignature(b []byte) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetWorkflow(w *Workflow) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdateOne
- func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstanceID(id int) *WorkflowEventsUpdateOne
- type WorkflowEventsWait
- type WorkflowEventsWaitClient
- func (c *WorkflowEventsWaitClient) Create() *WorkflowEventsWaitCreate
- func (c *WorkflowEventsWaitClient) CreateBulk(builders ...*WorkflowEventsWaitCreate) *WorkflowEventsWaitCreateBulk
- func (c *WorkflowEventsWaitClient) Delete() *WorkflowEventsWaitDelete
- func (c *WorkflowEventsWaitClient) DeleteOne(wew *WorkflowEventsWait) *WorkflowEventsWaitDeleteOne
- func (c *WorkflowEventsWaitClient) DeleteOneID(id int) *WorkflowEventsWaitDeleteOne
- func (c *WorkflowEventsWaitClient) Get(ctx context.Context, id int) (*WorkflowEventsWait, error)
- func (c *WorkflowEventsWaitClient) GetX(ctx context.Context, id int) *WorkflowEventsWait
- func (c *WorkflowEventsWaitClient) Hooks() []Hook
- func (c *WorkflowEventsWaitClient) Query() *WorkflowEventsWaitQuery
- func (c *WorkflowEventsWaitClient) QueryWorkflowevent(wew *WorkflowEventsWait) *WorkflowEventsQuery
- func (c *WorkflowEventsWaitClient) Update() *WorkflowEventsWaitUpdate
- func (c *WorkflowEventsWaitClient) UpdateOne(wew *WorkflowEventsWait) *WorkflowEventsWaitUpdateOne
- func (c *WorkflowEventsWaitClient) UpdateOneID(id int) *WorkflowEventsWaitUpdateOne
- func (c *WorkflowEventsWaitClient) Use(hooks ...Hook)
- type WorkflowEventsWaitCreate
- func (wewc *WorkflowEventsWaitCreate) Exec(ctx context.Context) error
- func (wewc *WorkflowEventsWaitCreate) ExecX(ctx context.Context)
- func (wewc *WorkflowEventsWaitCreate) Mutation() *WorkflowEventsWaitMutation
- func (wewc *WorkflowEventsWaitCreate) Save(ctx context.Context) (*WorkflowEventsWait, error)
- func (wewc *WorkflowEventsWaitCreate) SaveX(ctx context.Context) *WorkflowEventsWait
- func (wewc *WorkflowEventsWaitCreate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitCreate
- func (wewc *WorkflowEventsWaitCreate) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitCreate
- func (wewc *WorkflowEventsWaitCreate) SetWorkfloweventID(id int) *WorkflowEventsWaitCreate
- type WorkflowEventsWaitCreateBulk
- func (wewcb *WorkflowEventsWaitCreateBulk) Exec(ctx context.Context) error
- func (wewcb *WorkflowEventsWaitCreateBulk) ExecX(ctx context.Context)
- func (wewcb *WorkflowEventsWaitCreateBulk) Save(ctx context.Context) ([]*WorkflowEventsWait, error)
- func (wewcb *WorkflowEventsWaitCreateBulk) SaveX(ctx context.Context) []*WorkflowEventsWait
- type WorkflowEventsWaitDelete
- type WorkflowEventsWaitDeleteOne
- type WorkflowEventsWaitEdges
- type WorkflowEventsWaitGroupBy
- func (wewgb *WorkflowEventsWaitGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowEventsWaitGroupBy
- func (wewgb *WorkflowEventsWaitGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (wewgb *WorkflowEventsWaitGroupBy) BoolX(ctx context.Context) bool
- func (wewgb *WorkflowEventsWaitGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (wewgb *WorkflowEventsWaitGroupBy) BoolsX(ctx context.Context) []bool
- func (wewgb *WorkflowEventsWaitGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (wewgb *WorkflowEventsWaitGroupBy) Float64X(ctx context.Context) float64
- func (wewgb *WorkflowEventsWaitGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (wewgb *WorkflowEventsWaitGroupBy) Float64sX(ctx context.Context) []float64
- func (wewgb *WorkflowEventsWaitGroupBy) Int(ctx context.Context) (_ int, err error)
- func (wewgb *WorkflowEventsWaitGroupBy) IntX(ctx context.Context) int
- func (wewgb *WorkflowEventsWaitGroupBy) Ints(ctx context.Context) ([]int, error)
- func (wewgb *WorkflowEventsWaitGroupBy) IntsX(ctx context.Context) []int
- func (wewgb *WorkflowEventsWaitGroupBy) Scan(ctx context.Context, v interface{}) error
- func (wewgb *WorkflowEventsWaitGroupBy) ScanX(ctx context.Context, v interface{})
- func (wewgb *WorkflowEventsWaitGroupBy) String(ctx context.Context) (_ string, err error)
- func (wewgb *WorkflowEventsWaitGroupBy) StringX(ctx context.Context) string
- func (wewgb *WorkflowEventsWaitGroupBy) Strings(ctx context.Context) ([]string, error)
- func (wewgb *WorkflowEventsWaitGroupBy) StringsX(ctx context.Context) []string
- type WorkflowEventsWaitMutation
- func (m *WorkflowEventsWaitMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowEventsWaitMutation) AddedEdges() []string
- func (m *WorkflowEventsWaitMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowEventsWaitMutation) AddedFields() []string
- func (m *WorkflowEventsWaitMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowEventsWaitMutation) ClearEdge(name string) error
- func (m *WorkflowEventsWaitMutation) ClearField(name string) error
- func (m *WorkflowEventsWaitMutation) ClearWorkflowevent()
- func (m *WorkflowEventsWaitMutation) ClearedEdges() []string
- func (m *WorkflowEventsWaitMutation) ClearedFields() []string
- func (m WorkflowEventsWaitMutation) Client() *Client
- func (m *WorkflowEventsWaitMutation) EdgeCleared(name string) bool
- func (m *WorkflowEventsWaitMutation) Events() (r map[string]interface{}, exists bool)
- func (m *WorkflowEventsWaitMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowEventsWaitMutation) FieldCleared(name string) bool
- func (m *WorkflowEventsWaitMutation) Fields() []string
- func (m *WorkflowEventsWaitMutation) ID() (id int, exists bool)
- func (m *WorkflowEventsWaitMutation) OldEvents(ctx context.Context) (v map[string]interface{}, err error)
- func (m *WorkflowEventsWaitMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowEventsWaitMutation) Op() Op
- func (m *WorkflowEventsWaitMutation) RemovedEdges() []string
- func (m *WorkflowEventsWaitMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowEventsWaitMutation) ResetEdge(name string) error
- func (m *WorkflowEventsWaitMutation) ResetEvents()
- func (m *WorkflowEventsWaitMutation) ResetField(name string) error
- func (m *WorkflowEventsWaitMutation) ResetWorkflowevent()
- func (m *WorkflowEventsWaitMutation) SetEvents(value map[string]interface{})
- func (m *WorkflowEventsWaitMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowEventsWaitMutation) SetWorkfloweventID(id int)
- func (m WorkflowEventsWaitMutation) Tx() (*Tx, error)
- func (m *WorkflowEventsWaitMutation) Type() string
- func (m *WorkflowEventsWaitMutation) Where(ps ...predicate.WorkflowEventsWait)
- func (m *WorkflowEventsWaitMutation) WorkfloweventCleared() bool
- func (m *WorkflowEventsWaitMutation) WorkfloweventID() (id int, exists bool)
- func (m *WorkflowEventsWaitMutation) WorkfloweventIDs() (ids []int)
- type WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) All(ctx context.Context) ([]*WorkflowEventsWait, error)
- func (wewq *WorkflowEventsWaitQuery) AllX(ctx context.Context) []*WorkflowEventsWait
- func (wewq *WorkflowEventsWaitQuery) Clone() *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) Count(ctx context.Context) (int, error)
- func (wewq *WorkflowEventsWaitQuery) CountX(ctx context.Context) int
- func (wewq *WorkflowEventsWaitQuery) Exist(ctx context.Context) (bool, error)
- func (wewq *WorkflowEventsWaitQuery) ExistX(ctx context.Context) bool
- func (wewq *WorkflowEventsWaitQuery) First(ctx context.Context) (*WorkflowEventsWait, error)
- func (wewq *WorkflowEventsWaitQuery) FirstID(ctx context.Context) (id int, err error)
- func (wewq *WorkflowEventsWaitQuery) FirstIDX(ctx context.Context) int
- func (wewq *WorkflowEventsWaitQuery) FirstX(ctx context.Context) *WorkflowEventsWait
- func (wewq *WorkflowEventsWaitQuery) GroupBy(field string, fields ...string) *WorkflowEventsWaitGroupBy
- func (wewq *WorkflowEventsWaitQuery) IDs(ctx context.Context) ([]int, error)
- func (wewq *WorkflowEventsWaitQuery) IDsX(ctx context.Context) []int
- func (wewq *WorkflowEventsWaitQuery) Limit(limit int) *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) Offset(offset int) *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) Only(ctx context.Context) (*WorkflowEventsWait, error)
- func (wewq *WorkflowEventsWaitQuery) OnlyID(ctx context.Context) (id int, err error)
- func (wewq *WorkflowEventsWaitQuery) OnlyIDX(ctx context.Context) int
- func (wewq *WorkflowEventsWaitQuery) OnlyX(ctx context.Context) *WorkflowEventsWait
- func (wewq *WorkflowEventsWaitQuery) Order(o ...OrderFunc) *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) QueryWorkflowevent() *WorkflowEventsQuery
- func (wewq *WorkflowEventsWaitQuery) Select(fields ...string) *WorkflowEventsWaitSelect
- func (wewq *WorkflowEventsWaitQuery) Unique(unique bool) *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) Where(ps ...predicate.WorkflowEventsWait) *WorkflowEventsWaitQuery
- func (wewq *WorkflowEventsWaitQuery) WithWorkflowevent(opts ...func(*WorkflowEventsQuery)) *WorkflowEventsWaitQuery
- type WorkflowEventsWaitSelect
- func (wews *WorkflowEventsWaitSelect) Bool(ctx context.Context) (_ bool, err error)
- func (wews *WorkflowEventsWaitSelect) BoolX(ctx context.Context) bool
- func (wews *WorkflowEventsWaitSelect) Bools(ctx context.Context) ([]bool, error)
- func (wews *WorkflowEventsWaitSelect) BoolsX(ctx context.Context) []bool
- func (wews *WorkflowEventsWaitSelect) Float64(ctx context.Context) (_ float64, err error)
- func (wews *WorkflowEventsWaitSelect) Float64X(ctx context.Context) float64
- func (wews *WorkflowEventsWaitSelect) Float64s(ctx context.Context) ([]float64, error)
- func (wews *WorkflowEventsWaitSelect) Float64sX(ctx context.Context) []float64
- func (wews *WorkflowEventsWaitSelect) Int(ctx context.Context) (_ int, err error)
- func (wews *WorkflowEventsWaitSelect) IntX(ctx context.Context) int
- func (wews *WorkflowEventsWaitSelect) Ints(ctx context.Context) ([]int, error)
- func (wews *WorkflowEventsWaitSelect) IntsX(ctx context.Context) []int
- func (wews *WorkflowEventsWaitSelect) Scan(ctx context.Context, v interface{}) error
- func (wews *WorkflowEventsWaitSelect) ScanX(ctx context.Context, v interface{})
- func (wews *WorkflowEventsWaitSelect) String(ctx context.Context) (_ string, err error)
- func (wews *WorkflowEventsWaitSelect) StringX(ctx context.Context) string
- func (wews *WorkflowEventsWaitSelect) Strings(ctx context.Context) ([]string, error)
- func (wews *WorkflowEventsWaitSelect) StringsX(ctx context.Context) []string
- type WorkflowEventsWaitUpdate
- func (wewu *WorkflowEventsWaitUpdate) ClearWorkflowevent() *WorkflowEventsWaitUpdate
- func (wewu *WorkflowEventsWaitUpdate) Exec(ctx context.Context) error
- func (wewu *WorkflowEventsWaitUpdate) ExecX(ctx context.Context)
- func (wewu *WorkflowEventsWaitUpdate) Mutation() *WorkflowEventsWaitMutation
- func (wewu *WorkflowEventsWaitUpdate) Save(ctx context.Context) (int, error)
- func (wewu *WorkflowEventsWaitUpdate) SaveX(ctx context.Context) int
- func (wewu *WorkflowEventsWaitUpdate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdate
- func (wewu *WorkflowEventsWaitUpdate) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitUpdate
- func (wewu *WorkflowEventsWaitUpdate) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdate
- func (wewu *WorkflowEventsWaitUpdate) Where(ps ...predicate.WorkflowEventsWait) *WorkflowEventsWaitUpdate
- type WorkflowEventsWaitUpdateOne
- func (wewuo *WorkflowEventsWaitUpdateOne) ClearWorkflowevent() *WorkflowEventsWaitUpdateOne
- func (wewuo *WorkflowEventsWaitUpdateOne) Exec(ctx context.Context) error
- func (wewuo *WorkflowEventsWaitUpdateOne) ExecX(ctx context.Context)
- func (wewuo *WorkflowEventsWaitUpdateOne) Mutation() *WorkflowEventsWaitMutation
- func (wewuo *WorkflowEventsWaitUpdateOne) Save(ctx context.Context) (*WorkflowEventsWait, error)
- func (wewuo *WorkflowEventsWaitUpdateOne) SaveX(ctx context.Context) *WorkflowEventsWait
- func (wewuo *WorkflowEventsWaitUpdateOne) Select(field string, fields ...string) *WorkflowEventsWaitUpdateOne
- func (wewuo *WorkflowEventsWaitUpdateOne) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdateOne
- func (wewuo *WorkflowEventsWaitUpdateOne) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitUpdateOne
- func (wewuo *WorkflowEventsWaitUpdateOne) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdateOne
- type WorkflowEventsWaits
- type WorkflowGroupBy
- func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy
- func (wgb *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (wgb *WorkflowGroupBy) BoolX(ctx context.Context) bool
- func (wgb *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (wgb *WorkflowGroupBy) BoolsX(ctx context.Context) []bool
- func (wgb *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (wgb *WorkflowGroupBy) Float64X(ctx context.Context) float64
- func (wgb *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (wgb *WorkflowGroupBy) Float64sX(ctx context.Context) []float64
- func (wgb *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)
- func (wgb *WorkflowGroupBy) IntX(ctx context.Context) int
- func (wgb *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)
- func (wgb *WorkflowGroupBy) IntsX(ctx context.Context) []int
- func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v interface{}) error
- func (wgb *WorkflowGroupBy) ScanX(ctx context.Context, v interface{})
- func (wgb *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)
- func (wgb *WorkflowGroupBy) StringX(ctx context.Context) string
- func (wgb *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)
- func (wgb *WorkflowGroupBy) StringsX(ctx context.Context) []string
- type WorkflowInstance
- type WorkflowInstanceClient
- func (c *WorkflowInstanceClient) Create() *WorkflowInstanceCreate
- func (c *WorkflowInstanceClient) CreateBulk(builders ...*WorkflowInstanceCreate) *WorkflowInstanceCreateBulk
- func (c *WorkflowInstanceClient) Delete() *WorkflowInstanceDelete
- func (c *WorkflowInstanceClient) DeleteOne(wi *WorkflowInstance) *WorkflowInstanceDeleteOne
- func (c *WorkflowInstanceClient) DeleteOneID(id int) *WorkflowInstanceDeleteOne
- func (c *WorkflowInstanceClient) Get(ctx context.Context, id int) (*WorkflowInstance, error)
- func (c *WorkflowInstanceClient) GetX(ctx context.Context, id int) *WorkflowInstance
- func (c *WorkflowInstanceClient) Hooks() []Hook
- func (c *WorkflowInstanceClient) Query() *WorkflowInstanceQuery
- func (c *WorkflowInstanceClient) QueryInstance(wi *WorkflowInstance) *WorkflowEventsQuery
- func (c *WorkflowInstanceClient) QueryWorkflow(wi *WorkflowInstance) *WorkflowQuery
- func (c *WorkflowInstanceClient) Update() *WorkflowInstanceUpdate
- func (c *WorkflowInstanceClient) UpdateOne(wi *WorkflowInstance) *WorkflowInstanceUpdateOne
- func (c *WorkflowInstanceClient) UpdateOneID(id int) *WorkflowInstanceUpdateOne
- func (c *WorkflowInstanceClient) Use(hooks ...Hook)
- type WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) AddInstanceIDs(ids ...int) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) Exec(ctx context.Context) error
- func (wic *WorkflowInstanceCreate) ExecX(ctx context.Context)
- func (wic *WorkflowInstanceCreate) Mutation() *WorkflowInstanceMutation
- func (wic *WorkflowInstanceCreate) Save(ctx context.Context) (*WorkflowInstance, error)
- func (wic *WorkflowInstanceCreate) SaveX(ctx context.Context) *WorkflowInstance
- func (wic *WorkflowInstanceCreate) SetAttempts(i int) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetBeginTime(t time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetController(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetDeadline(t time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetEndTime(t time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetErrorCode(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetErrorMessage(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetFlow(s []string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetInput(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetInstanceID(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetInvokedBy(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetMemory(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableAttempts(i *int) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableController(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableDeadline(t *time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableEndTime(t *time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableErrorCode(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableErrorMessage(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableMemory(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableOutput(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetNillableStateData(s *string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetOutput(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetRevision(i int) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetStateBeginTime(t time.Time) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetStateData(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetStatus(s string) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetWorkflow(w *Workflow) *WorkflowInstanceCreate
- func (wic *WorkflowInstanceCreate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceCreate
- type WorkflowInstanceCreateBulk
- func (wicb *WorkflowInstanceCreateBulk) Exec(ctx context.Context) error
- func (wicb *WorkflowInstanceCreateBulk) ExecX(ctx context.Context)
- func (wicb *WorkflowInstanceCreateBulk) Save(ctx context.Context) ([]*WorkflowInstance, error)
- func (wicb *WorkflowInstanceCreateBulk) SaveX(ctx context.Context) []*WorkflowInstance
- type WorkflowInstanceDelete
- type WorkflowInstanceDeleteOne
- type WorkflowInstanceEdges
- type WorkflowInstanceGroupBy
- func (wigb *WorkflowInstanceGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowInstanceGroupBy
- func (wigb *WorkflowInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (wigb *WorkflowInstanceGroupBy) BoolX(ctx context.Context) bool
- func (wigb *WorkflowInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (wigb *WorkflowInstanceGroupBy) BoolsX(ctx context.Context) []bool
- func (wigb *WorkflowInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (wigb *WorkflowInstanceGroupBy) Float64X(ctx context.Context) float64
- func (wigb *WorkflowInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (wigb *WorkflowInstanceGroupBy) Float64sX(ctx context.Context) []float64
- func (wigb *WorkflowInstanceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (wigb *WorkflowInstanceGroupBy) IntX(ctx context.Context) int
- func (wigb *WorkflowInstanceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (wigb *WorkflowInstanceGroupBy) IntsX(ctx context.Context) []int
- func (wigb *WorkflowInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (wigb *WorkflowInstanceGroupBy) ScanX(ctx context.Context, v interface{})
- func (wigb *WorkflowInstanceGroupBy) String(ctx context.Context) (_ string, err error)
- func (wigb *WorkflowInstanceGroupBy) StringX(ctx context.Context) string
- func (wigb *WorkflowInstanceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (wigb *WorkflowInstanceGroupBy) StringsX(ctx context.Context) []string
- type WorkflowInstanceMutation
- func (m *WorkflowInstanceMutation) AddAttempts(i int)
- func (m *WorkflowInstanceMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowInstanceMutation) AddInstanceIDs(ids ...int)
- func (m *WorkflowInstanceMutation) AddRevision(i int)
- func (m *WorkflowInstanceMutation) AddedAttempts() (r int, exists bool)
- func (m *WorkflowInstanceMutation) AddedEdges() []string
- func (m *WorkflowInstanceMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowInstanceMutation) AddedFields() []string
- func (m *WorkflowInstanceMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowInstanceMutation) AddedRevision() (r int, exists bool)
- func (m *WorkflowInstanceMutation) Attempts() (r int, exists bool)
- func (m *WorkflowInstanceMutation) AttemptsCleared() bool
- func (m *WorkflowInstanceMutation) BeginTime() (r time.Time, exists bool)
- func (m *WorkflowInstanceMutation) ClearAttempts()
- func (m *WorkflowInstanceMutation) ClearController()
- func (m *WorkflowInstanceMutation) ClearDeadline()
- func (m *WorkflowInstanceMutation) ClearEdge(name string) error
- func (m *WorkflowInstanceMutation) ClearEndTime()
- func (m *WorkflowInstanceMutation) ClearErrorCode()
- func (m *WorkflowInstanceMutation) ClearErrorMessage()
- func (m *WorkflowInstanceMutation) ClearField(name string) error
- func (m *WorkflowInstanceMutation) ClearFlow()
- func (m *WorkflowInstanceMutation) ClearInstance()
- func (m *WorkflowInstanceMutation) ClearMemory()
- func (m *WorkflowInstanceMutation) ClearOutput()
- func (m *WorkflowInstanceMutation) ClearStateBeginTime()
- func (m *WorkflowInstanceMutation) ClearStateData()
- func (m *WorkflowInstanceMutation) ClearWorkflow()
- func (m *WorkflowInstanceMutation) ClearedEdges() []string
- func (m *WorkflowInstanceMutation) ClearedFields() []string
- func (m WorkflowInstanceMutation) Client() *Client
- func (m *WorkflowInstanceMutation) Controller() (r string, exists bool)
- func (m *WorkflowInstanceMutation) ControllerCleared() bool
- func (m *WorkflowInstanceMutation) Deadline() (r time.Time, exists bool)
- func (m *WorkflowInstanceMutation) DeadlineCleared() bool
- func (m *WorkflowInstanceMutation) EdgeCleared(name string) bool
- func (m *WorkflowInstanceMutation) EndTime() (r time.Time, exists bool)
- func (m *WorkflowInstanceMutation) EndTimeCleared() bool
- func (m *WorkflowInstanceMutation) ErrorCode() (r string, exists bool)
- func (m *WorkflowInstanceMutation) ErrorCodeCleared() bool
- func (m *WorkflowInstanceMutation) ErrorMessage() (r string, exists bool)
- func (m *WorkflowInstanceMutation) ErrorMessageCleared() bool
- func (m *WorkflowInstanceMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowInstanceMutation) FieldCleared(name string) bool
- func (m *WorkflowInstanceMutation) Fields() []string
- func (m *WorkflowInstanceMutation) Flow() (r []string, exists bool)
- func (m *WorkflowInstanceMutation) FlowCleared() bool
- func (m *WorkflowInstanceMutation) ID() (id int, exists bool)
- func (m *WorkflowInstanceMutation) Input() (r string, exists bool)
- func (m *WorkflowInstanceMutation) InstanceCleared() bool
- func (m *WorkflowInstanceMutation) InstanceID() (r string, exists bool)
- func (m *WorkflowInstanceMutation) InstanceIDs() (ids []int)
- func (m *WorkflowInstanceMutation) InvokedBy() (r string, exists bool)
- func (m *WorkflowInstanceMutation) Memory() (r string, exists bool)
- func (m *WorkflowInstanceMutation) MemoryCleared() bool
- func (m *WorkflowInstanceMutation) OldAttempts(ctx context.Context) (v int, err error)
- func (m *WorkflowInstanceMutation) OldBeginTime(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowInstanceMutation) OldController(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldDeadline(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowInstanceMutation) OldEndTime(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowInstanceMutation) OldErrorCode(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldErrorMessage(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowInstanceMutation) OldFlow(ctx context.Context) (v []string, err error)
- func (m *WorkflowInstanceMutation) OldInput(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldInstanceID(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldInvokedBy(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldMemory(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldOutput(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldRevision(ctx context.Context) (v int, err error)
- func (m *WorkflowInstanceMutation) OldStateBeginTime(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowInstanceMutation) OldStateData(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) OldStatus(ctx context.Context) (v string, err error)
- func (m *WorkflowInstanceMutation) Op() Op
- func (m *WorkflowInstanceMutation) Output() (r string, exists bool)
- func (m *WorkflowInstanceMutation) OutputCleared() bool
- func (m *WorkflowInstanceMutation) RemoveInstanceIDs(ids ...int)
- func (m *WorkflowInstanceMutation) RemovedEdges() []string
- func (m *WorkflowInstanceMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowInstanceMutation) RemovedInstanceIDs() (ids []int)
- func (m *WorkflowInstanceMutation) ResetAttempts()
- func (m *WorkflowInstanceMutation) ResetBeginTime()
- func (m *WorkflowInstanceMutation) ResetController()
- func (m *WorkflowInstanceMutation) ResetDeadline()
- func (m *WorkflowInstanceMutation) ResetEdge(name string) error
- func (m *WorkflowInstanceMutation) ResetEndTime()
- func (m *WorkflowInstanceMutation) ResetErrorCode()
- func (m *WorkflowInstanceMutation) ResetErrorMessage()
- func (m *WorkflowInstanceMutation) ResetField(name string) error
- func (m *WorkflowInstanceMutation) ResetFlow()
- func (m *WorkflowInstanceMutation) ResetInput()
- func (m *WorkflowInstanceMutation) ResetInstance()
- func (m *WorkflowInstanceMutation) ResetInstanceID()
- func (m *WorkflowInstanceMutation) ResetInvokedBy()
- func (m *WorkflowInstanceMutation) ResetMemory()
- func (m *WorkflowInstanceMutation) ResetOutput()
- func (m *WorkflowInstanceMutation) ResetRevision()
- func (m *WorkflowInstanceMutation) ResetStateBeginTime()
- func (m *WorkflowInstanceMutation) ResetStateData()
- func (m *WorkflowInstanceMutation) ResetStatus()
- func (m *WorkflowInstanceMutation) ResetWorkflow()
- func (m *WorkflowInstanceMutation) Revision() (r int, exists bool)
- func (m *WorkflowInstanceMutation) SetAttempts(i int)
- func (m *WorkflowInstanceMutation) SetBeginTime(t time.Time)
- func (m *WorkflowInstanceMutation) SetController(s string)
- func (m *WorkflowInstanceMutation) SetDeadline(t time.Time)
- func (m *WorkflowInstanceMutation) SetEndTime(t time.Time)
- func (m *WorkflowInstanceMutation) SetErrorCode(s string)
- func (m *WorkflowInstanceMutation) SetErrorMessage(s string)
- func (m *WorkflowInstanceMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowInstanceMutation) SetFlow(s []string)
- func (m *WorkflowInstanceMutation) SetInput(s string)
- func (m *WorkflowInstanceMutation) SetInstanceID(s string)
- func (m *WorkflowInstanceMutation) SetInvokedBy(s string)
- func (m *WorkflowInstanceMutation) SetMemory(s string)
- func (m *WorkflowInstanceMutation) SetOutput(s string)
- func (m *WorkflowInstanceMutation) SetRevision(i int)
- func (m *WorkflowInstanceMutation) SetStateBeginTime(t time.Time)
- func (m *WorkflowInstanceMutation) SetStateData(s string)
- func (m *WorkflowInstanceMutation) SetStatus(s string)
- func (m *WorkflowInstanceMutation) SetWorkflowID(id uuid.UUID)
- func (m *WorkflowInstanceMutation) StateBeginTime() (r time.Time, exists bool)
- func (m *WorkflowInstanceMutation) StateBeginTimeCleared() bool
- func (m *WorkflowInstanceMutation) StateData() (r string, exists bool)
- func (m *WorkflowInstanceMutation) StateDataCleared() bool
- func (m *WorkflowInstanceMutation) Status() (r string, exists bool)
- func (m WorkflowInstanceMutation) Tx() (*Tx, error)
- func (m *WorkflowInstanceMutation) Type() string
- func (m *WorkflowInstanceMutation) Where(ps ...predicate.WorkflowInstance)
- func (m *WorkflowInstanceMutation) WorkflowCleared() bool
- func (m *WorkflowInstanceMutation) WorkflowID() (id uuid.UUID, exists bool)
- func (m *WorkflowInstanceMutation) WorkflowIDs() (ids []uuid.UUID)
- type WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) All(ctx context.Context) ([]*WorkflowInstance, error)
- func (wiq *WorkflowInstanceQuery) AllX(ctx context.Context) []*WorkflowInstance
- func (wiq *WorkflowInstanceQuery) Clone() *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) Count(ctx context.Context) (int, error)
- func (wiq *WorkflowInstanceQuery) CountX(ctx context.Context) int
- func (wiq *WorkflowInstanceQuery) Exist(ctx context.Context) (bool, error)
- func (wiq *WorkflowInstanceQuery) ExistX(ctx context.Context) bool
- func (wiq *WorkflowInstanceQuery) First(ctx context.Context) (*WorkflowInstance, error)
- func (wiq *WorkflowInstanceQuery) FirstID(ctx context.Context) (id int, err error)
- func (wiq *WorkflowInstanceQuery) FirstIDX(ctx context.Context) int
- func (wiq *WorkflowInstanceQuery) FirstX(ctx context.Context) *WorkflowInstance
- func (wiq *WorkflowInstanceQuery) GroupBy(field string, fields ...string) *WorkflowInstanceGroupBy
- func (wiq *WorkflowInstanceQuery) IDs(ctx context.Context) ([]int, error)
- func (wiq *WorkflowInstanceQuery) IDsX(ctx context.Context) []int
- func (wiq *WorkflowInstanceQuery) Limit(limit int) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) Offset(offset int) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) Only(ctx context.Context) (*WorkflowInstance, error)
- func (wiq *WorkflowInstanceQuery) OnlyID(ctx context.Context) (id int, err error)
- func (wiq *WorkflowInstanceQuery) OnlyIDX(ctx context.Context) int
- func (wiq *WorkflowInstanceQuery) OnlyX(ctx context.Context) *WorkflowInstance
- func (wiq *WorkflowInstanceQuery) Order(o ...OrderFunc) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) QueryInstance() *WorkflowEventsQuery
- func (wiq *WorkflowInstanceQuery) QueryWorkflow() *WorkflowQuery
- func (wiq *WorkflowInstanceQuery) Select(fields ...string) *WorkflowInstanceSelect
- func (wiq *WorkflowInstanceQuery) Unique(unique bool) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) Where(ps ...predicate.WorkflowInstance) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) WithInstance(opts ...func(*WorkflowEventsQuery)) *WorkflowInstanceQuery
- func (wiq *WorkflowInstanceQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowInstanceQuery
- type WorkflowInstanceSelect
- func (wis *WorkflowInstanceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (wis *WorkflowInstanceSelect) BoolX(ctx context.Context) bool
- func (wis *WorkflowInstanceSelect) Bools(ctx context.Context) ([]bool, error)
- func (wis *WorkflowInstanceSelect) BoolsX(ctx context.Context) []bool
- func (wis *WorkflowInstanceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (wis *WorkflowInstanceSelect) Float64X(ctx context.Context) float64
- func (wis *WorkflowInstanceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (wis *WorkflowInstanceSelect) Float64sX(ctx context.Context) []float64
- func (wis *WorkflowInstanceSelect) Int(ctx context.Context) (_ int, err error)
- func (wis *WorkflowInstanceSelect) IntX(ctx context.Context) int
- func (wis *WorkflowInstanceSelect) Ints(ctx context.Context) ([]int, error)
- func (wis *WorkflowInstanceSelect) IntsX(ctx context.Context) []int
- func (wis *WorkflowInstanceSelect) Scan(ctx context.Context, v interface{}) error
- func (wis *WorkflowInstanceSelect) ScanX(ctx context.Context, v interface{})
- func (wis *WorkflowInstanceSelect) String(ctx context.Context) (_ string, err error)
- func (wis *WorkflowInstanceSelect) StringX(ctx context.Context) string
- func (wis *WorkflowInstanceSelect) Strings(ctx context.Context) ([]string, error)
- func (wis *WorkflowInstanceSelect) StringsX(ctx context.Context) []string
- type WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) AddAttempts(i int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) AddRevision(i int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearAttempts() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearController() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearDeadline() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearEndTime() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearErrorCode() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearErrorMessage() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearFlow() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearInstance() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearMemory() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearOutput() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearStateBeginTime() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearStateData() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) ClearWorkflow() *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) Exec(ctx context.Context) error
- func (wiu *WorkflowInstanceUpdate) ExecX(ctx context.Context)
- func (wiu *WorkflowInstanceUpdate) Mutation() *WorkflowInstanceMutation
- func (wiu *WorkflowInstanceUpdate) RemoveInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) Save(ctx context.Context) (int, error)
- func (wiu *WorkflowInstanceUpdate) SaveX(ctx context.Context) int
- func (wiu *WorkflowInstanceUpdate) SetAttempts(i int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetBeginTime(t time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetController(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetDeadline(t time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetEndTime(t time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetErrorCode(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetErrorMessage(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetFlow(s []string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetInput(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetInstanceID(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetInvokedBy(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetMemory(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableAttempts(i *int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableController(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableErrorCode(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableMemory(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableOutput(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetNillableStateData(s *string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetOutput(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetRevision(i int) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetStateData(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetStatus(s string) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetWorkflow(w *Workflow) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceUpdate
- func (wiu *WorkflowInstanceUpdate) Where(ps ...predicate.WorkflowInstance) *WorkflowInstanceUpdate
- type WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) AddAttempts(i int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) AddRevision(i int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearAttempts() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearController() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearDeadline() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearEndTime() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearErrorCode() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearErrorMessage() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearFlow() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearInstance() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearMemory() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearOutput() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearStateBeginTime() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearStateData() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) ClearWorkflow() *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) Exec(ctx context.Context) error
- func (wiuo *WorkflowInstanceUpdateOne) ExecX(ctx context.Context)
- func (wiuo *WorkflowInstanceUpdateOne) Mutation() *WorkflowInstanceMutation
- func (wiuo *WorkflowInstanceUpdateOne) RemoveInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) Save(ctx context.Context) (*WorkflowInstance, error)
- func (wiuo *WorkflowInstanceUpdateOne) SaveX(ctx context.Context) *WorkflowInstance
- func (wiuo *WorkflowInstanceUpdateOne) Select(field string, fields ...string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetAttempts(i int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetBeginTime(t time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetController(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetDeadline(t time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetEndTime(t time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetErrorCode(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetErrorMessage(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetFlow(s []string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetInput(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetInstanceID(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetInvokedBy(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetMemory(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableAttempts(i *int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableController(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorCode(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableMemory(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableOutput(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateData(s *string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetOutput(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetRevision(i int) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetStateData(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetStatus(s string) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetWorkflow(w *Workflow) *WorkflowInstanceUpdateOne
- func (wiuo *WorkflowInstanceUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowInstanceUpdateOne
- type WorkflowInstances
- type WorkflowMutation
- func (m *WorkflowMutation) Active() (r bool, exists bool)
- func (m *WorkflowMutation) AddField(name string, value ent.Value) error
- func (m *WorkflowMutation) AddInstanceIDs(ids ...int)
- func (m *WorkflowMutation) AddRevision(i int)
- func (m *WorkflowMutation) AddWfeventIDs(ids ...int)
- func (m *WorkflowMutation) AddedEdges() []string
- func (m *WorkflowMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorkflowMutation) AddedFields() []string
- func (m *WorkflowMutation) AddedIDs(name string) []ent.Value
- func (m *WorkflowMutation) AddedRevision() (r int, exists bool)
- func (m *WorkflowMutation) ClearDescription()
- func (m *WorkflowMutation) ClearEdge(name string) error
- func (m *WorkflowMutation) ClearField(name string) error
- func (m *WorkflowMutation) ClearInstances()
- func (m *WorkflowMutation) ClearLogToEvents()
- func (m *WorkflowMutation) ClearNamespace()
- func (m *WorkflowMutation) ClearWfevents()
- func (m *WorkflowMutation) ClearedEdges() []string
- func (m *WorkflowMutation) ClearedFields() []string
- func (m WorkflowMutation) Client() *Client
- func (m *WorkflowMutation) Created() (r time.Time, exists bool)
- func (m *WorkflowMutation) Description() (r string, exists bool)
- func (m *WorkflowMutation) DescriptionCleared() bool
- func (m *WorkflowMutation) EdgeCleared(name string) bool
- func (m *WorkflowMutation) Field(name string) (ent.Value, bool)
- func (m *WorkflowMutation) FieldCleared(name string) bool
- func (m *WorkflowMutation) Fields() []string
- func (m *WorkflowMutation) ID() (id uuid.UUID, exists bool)
- func (m *WorkflowMutation) InstancesCleared() bool
- func (m *WorkflowMutation) InstancesIDs() (ids []int)
- func (m *WorkflowMutation) LogToEvents() (r string, exists bool)
- func (m *WorkflowMutation) LogToEventsCleared() bool
- func (m *WorkflowMutation) Name() (r string, exists bool)
- func (m *WorkflowMutation) NamespaceCleared() bool
- func (m *WorkflowMutation) NamespaceID() (id string, exists bool)
- func (m *WorkflowMutation) NamespaceIDs() (ids []string)
- func (m *WorkflowMutation) OldActive(ctx context.Context) (v bool, err error)
- func (m *WorkflowMutation) OldCreated(ctx context.Context) (v time.Time, err error)
- func (m *WorkflowMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorkflowMutation) OldLogToEvents(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)
- func (m *WorkflowMutation) OldRevision(ctx context.Context) (v int, err error)
- func (m *WorkflowMutation) OldWorkflow(ctx context.Context) (v []byte, err error)
- func (m *WorkflowMutation) Op() Op
- func (m *WorkflowMutation) RemoveInstanceIDs(ids ...int)
- func (m *WorkflowMutation) RemoveWfeventIDs(ids ...int)
- func (m *WorkflowMutation) RemovedEdges() []string
- func (m *WorkflowMutation) RemovedIDs(name string) []ent.Value
- func (m *WorkflowMutation) RemovedInstancesIDs() (ids []int)
- func (m *WorkflowMutation) RemovedWfeventsIDs() (ids []int)
- func (m *WorkflowMutation) ResetActive()
- func (m *WorkflowMutation) ResetCreated()
- func (m *WorkflowMutation) ResetDescription()
- func (m *WorkflowMutation) ResetEdge(name string) error
- func (m *WorkflowMutation) ResetField(name string) error
- func (m *WorkflowMutation) ResetInstances()
- func (m *WorkflowMutation) ResetLogToEvents()
- func (m *WorkflowMutation) ResetName()
- func (m *WorkflowMutation) ResetNamespace()
- func (m *WorkflowMutation) ResetRevision()
- func (m *WorkflowMutation) ResetWfevents()
- func (m *WorkflowMutation) ResetWorkflow()
- func (m *WorkflowMutation) Revision() (r int, exists bool)
- func (m *WorkflowMutation) SetActive(b bool)
- func (m *WorkflowMutation) SetCreated(t time.Time)
- func (m *WorkflowMutation) SetDescription(s string)
- func (m *WorkflowMutation) SetField(name string, value ent.Value) error
- func (m *WorkflowMutation) SetID(id uuid.UUID)
- func (m *WorkflowMutation) SetLogToEvents(s string)
- func (m *WorkflowMutation) SetName(s string)
- func (m *WorkflowMutation) SetNamespaceID(id string)
- func (m *WorkflowMutation) SetRevision(i int)
- func (m *WorkflowMutation) SetWorkflow(b []byte)
- func (m WorkflowMutation) Tx() (*Tx, error)
- func (m *WorkflowMutation) Type() string
- func (m *WorkflowMutation) WfeventsCleared() bool
- func (m *WorkflowMutation) WfeventsIDs() (ids []int)
- func (m *WorkflowMutation) Where(ps ...predicate.Workflow)
- func (m *WorkflowMutation) Workflow() (r []byte, exists bool)
- type WorkflowQuery
- func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)
- func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow
- func (wq *WorkflowQuery) Clone() *WorkflowQuery
- func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)
- func (wq *WorkflowQuery) CountX(ctx context.Context) int
- func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)
- func (wq *WorkflowQuery) ExistX(ctx context.Context) bool
- func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)
- func (wq *WorkflowQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow
- func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy
- func (wq *WorkflowQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (wq *WorkflowQuery) IDsX(ctx context.Context) []uuid.UUID
- func (wq *WorkflowQuery) Limit(limit int) *WorkflowQuery
- func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery
- func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)
- func (wq *WorkflowQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow
- func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery
- func (wq *WorkflowQuery) QueryInstances() *WorkflowInstanceQuery
- func (wq *WorkflowQuery) QueryNamespace() *NamespaceQuery
- func (wq *WorkflowQuery) QueryWfevents() *WorkflowEventsQuery
- func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect
- func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery
- func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery
- func (wq *WorkflowQuery) WithInstances(opts ...func(*WorkflowInstanceQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithNamespace(opts ...func(*NamespaceQuery)) *WorkflowQuery
- func (wq *WorkflowQuery) WithWfevents(opts ...func(*WorkflowEventsQuery)) *WorkflowQuery
- type WorkflowSelect
- func (ws *WorkflowSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ws *WorkflowSelect) BoolX(ctx context.Context) bool
- func (ws *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)
- func (ws *WorkflowSelect) BoolsX(ctx context.Context) []bool
- func (ws *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ws *WorkflowSelect) Float64X(ctx context.Context) float64
- func (ws *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ws *WorkflowSelect) Float64sX(ctx context.Context) []float64
- func (ws *WorkflowSelect) Int(ctx context.Context) (_ int, err error)
- func (ws *WorkflowSelect) IntX(ctx context.Context) int
- func (ws *WorkflowSelect) Ints(ctx context.Context) ([]int, error)
- func (ws *WorkflowSelect) IntsX(ctx context.Context) []int
- func (ws *WorkflowSelect) Scan(ctx context.Context, v interface{}) error
- func (ws *WorkflowSelect) ScanX(ctx context.Context, v interface{})
- func (ws *WorkflowSelect) String(ctx context.Context) (_ string, err error)
- func (ws *WorkflowSelect) StringX(ctx context.Context) string
- func (ws *WorkflowSelect) Strings(ctx context.Context) ([]string, error)
- func (ws *WorkflowSelect) StringsX(ctx context.Context) []string
- type WorkflowUpdate
- func (wu *WorkflowUpdate) AddInstanceIDs(ids ...int) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddInstances(w ...*WorkflowInstance) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddRevision(i int) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddWfeventIDs(ids ...int) *WorkflowUpdate
- func (wu *WorkflowUpdate) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearDescription() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearInstances() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearLogToEvents() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearNamespace() *WorkflowUpdate
- func (wu *WorkflowUpdate) ClearWfevents() *WorkflowUpdate
- func (wu *WorkflowUpdate) Exec(ctx context.Context) error
- func (wu *WorkflowUpdate) ExecX(ctx context.Context)
- func (wu *WorkflowUpdate) Mutation() *WorkflowMutation
- func (wu *WorkflowUpdate) RemoveInstanceIDs(ids ...int) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveWfeventIDs(ids ...int) *WorkflowUpdate
- func (wu *WorkflowUpdate) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdate
- func (wu *WorkflowUpdate) Save(ctx context.Context) (int, error)
- func (wu *WorkflowUpdate) SaveX(ctx context.Context) int
- func (wu *WorkflowUpdate) SetActive(b bool) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetDescription(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetLogToEvents(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNamespace(n *Namespace) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNamespaceID(id string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableActive(b *bool) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableDescription(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableLogToEvents(s *string) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetNillableRevision(i *int) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetRevision(i int) *WorkflowUpdate
- func (wu *WorkflowUpdate) SetWorkflow(b []byte) *WorkflowUpdate
- func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate
- type WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddInstanceIDs(ids ...int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddInstances(w ...*WorkflowInstance) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddRevision(i int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddWfeventIDs(ids ...int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearDescription() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearInstances() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearLogToEvents() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearNamespace() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) ClearWfevents() *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Exec(ctx context.Context) error
- func (wuo *WorkflowUpdateOne) ExecX(ctx context.Context)
- func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation
- func (wuo *WorkflowUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveWfeventIDs(ids ...int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) Save(ctx context.Context) (*Workflow, error)
- func (wuo *WorkflowUpdateOne) SaveX(ctx context.Context) *Workflow
- func (wuo *WorkflowUpdateOne) Select(field string, fields ...string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetActive(b bool) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetDescription(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetLogToEvents(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNamespace(n *Namespace) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNamespaceID(id string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableActive(b *bool) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableDescription(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableLogToEvents(s *string) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetNillableRevision(i *int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetRevision(i int) *WorkflowUpdateOne
- func (wuo *WorkflowUpdateOne) SetWorkflow(b []byte) *WorkflowUpdateOne
- type Workflows
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeNamespace = "Namespace" TypeWorkflow = "Workflow" TypeWorkflowEvents = "WorkflowEvents" TypeWorkflowEventsWait = "WorkflowEventsWait" TypeWorkflowInstance = "WorkflowInstance" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Namespace is the client for interacting with the Namespace builders. Namespace *NamespaceClient // Workflow is the client for interacting with the Workflow builders. Workflow *WorkflowClient // WorkflowEvents is the client for interacting with the WorkflowEvents builders. WorkflowEvents *WorkflowEventsClient // WorkflowEventsWait is the client for interacting with the WorkflowEventsWait builders. WorkflowEventsWait *WorkflowEventsWaitClient // WorkflowInstance is the client for interacting with the WorkflowInstance builders. WorkflowInstance *WorkflowInstanceClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Namespace. Query(). Count(ctx)
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type Namespace ¶
type Namespace struct { // ID of the ent. ID string `json:"id,omitempty"` // Created holds the value of the "created" field. Created time.Time `json:"created,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the NamespaceQuery when eager-loading is set. Edges NamespaceEdges `json:"edges"` // contains filtered or unexported fields }
Namespace is the model entity for the Namespace schema.
func (*Namespace) QueryWorkflows ¶
func (n *Namespace) QueryWorkflows() *WorkflowQuery
QueryWorkflows queries the "workflows" edge of the Namespace entity.
func (*Namespace) Unwrap ¶
Unwrap unwraps the Namespace entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Namespace) Update ¶
func (n *Namespace) Update() *NamespaceUpdateOne
Update returns a builder for updating this Namespace. Note that you need to call Namespace.Unwrap() before calling this method if this Namespace was returned from a transaction, and the transaction was committed or rolled back.
type NamespaceClient ¶
type NamespaceClient struct {
// contains filtered or unexported fields
}
NamespaceClient is a client for the Namespace schema.
func NewNamespaceClient ¶
func NewNamespaceClient(c config) *NamespaceClient
NewNamespaceClient returns a client for the Namespace from the given config.
func (*NamespaceClient) Create ¶
func (c *NamespaceClient) Create() *NamespaceCreate
Create returns a create builder for Namespace.
func (*NamespaceClient) CreateBulk ¶
func (c *NamespaceClient) CreateBulk(builders ...*NamespaceCreate) *NamespaceCreateBulk
CreateBulk returns a builder for creating a bulk of Namespace entities.
func (*NamespaceClient) Delete ¶
func (c *NamespaceClient) Delete() *NamespaceDelete
Delete returns a delete builder for Namespace.
func (*NamespaceClient) DeleteOne ¶
func (c *NamespaceClient) DeleteOne(n *Namespace) *NamespaceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*NamespaceClient) DeleteOneID ¶
func (c *NamespaceClient) DeleteOneID(id string) *NamespaceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*NamespaceClient) GetX ¶
func (c *NamespaceClient) GetX(ctx context.Context, id string) *Namespace
GetX is like Get, but panics if an error occurs.
func (*NamespaceClient) Hooks ¶
func (c *NamespaceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NamespaceClient) Query ¶
func (c *NamespaceClient) Query() *NamespaceQuery
Query returns a query builder for Namespace.
func (*NamespaceClient) QueryWorkflows ¶
func (c *NamespaceClient) QueryWorkflows(n *Namespace) *WorkflowQuery
QueryWorkflows queries the workflows edge of a Namespace.
func (*NamespaceClient) Update ¶
func (c *NamespaceClient) Update() *NamespaceUpdate
Update returns an update builder for Namespace.
func (*NamespaceClient) UpdateOne ¶
func (c *NamespaceClient) UpdateOne(n *Namespace) *NamespaceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NamespaceClient) UpdateOneID ¶
func (c *NamespaceClient) UpdateOneID(id string) *NamespaceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NamespaceClient) Use ¶
func (c *NamespaceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `namespace.Hooks(f(g(h())))`.
type NamespaceCreate ¶
type NamespaceCreate struct {
// contains filtered or unexported fields
}
NamespaceCreate is the builder for creating a Namespace entity.
func (*NamespaceCreate) AddWorkflowIDs ¶
func (nc *NamespaceCreate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceCreate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*NamespaceCreate) AddWorkflows ¶
func (nc *NamespaceCreate) AddWorkflows(w ...*Workflow) *NamespaceCreate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*NamespaceCreate) Exec ¶ added in v0.4.0
func (nc *NamespaceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NamespaceCreate) ExecX ¶ added in v0.4.0
func (nc *NamespaceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NamespaceCreate) Mutation ¶
func (nc *NamespaceCreate) Mutation() *NamespaceMutation
Mutation returns the NamespaceMutation object of the builder.
func (*NamespaceCreate) Save ¶
func (nc *NamespaceCreate) Save(ctx context.Context) (*Namespace, error)
Save creates the Namespace in the database.
func (*NamespaceCreate) SaveX ¶
func (nc *NamespaceCreate) SaveX(ctx context.Context) *Namespace
SaveX calls Save and panics if Save returns an error.
func (*NamespaceCreate) SetCreated ¶
func (nc *NamespaceCreate) SetCreated(t time.Time) *NamespaceCreate
SetCreated sets the "created" field.
func (*NamespaceCreate) SetID ¶
func (nc *NamespaceCreate) SetID(s string) *NamespaceCreate
SetID sets the "id" field.
func (*NamespaceCreate) SetNillableCreated ¶
func (nc *NamespaceCreate) SetNillableCreated(t *time.Time) *NamespaceCreate
SetNillableCreated sets the "created" field if the given value is not nil.
type NamespaceCreateBulk ¶
type NamespaceCreateBulk struct {
// contains filtered or unexported fields
}
NamespaceCreateBulk is the builder for creating many Namespace entities in bulk.
func (*NamespaceCreateBulk) Exec ¶ added in v0.4.0
func (ncb *NamespaceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NamespaceCreateBulk) ExecX ¶ added in v0.4.0
func (ncb *NamespaceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type NamespaceDelete ¶
type NamespaceDelete struct {
// contains filtered or unexported fields
}
NamespaceDelete is the builder for deleting a Namespace entity.
func (*NamespaceDelete) Exec ¶
func (nd *NamespaceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NamespaceDelete) ExecX ¶
func (nd *NamespaceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NamespaceDelete) Where ¶
func (nd *NamespaceDelete) Where(ps ...predicate.Namespace) *NamespaceDelete
Where appends a list predicates to the NamespaceDelete builder.
type NamespaceDeleteOne ¶
type NamespaceDeleteOne struct {
// contains filtered or unexported fields
}
NamespaceDeleteOne is the builder for deleting a single Namespace entity.
func (*NamespaceDeleteOne) Exec ¶
func (ndo *NamespaceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NamespaceDeleteOne) ExecX ¶
func (ndo *NamespaceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type NamespaceEdges ¶
type NamespaceEdges struct { // Workflows holds the value of the workflows edge. Workflows []*Workflow `json:"workflows,omitempty"` // contains filtered or unexported fields }
NamespaceEdges holds the relations/edges for other nodes in the graph.
func (NamespaceEdges) WorkflowsOrErr ¶
func (e NamespaceEdges) WorkflowsOrErr() ([]*Workflow, error)
WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.
type NamespaceGroupBy ¶
type NamespaceGroupBy struct {
// contains filtered or unexported fields
}
NamespaceGroupBy is the group-by builder for Namespace entities.
func (*NamespaceGroupBy) Aggregate ¶
func (ngb *NamespaceGroupBy) Aggregate(fns ...AggregateFunc) *NamespaceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NamespaceGroupBy) Bool ¶
func (ngb *NamespaceGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) BoolX ¶
func (ngb *NamespaceGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*NamespaceGroupBy) Bools ¶
func (ngb *NamespaceGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) BoolsX ¶
func (ngb *NamespaceGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*NamespaceGroupBy) Float64 ¶
func (ngb *NamespaceGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) Float64X ¶
func (ngb *NamespaceGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*NamespaceGroupBy) Float64s ¶
func (ngb *NamespaceGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) Float64sX ¶
func (ngb *NamespaceGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*NamespaceGroupBy) Int ¶
func (ngb *NamespaceGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) IntX ¶
func (ngb *NamespaceGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*NamespaceGroupBy) Ints ¶
func (ngb *NamespaceGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) IntsX ¶
func (ngb *NamespaceGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*NamespaceGroupBy) Scan ¶
func (ngb *NamespaceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*NamespaceGroupBy) ScanX ¶
func (ngb *NamespaceGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*NamespaceGroupBy) String ¶
func (ngb *NamespaceGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*NamespaceGroupBy) StringX ¶
func (ngb *NamespaceGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type NamespaceMutation ¶
type NamespaceMutation struct {
// contains filtered or unexported fields
}
NamespaceMutation represents an operation that mutates the Namespace nodes in the graph.
func (*NamespaceMutation) AddField ¶
func (m *NamespaceMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*NamespaceMutation) AddWorkflowIDs ¶
func (m *NamespaceMutation) AddWorkflowIDs(ids ...uuid.UUID)
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.
func (*NamespaceMutation) AddedEdges ¶
func (m *NamespaceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NamespaceMutation) AddedField ¶
func (m *NamespaceMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*NamespaceMutation) AddedFields ¶
func (m *NamespaceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NamespaceMutation) AddedIDs ¶
func (m *NamespaceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NamespaceMutation) ClearEdge ¶
func (m *NamespaceMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*NamespaceMutation) ClearField ¶
func (m *NamespaceMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*NamespaceMutation) ClearWorkflows ¶
func (m *NamespaceMutation) ClearWorkflows()
ClearWorkflows clears the "workflows" edge to the Workflow entity.
func (*NamespaceMutation) ClearedEdges ¶
func (m *NamespaceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NamespaceMutation) ClearedFields ¶
func (m *NamespaceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NamespaceMutation) Client ¶
func (m NamespaceMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*NamespaceMutation) Created ¶
func (m *NamespaceMutation) Created() (r time.Time, exists bool)
Created returns the value of the "created" field in the mutation.
func (*NamespaceMutation) EdgeCleared ¶
func (m *NamespaceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NamespaceMutation) Field ¶
func (m *NamespaceMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*NamespaceMutation) FieldCleared ¶
func (m *NamespaceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NamespaceMutation) Fields ¶
func (m *NamespaceMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*NamespaceMutation) ID ¶
func (m *NamespaceMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*NamespaceMutation) OldCreated ¶
OldCreated returns the old "created" field's value of the Namespace entity. If the Namespace object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*NamespaceMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*NamespaceMutation) RemoveWorkflowIDs ¶
func (m *NamespaceMutation) RemoveWorkflowIDs(ids ...uuid.UUID)
RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.
func (*NamespaceMutation) RemovedEdges ¶
func (m *NamespaceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NamespaceMutation) RemovedIDs ¶
func (m *NamespaceMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*NamespaceMutation) RemovedWorkflowsIDs ¶
func (m *NamespaceMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)
RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.
func (*NamespaceMutation) ResetCreated ¶
func (m *NamespaceMutation) ResetCreated()
ResetCreated resets all changes to the "created" field.
func (*NamespaceMutation) ResetEdge ¶
func (m *NamespaceMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*NamespaceMutation) ResetField ¶
func (m *NamespaceMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*NamespaceMutation) ResetWorkflows ¶
func (m *NamespaceMutation) ResetWorkflows()
ResetWorkflows resets all changes to the "workflows" edge.
func (*NamespaceMutation) SetCreated ¶
func (m *NamespaceMutation) SetCreated(t time.Time)
SetCreated sets the "created" field.
func (*NamespaceMutation) SetField ¶
func (m *NamespaceMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*NamespaceMutation) SetID ¶
func (m *NamespaceMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Namespace entities.
func (NamespaceMutation) Tx ¶
func (m NamespaceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NamespaceMutation) Type ¶
func (m *NamespaceMutation) Type() string
Type returns the node type of this mutation (Namespace).
func (*NamespaceMutation) Where ¶ added in v0.4.0
func (m *NamespaceMutation) Where(ps ...predicate.Namespace)
Where appends a list predicates to the NamespaceMutation builder.
func (*NamespaceMutation) WorkflowsCleared ¶
func (m *NamespaceMutation) WorkflowsCleared() bool
WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.
func (*NamespaceMutation) WorkflowsIDs ¶
func (m *NamespaceMutation) WorkflowsIDs() (ids []uuid.UUID)
WorkflowsIDs returns the "workflows" edge IDs in the mutation.
type NamespaceQuery ¶
type NamespaceQuery struct {
// contains filtered or unexported fields
}
NamespaceQuery is the builder for querying Namespace entities.
func (*NamespaceQuery) All ¶
func (nq *NamespaceQuery) All(ctx context.Context) ([]*Namespace, error)
All executes the query and returns a list of Namespaces.
func (*NamespaceQuery) AllX ¶
func (nq *NamespaceQuery) AllX(ctx context.Context) []*Namespace
AllX is like All, but panics if an error occurs.
func (*NamespaceQuery) Clone ¶
func (nq *NamespaceQuery) Clone() *NamespaceQuery
Clone returns a duplicate of the NamespaceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NamespaceQuery) Count ¶
func (nq *NamespaceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NamespaceQuery) CountX ¶
func (nq *NamespaceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NamespaceQuery) Exist ¶
func (nq *NamespaceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NamespaceQuery) ExistX ¶
func (nq *NamespaceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NamespaceQuery) First ¶
func (nq *NamespaceQuery) First(ctx context.Context) (*Namespace, error)
First returns the first Namespace entity from the query. Returns a *NotFoundError when no Namespace was found.
func (*NamespaceQuery) FirstID ¶
func (nq *NamespaceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Namespace ID from the query. Returns a *NotFoundError when no Namespace ID was found.
func (*NamespaceQuery) FirstIDX ¶
func (nq *NamespaceQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*NamespaceQuery) FirstX ¶
func (nq *NamespaceQuery) FirstX(ctx context.Context) *Namespace
FirstX is like First, but panics if an error occurs.
func (*NamespaceQuery) GroupBy ¶
func (nq *NamespaceQuery) GroupBy(field string, fields ...string) *NamespaceGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Created time.Time `json:"created,omitempty"` Count int `json:"count,omitempty"` } client.Namespace.Query(). GroupBy(namespace.FieldCreated). Aggregate(ent.Count()). Scan(ctx, &v)
func (*NamespaceQuery) IDs ¶
func (nq *NamespaceQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of Namespace IDs.
func (*NamespaceQuery) IDsX ¶
func (nq *NamespaceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*NamespaceQuery) Limit ¶
func (nq *NamespaceQuery) Limit(limit int) *NamespaceQuery
Limit adds a limit step to the query.
func (*NamespaceQuery) Offset ¶
func (nq *NamespaceQuery) Offset(offset int) *NamespaceQuery
Offset adds an offset step to the query.
func (*NamespaceQuery) Only ¶
func (nq *NamespaceQuery) Only(ctx context.Context) (*Namespace, error)
Only returns a single Namespace entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Namespace entity is not found. Returns a *NotFoundError when no Namespace entities are found.
func (*NamespaceQuery) OnlyID ¶
func (nq *NamespaceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Namespace ID in the query. Returns a *NotSingularError when exactly one Namespace ID is not found. Returns a *NotFoundError when no entities are found.
func (*NamespaceQuery) OnlyIDX ¶
func (nq *NamespaceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NamespaceQuery) OnlyX ¶
func (nq *NamespaceQuery) OnlyX(ctx context.Context) *Namespace
OnlyX is like Only, but panics if an error occurs.
func (*NamespaceQuery) Order ¶
func (nq *NamespaceQuery) Order(o ...OrderFunc) *NamespaceQuery
Order adds an order step to the query.
func (*NamespaceQuery) QueryWorkflows ¶
func (nq *NamespaceQuery) QueryWorkflows() *WorkflowQuery
QueryWorkflows chains the current query on the "workflows" edge.
func (*NamespaceQuery) Select ¶
func (nq *NamespaceQuery) Select(fields ...string) *NamespaceSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Created time.Time `json:"created,omitempty"` } client.Namespace.Query(). Select(namespace.FieldCreated). Scan(ctx, &v)
func (*NamespaceQuery) Unique ¶ added in v0.2.1
func (nq *NamespaceQuery) Unique(unique bool) *NamespaceQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*NamespaceQuery) Where ¶
func (nq *NamespaceQuery) Where(ps ...predicate.Namespace) *NamespaceQuery
Where adds a new predicate for the NamespaceQuery builder.
func (*NamespaceQuery) WithWorkflows ¶
func (nq *NamespaceQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *NamespaceQuery
WithWorkflows tells the query-builder to eager-load the nodes that are connected to the "workflows" edge. The optional arguments are used to configure the query builder of the edge.
type NamespaceSelect ¶
type NamespaceSelect struct { *NamespaceQuery // contains filtered or unexported fields }
NamespaceSelect is the builder for selecting fields of Namespace entities.
func (*NamespaceSelect) Bool ¶
func (ns *NamespaceSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) BoolX ¶
func (ns *NamespaceSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*NamespaceSelect) Bools ¶
func (ns *NamespaceSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) BoolsX ¶
func (ns *NamespaceSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*NamespaceSelect) Float64 ¶
func (ns *NamespaceSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) Float64X ¶
func (ns *NamespaceSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*NamespaceSelect) Float64s ¶
func (ns *NamespaceSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) Float64sX ¶
func (ns *NamespaceSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*NamespaceSelect) Int ¶
func (ns *NamespaceSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) IntX ¶
func (ns *NamespaceSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*NamespaceSelect) Ints ¶
func (ns *NamespaceSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) IntsX ¶
func (ns *NamespaceSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*NamespaceSelect) Scan ¶
func (ns *NamespaceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*NamespaceSelect) ScanX ¶
func (ns *NamespaceSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*NamespaceSelect) String ¶
func (ns *NamespaceSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*NamespaceSelect) StringX ¶
func (ns *NamespaceSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type NamespaceUpdate ¶
type NamespaceUpdate struct {
// contains filtered or unexported fields
}
NamespaceUpdate is the builder for updating Namespace entities.
func (*NamespaceUpdate) AddWorkflowIDs ¶
func (nu *NamespaceUpdate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*NamespaceUpdate) AddWorkflows ¶
func (nu *NamespaceUpdate) AddWorkflows(w ...*Workflow) *NamespaceUpdate
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*NamespaceUpdate) ClearWorkflows ¶
func (nu *NamespaceUpdate) ClearWorkflows() *NamespaceUpdate
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*NamespaceUpdate) Exec ¶
func (nu *NamespaceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NamespaceUpdate) ExecX ¶
func (nu *NamespaceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NamespaceUpdate) Mutation ¶
func (nu *NamespaceUpdate) Mutation() *NamespaceMutation
Mutation returns the NamespaceMutation object of the builder.
func (*NamespaceUpdate) RemoveWorkflowIDs ¶
func (nu *NamespaceUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*NamespaceUpdate) RemoveWorkflows ¶
func (nu *NamespaceUpdate) RemoveWorkflows(w ...*Workflow) *NamespaceUpdate
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*NamespaceUpdate) Save ¶
func (nu *NamespaceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NamespaceUpdate) SaveX ¶
func (nu *NamespaceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NamespaceUpdate) Where ¶
func (nu *NamespaceUpdate) Where(ps ...predicate.Namespace) *NamespaceUpdate
Where appends a list predicates to the NamespaceUpdate builder.
type NamespaceUpdateOne ¶
type NamespaceUpdateOne struct {
// contains filtered or unexported fields
}
NamespaceUpdateOne is the builder for updating a single Namespace entity.
func (*NamespaceUpdateOne) AddWorkflowIDs ¶
func (nuo *NamespaceUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne
AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.
func (*NamespaceUpdateOne) AddWorkflows ¶
func (nuo *NamespaceUpdateOne) AddWorkflows(w ...*Workflow) *NamespaceUpdateOne
AddWorkflows adds the "workflows" edges to the Workflow entity.
func (*NamespaceUpdateOne) ClearWorkflows ¶
func (nuo *NamespaceUpdateOne) ClearWorkflows() *NamespaceUpdateOne
ClearWorkflows clears all "workflows" edges to the Workflow entity.
func (*NamespaceUpdateOne) Exec ¶
func (nuo *NamespaceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NamespaceUpdateOne) ExecX ¶
func (nuo *NamespaceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NamespaceUpdateOne) Mutation ¶
func (nuo *NamespaceUpdateOne) Mutation() *NamespaceMutation
Mutation returns the NamespaceMutation object of the builder.
func (*NamespaceUpdateOne) RemoveWorkflowIDs ¶
func (nuo *NamespaceUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne
RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.
func (*NamespaceUpdateOne) RemoveWorkflows ¶
func (nuo *NamespaceUpdateOne) RemoveWorkflows(w ...*Workflow) *NamespaceUpdateOne
RemoveWorkflows removes "workflows" edges to Workflow entities.
func (*NamespaceUpdateOne) Save ¶
func (nuo *NamespaceUpdateOne) Save(ctx context.Context) (*Namespace, error)
Save executes the query and returns the updated Namespace entity.
func (*NamespaceUpdateOne) SaveX ¶
func (nuo *NamespaceUpdateOne) SaveX(ctx context.Context) *Namespace
SaveX is like Save, but panics if an error occurs.
func (*NamespaceUpdateOne) Select ¶ added in v0.2.1
func (nuo *NamespaceUpdateOne) Select(field string, fields ...string) *NamespaceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollbacker method.
type Tx ¶
type Tx struct { // Namespace is the client for interacting with the Namespace builders. Namespace *NamespaceClient // Workflow is the client for interacting with the Workflow builders. Workflow *WorkflowClient // WorkflowEvents is the client for interacting with the WorkflowEvents builders. WorkflowEvents *WorkflowEventsClient // WorkflowEventsWait is the client for interacting with the WorkflowEventsWait builders. WorkflowEventsWait *WorkflowEventsWaitClient // WorkflowInstance is the client for interacting with the WorkflowInstance builders. WorkflowInstance *WorkflowInstanceClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Workflow ¶
type Workflow struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Created holds the value of the "created" field. Created time.Time `json:"created,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // Active holds the value of the "active" field. Active bool `json:"active,omitempty"` // Revision holds the value of the "revision" field. Revision int `json:"revision,omitempty"` // Workflow holds the value of the "workflow" field. Workflow []byte `json:"workflow,omitempty"` // LogToEvents holds the value of the "logToEvents" field. LogToEvents string `json:"logToEvents,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowQuery when eager-loading is set. Edges WorkflowEdges `json:"edges"` // contains filtered or unexported fields }
Workflow is the model entity for the Workflow schema.
func (*Workflow) QueryInstances ¶
func (w *Workflow) QueryInstances() *WorkflowInstanceQuery
QueryInstances queries the "instances" edge of the Workflow entity.
func (*Workflow) QueryNamespace ¶
func (w *Workflow) QueryNamespace() *NamespaceQuery
QueryNamespace queries the "namespace" edge of the Workflow entity.
func (*Workflow) QueryWfevents ¶
func (w *Workflow) QueryWfevents() *WorkflowEventsQuery
QueryWfevents queries the "wfevents" edge of the Workflow entity.
func (*Workflow) Unwrap ¶
Unwrap unwraps the Workflow entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Workflow) Update ¶
func (w *Workflow) Update() *WorkflowUpdateOne
Update returns a builder for updating this Workflow. Note that you need to call Workflow.Unwrap() before calling this method if this Workflow was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowClient ¶
type WorkflowClient struct {
// contains filtered or unexported fields
}
WorkflowClient is a client for the Workflow schema.
func NewWorkflowClient ¶
func NewWorkflowClient(c config) *WorkflowClient
NewWorkflowClient returns a client for the Workflow from the given config.
func (*WorkflowClient) Create ¶
func (c *WorkflowClient) Create() *WorkflowCreate
Create returns a create builder for Workflow.
func (*WorkflowClient) CreateBulk ¶
func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk
CreateBulk returns a builder for creating a bulk of Workflow entities.
func (*WorkflowClient) Delete ¶
func (c *WorkflowClient) Delete() *WorkflowDelete
Delete returns a delete builder for Workflow.
func (*WorkflowClient) DeleteOne ¶
func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*WorkflowClient) DeleteOneID ¶
func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*WorkflowClient) Hooks ¶
func (c *WorkflowClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowClient) Query ¶
func (c *WorkflowClient) Query() *WorkflowQuery
Query returns a query builder for Workflow.
func (*WorkflowClient) QueryInstances ¶
func (c *WorkflowClient) QueryInstances(w *Workflow) *WorkflowInstanceQuery
QueryInstances queries the instances edge of a Workflow.
func (*WorkflowClient) QueryNamespace ¶
func (c *WorkflowClient) QueryNamespace(w *Workflow) *NamespaceQuery
QueryNamespace queries the namespace edge of a Workflow.
func (*WorkflowClient) QueryWfevents ¶
func (c *WorkflowClient) QueryWfevents(w *Workflow) *WorkflowEventsQuery
QueryWfevents queries the wfevents edge of a Workflow.
func (*WorkflowClient) Update ¶
func (c *WorkflowClient) Update() *WorkflowUpdate
Update returns an update builder for Workflow.
func (*WorkflowClient) UpdateOne ¶
func (c *WorkflowClient) UpdateOne(w *Workflow) *WorkflowUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowClient) UpdateOneID ¶
func (c *WorkflowClient) UpdateOneID(id uuid.UUID) *WorkflowUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowClient) Use ¶
func (c *WorkflowClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflow.Hooks(f(g(h())))`.
type WorkflowCreate ¶
type WorkflowCreate struct {
// contains filtered or unexported fields
}
WorkflowCreate is the builder for creating a Workflow entity.
func (*WorkflowCreate) AddInstanceIDs ¶
func (wc *WorkflowCreate) AddInstanceIDs(ids ...int) *WorkflowCreate
AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.
func (*WorkflowCreate) AddInstances ¶
func (wc *WorkflowCreate) AddInstances(w ...*WorkflowInstance) *WorkflowCreate
AddInstances adds the "instances" edges to the WorkflowInstance entity.
func (*WorkflowCreate) AddWfeventIDs ¶
func (wc *WorkflowCreate) AddWfeventIDs(ids ...int) *WorkflowCreate
AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.
func (*WorkflowCreate) AddWfevents ¶
func (wc *WorkflowCreate) AddWfevents(w ...*WorkflowEvents) *WorkflowCreate
AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.
func (*WorkflowCreate) Exec ¶ added in v0.4.0
func (wc *WorkflowCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowCreate) ExecX ¶ added in v0.4.0
func (wc *WorkflowCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowCreate) Mutation ¶
func (wc *WorkflowCreate) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowCreate) Save ¶
func (wc *WorkflowCreate) Save(ctx context.Context) (*Workflow, error)
Save creates the Workflow in the database.
func (*WorkflowCreate) SaveX ¶
func (wc *WorkflowCreate) SaveX(ctx context.Context) *Workflow
SaveX calls Save and panics if Save returns an error.
func (*WorkflowCreate) SetActive ¶
func (wc *WorkflowCreate) SetActive(b bool) *WorkflowCreate
SetActive sets the "active" field.
func (*WorkflowCreate) SetCreated ¶
func (wc *WorkflowCreate) SetCreated(t time.Time) *WorkflowCreate
SetCreated sets the "created" field.
func (*WorkflowCreate) SetDescription ¶
func (wc *WorkflowCreate) SetDescription(s string) *WorkflowCreate
SetDescription sets the "description" field.
func (*WorkflowCreate) SetID ¶
func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate
SetID sets the "id" field.
func (*WorkflowCreate) SetLogToEvents ¶ added in v0.1.3
func (wc *WorkflowCreate) SetLogToEvents(s string) *WorkflowCreate
SetLogToEvents sets the "logToEvents" field.
func (*WorkflowCreate) SetName ¶
func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate
SetName sets the "name" field.
func (*WorkflowCreate) SetNamespace ¶
func (wc *WorkflowCreate) SetNamespace(n *Namespace) *WorkflowCreate
SetNamespace sets the "namespace" edge to the Namespace entity.
func (*WorkflowCreate) SetNamespaceID ¶
func (wc *WorkflowCreate) SetNamespaceID(id string) *WorkflowCreate
SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.
func (*WorkflowCreate) SetNillableActive ¶
func (wc *WorkflowCreate) SetNillableActive(b *bool) *WorkflowCreate
SetNillableActive sets the "active" field if the given value is not nil.
func (*WorkflowCreate) SetNillableCreated ¶
func (wc *WorkflowCreate) SetNillableCreated(t *time.Time) *WorkflowCreate
SetNillableCreated sets the "created" field if the given value is not nil.
func (*WorkflowCreate) SetNillableDescription ¶
func (wc *WorkflowCreate) SetNillableDescription(s *string) *WorkflowCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WorkflowCreate) SetNillableLogToEvents ¶ added in v0.1.3
func (wc *WorkflowCreate) SetNillableLogToEvents(s *string) *WorkflowCreate
SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.
func (*WorkflowCreate) SetNillableRevision ¶
func (wc *WorkflowCreate) SetNillableRevision(i *int) *WorkflowCreate
SetNillableRevision sets the "revision" field if the given value is not nil.
func (*WorkflowCreate) SetRevision ¶
func (wc *WorkflowCreate) SetRevision(i int) *WorkflowCreate
SetRevision sets the "revision" field.
func (*WorkflowCreate) SetWorkflow ¶
func (wc *WorkflowCreate) SetWorkflow(b []byte) *WorkflowCreate
SetWorkflow sets the "workflow" field.
type WorkflowCreateBulk ¶
type WorkflowCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowCreateBulk is the builder for creating many Workflow entities in bulk.
func (*WorkflowCreateBulk) Exec ¶ added in v0.4.0
func (wcb *WorkflowCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowCreateBulk) ExecX ¶ added in v0.4.0
func (wcb *WorkflowCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowDelete ¶
type WorkflowDelete struct {
// contains filtered or unexported fields
}
WorkflowDelete is the builder for deleting a Workflow entity.
func (*WorkflowDelete) Exec ¶
func (wd *WorkflowDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowDelete) ExecX ¶
func (wd *WorkflowDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowDelete) Where ¶
func (wd *WorkflowDelete) Where(ps ...predicate.Workflow) *WorkflowDelete
Where appends a list predicates to the WorkflowDelete builder.
type WorkflowDeleteOne ¶
type WorkflowDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowDeleteOne is the builder for deleting a single Workflow entity.
func (*WorkflowDeleteOne) Exec ¶
func (wdo *WorkflowDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowDeleteOne) ExecX ¶
func (wdo *WorkflowDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowEdges ¶
type WorkflowEdges struct { // Namespace holds the value of the namespace edge. Namespace *Namespace `json:"namespace,omitempty"` // Instances holds the value of the instances edge. Instances []*WorkflowInstance `json:"instances,omitempty"` // Wfevents holds the value of the wfevents edge. Wfevents []*WorkflowEvents `json:"wfevents,omitempty"` // contains filtered or unexported fields }
WorkflowEdges holds the relations/edges for other nodes in the graph.
func (WorkflowEdges) InstancesOrErr ¶
func (e WorkflowEdges) InstancesOrErr() ([]*WorkflowInstance, error)
InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.
func (WorkflowEdges) NamespaceOrErr ¶
func (e WorkflowEdges) NamespaceOrErr() (*Namespace, error)
NamespaceOrErr returns the Namespace value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowEdges) WfeventsOrErr ¶
func (e WorkflowEdges) WfeventsOrErr() ([]*WorkflowEvents, error)
WfeventsOrErr returns the Wfevents value or an error if the edge was not loaded in eager-loading.
type WorkflowEvents ¶
type WorkflowEvents struct { // ID of the ent. ID int `json:"id,omitempty"` // Events holds the value of the "events" field. Events []map[string]interface{} `json:"events,omitempty"` // Correlations holds the value of the "correlations" field. Correlations []string `json:"correlations,omitempty"` // Signature holds the value of the "signature" field. Signature []byte `json:"signature,omitempty"` // Count holds the value of the "count" field. Count int `json:"count,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowEventsQuery when eager-loading is set. Edges WorkflowEventsEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowEvents is the model entity for the WorkflowEvents schema.
func (*WorkflowEvents) QueryWfeventswait ¶
func (we *WorkflowEvents) QueryWfeventswait() *WorkflowEventsWaitQuery
QueryWfeventswait queries the "wfeventswait" edge of the WorkflowEvents entity.
func (*WorkflowEvents) QueryWorkflow ¶
func (we *WorkflowEvents) QueryWorkflow() *WorkflowQuery
QueryWorkflow queries the "workflow" edge of the WorkflowEvents entity.
func (*WorkflowEvents) QueryWorkflowinstance ¶
func (we *WorkflowEvents) QueryWorkflowinstance() *WorkflowInstanceQuery
QueryWorkflowinstance queries the "workflowinstance" edge of the WorkflowEvents entity.
func (*WorkflowEvents) String ¶
func (we *WorkflowEvents) String() string
String implements the fmt.Stringer.
func (*WorkflowEvents) Unwrap ¶
func (we *WorkflowEvents) Unwrap() *WorkflowEvents
Unwrap unwraps the WorkflowEvents entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WorkflowEvents) Update ¶
func (we *WorkflowEvents) Update() *WorkflowEventsUpdateOne
Update returns a builder for updating this WorkflowEvents. Note that you need to call WorkflowEvents.Unwrap() before calling this method if this WorkflowEvents was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowEventsClient ¶
type WorkflowEventsClient struct {
// contains filtered or unexported fields
}
WorkflowEventsClient is a client for the WorkflowEvents schema.
func NewWorkflowEventsClient ¶
func NewWorkflowEventsClient(c config) *WorkflowEventsClient
NewWorkflowEventsClient returns a client for the WorkflowEvents from the given config.
func (*WorkflowEventsClient) Create ¶
func (c *WorkflowEventsClient) Create() *WorkflowEventsCreate
Create returns a create builder for WorkflowEvents.
func (*WorkflowEventsClient) CreateBulk ¶
func (c *WorkflowEventsClient) CreateBulk(builders ...*WorkflowEventsCreate) *WorkflowEventsCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowEvents entities.
func (*WorkflowEventsClient) Delete ¶
func (c *WorkflowEventsClient) Delete() *WorkflowEventsDelete
Delete returns a delete builder for WorkflowEvents.
func (*WorkflowEventsClient) DeleteOne ¶
func (c *WorkflowEventsClient) DeleteOne(we *WorkflowEvents) *WorkflowEventsDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*WorkflowEventsClient) DeleteOneID ¶
func (c *WorkflowEventsClient) DeleteOneID(id int) *WorkflowEventsDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*WorkflowEventsClient) Get ¶
func (c *WorkflowEventsClient) Get(ctx context.Context, id int) (*WorkflowEvents, error)
Get returns a WorkflowEvents entity by its id.
func (*WorkflowEventsClient) GetX ¶
func (c *WorkflowEventsClient) GetX(ctx context.Context, id int) *WorkflowEvents
GetX is like Get, but panics if an error occurs.
func (*WorkflowEventsClient) Hooks ¶
func (c *WorkflowEventsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowEventsClient) Query ¶
func (c *WorkflowEventsClient) Query() *WorkflowEventsQuery
Query returns a query builder for WorkflowEvents.
func (*WorkflowEventsClient) QueryWfeventswait ¶
func (c *WorkflowEventsClient) QueryWfeventswait(we *WorkflowEvents) *WorkflowEventsWaitQuery
QueryWfeventswait queries the wfeventswait edge of a WorkflowEvents.
func (*WorkflowEventsClient) QueryWorkflow ¶
func (c *WorkflowEventsClient) QueryWorkflow(we *WorkflowEvents) *WorkflowQuery
QueryWorkflow queries the workflow edge of a WorkflowEvents.
func (*WorkflowEventsClient) QueryWorkflowinstance ¶
func (c *WorkflowEventsClient) QueryWorkflowinstance(we *WorkflowEvents) *WorkflowInstanceQuery
QueryWorkflowinstance queries the workflowinstance edge of a WorkflowEvents.
func (*WorkflowEventsClient) Update ¶
func (c *WorkflowEventsClient) Update() *WorkflowEventsUpdate
Update returns an update builder for WorkflowEvents.
func (*WorkflowEventsClient) UpdateOne ¶
func (c *WorkflowEventsClient) UpdateOne(we *WorkflowEvents) *WorkflowEventsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowEventsClient) UpdateOneID ¶
func (c *WorkflowEventsClient) UpdateOneID(id int) *WorkflowEventsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowEventsClient) Use ¶
func (c *WorkflowEventsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowevents.Hooks(f(g(h())))`.
type WorkflowEventsCreate ¶
type WorkflowEventsCreate struct {
// contains filtered or unexported fields
}
WorkflowEventsCreate is the builder for creating a WorkflowEvents entity.
func (*WorkflowEventsCreate) AddWfeventswait ¶
func (wec *WorkflowEventsCreate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsCreate
AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.
func (*WorkflowEventsCreate) AddWfeventswaitIDs ¶
func (wec *WorkflowEventsCreate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsCreate
AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.
func (*WorkflowEventsCreate) Exec ¶ added in v0.4.0
func (wec *WorkflowEventsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsCreate) ExecX ¶ added in v0.4.0
func (wec *WorkflowEventsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsCreate) Mutation ¶
func (wec *WorkflowEventsCreate) Mutation() *WorkflowEventsMutation
Mutation returns the WorkflowEventsMutation object of the builder.
func (*WorkflowEventsCreate) Save ¶
func (wec *WorkflowEventsCreate) Save(ctx context.Context) (*WorkflowEvents, error)
Save creates the WorkflowEvents in the database.
func (*WorkflowEventsCreate) SaveX ¶
func (wec *WorkflowEventsCreate) SaveX(ctx context.Context) *WorkflowEvents
SaveX calls Save and panics if Save returns an error.
func (*WorkflowEventsCreate) SetCorrelations ¶
func (wec *WorkflowEventsCreate) SetCorrelations(s []string) *WorkflowEventsCreate
SetCorrelations sets the "correlations" field.
func (*WorkflowEventsCreate) SetCount ¶
func (wec *WorkflowEventsCreate) SetCount(i int) *WorkflowEventsCreate
SetCount sets the "count" field.
func (*WorkflowEventsCreate) SetEvents ¶
func (wec *WorkflowEventsCreate) SetEvents(m []map[string]interface{}) *WorkflowEventsCreate
SetEvents sets the "events" field.
func (*WorkflowEventsCreate) SetNillableWorkflowinstanceID ¶
func (wec *WorkflowEventsCreate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsCreate
SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.
func (*WorkflowEventsCreate) SetSignature ¶
func (wec *WorkflowEventsCreate) SetSignature(b []byte) *WorkflowEventsCreate
SetSignature sets the "signature" field.
func (*WorkflowEventsCreate) SetWorkflow ¶
func (wec *WorkflowEventsCreate) SetWorkflow(w *Workflow) *WorkflowEventsCreate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowEventsCreate) SetWorkflowID ¶
func (wec *WorkflowEventsCreate) SetWorkflowID(id uuid.UUID) *WorkflowEventsCreate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowEventsCreate) SetWorkflowinstance ¶
func (wec *WorkflowEventsCreate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsCreate
SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsCreate) SetWorkflowinstanceID ¶
func (wec *WorkflowEventsCreate) SetWorkflowinstanceID(id int) *WorkflowEventsCreate
SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.
type WorkflowEventsCreateBulk ¶
type WorkflowEventsCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowEventsCreateBulk is the builder for creating many WorkflowEvents entities in bulk.
func (*WorkflowEventsCreateBulk) Exec ¶ added in v0.4.0
func (wecb *WorkflowEventsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsCreateBulk) ExecX ¶ added in v0.4.0
func (wecb *WorkflowEventsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsCreateBulk) Save ¶
func (wecb *WorkflowEventsCreateBulk) Save(ctx context.Context) ([]*WorkflowEvents, error)
Save creates the WorkflowEvents entities in the database.
func (*WorkflowEventsCreateBulk) SaveX ¶
func (wecb *WorkflowEventsCreateBulk) SaveX(ctx context.Context) []*WorkflowEvents
SaveX is like Save, but panics if an error occurs.
type WorkflowEventsDelete ¶
type WorkflowEventsDelete struct {
// contains filtered or unexported fields
}
WorkflowEventsDelete is the builder for deleting a WorkflowEvents entity.
func (*WorkflowEventsDelete) Exec ¶
func (wed *WorkflowEventsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowEventsDelete) ExecX ¶
func (wed *WorkflowEventsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsDelete) Where ¶
func (wed *WorkflowEventsDelete) Where(ps ...predicate.WorkflowEvents) *WorkflowEventsDelete
Where appends a list predicates to the WorkflowEventsDelete builder.
type WorkflowEventsDeleteOne ¶
type WorkflowEventsDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowEventsDeleteOne is the builder for deleting a single WorkflowEvents entity.
func (*WorkflowEventsDeleteOne) Exec ¶
func (wedo *WorkflowEventsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowEventsDeleteOne) ExecX ¶
func (wedo *WorkflowEventsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowEventsEdges ¶
type WorkflowEventsEdges struct { // Workflow holds the value of the workflow edge. Workflow *Workflow `json:"workflow,omitempty"` // Wfeventswait holds the value of the wfeventswait edge. Wfeventswait []*WorkflowEventsWait `json:"wfeventswait,omitempty"` // Workflowinstance holds the value of the workflowinstance edge. Workflowinstance *WorkflowInstance `json:"workflowinstance,omitempty"` // contains filtered or unexported fields }
WorkflowEventsEdges holds the relations/edges for other nodes in the graph.
func (WorkflowEventsEdges) WfeventswaitOrErr ¶
func (e WorkflowEventsEdges) WfeventswaitOrErr() ([]*WorkflowEventsWait, error)
WfeventswaitOrErr returns the Wfeventswait value or an error if the edge was not loaded in eager-loading.
func (WorkflowEventsEdges) WorkflowOrErr ¶
func (e WorkflowEventsEdges) WorkflowOrErr() (*Workflow, error)
WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WorkflowEventsEdges) WorkflowinstanceOrErr ¶
func (e WorkflowEventsEdges) WorkflowinstanceOrErr() (*WorkflowInstance, error)
WorkflowinstanceOrErr returns the Workflowinstance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorkflowEventsGroupBy ¶
type WorkflowEventsGroupBy struct {
// contains filtered or unexported fields
}
WorkflowEventsGroupBy is the group-by builder for WorkflowEvents entities.
func (*WorkflowEventsGroupBy) Aggregate ¶
func (wegb *WorkflowEventsGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowEventsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowEventsGroupBy) Bool ¶
func (wegb *WorkflowEventsGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) BoolX ¶
func (wegb *WorkflowEventsGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Bools ¶
func (wegb *WorkflowEventsGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) BoolsX ¶
func (wegb *WorkflowEventsGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Float64 ¶
func (wegb *WorkflowEventsGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) Float64X ¶
func (wegb *WorkflowEventsGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Float64s ¶
func (wegb *WorkflowEventsGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) Float64sX ¶
func (wegb *WorkflowEventsGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Int ¶
func (wegb *WorkflowEventsGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) IntX ¶
func (wegb *WorkflowEventsGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Ints ¶
func (wegb *WorkflowEventsGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) IntsX ¶
func (wegb *WorkflowEventsGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowEventsGroupBy) Scan ¶
func (wegb *WorkflowEventsGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*WorkflowEventsGroupBy) ScanX ¶
func (wegb *WorkflowEventsGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowEventsGroupBy) String ¶
func (wegb *WorkflowEventsGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsGroupBy) StringX ¶
func (wegb *WorkflowEventsGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowEventsMutation ¶
type WorkflowEventsMutation struct {
// contains filtered or unexported fields
}
WorkflowEventsMutation represents an operation that mutates the WorkflowEvents nodes in the graph.
func (*WorkflowEventsMutation) AddCount ¶
func (m *WorkflowEventsMutation) AddCount(i int)
AddCount adds i to the "count" field.
func (*WorkflowEventsMutation) AddField ¶
func (m *WorkflowEventsMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowEventsMutation) AddWfeventswaitIDs ¶
func (m *WorkflowEventsMutation) AddWfeventswaitIDs(ids ...int)
AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by ids.
func (*WorkflowEventsMutation) AddedCount ¶
func (m *WorkflowEventsMutation) AddedCount() (r int, exists bool)
AddedCount returns the value that was added to the "count" field in this mutation.
func (*WorkflowEventsMutation) AddedEdges ¶
func (m *WorkflowEventsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowEventsMutation) AddedField ¶
func (m *WorkflowEventsMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowEventsMutation) AddedFields ¶
func (m *WorkflowEventsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowEventsMutation) AddedIDs ¶
func (m *WorkflowEventsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowEventsMutation) ClearEdge ¶
func (m *WorkflowEventsMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WorkflowEventsMutation) ClearField ¶
func (m *WorkflowEventsMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowEventsMutation) ClearSignature ¶
func (m *WorkflowEventsMutation) ClearSignature()
ClearSignature clears the value of the "signature" field.
func (*WorkflowEventsMutation) ClearWfeventswait ¶
func (m *WorkflowEventsMutation) ClearWfeventswait()
ClearWfeventswait clears the "wfeventswait" edge to the WorkflowEventsWait entity.
func (*WorkflowEventsMutation) ClearWorkflow ¶
func (m *WorkflowEventsMutation) ClearWorkflow()
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowEventsMutation) ClearWorkflowinstance ¶
func (m *WorkflowEventsMutation) ClearWorkflowinstance()
ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsMutation) ClearedEdges ¶
func (m *WorkflowEventsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowEventsMutation) ClearedFields ¶
func (m *WorkflowEventsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowEventsMutation) Client ¶
func (m WorkflowEventsMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WorkflowEventsMutation) Correlations ¶
func (m *WorkflowEventsMutation) Correlations() (r []string, exists bool)
Correlations returns the value of the "correlations" field in the mutation.
func (*WorkflowEventsMutation) Count ¶
func (m *WorkflowEventsMutation) Count() (r int, exists bool)
Count returns the value of the "count" field in the mutation.
func (*WorkflowEventsMutation) EdgeCleared ¶
func (m *WorkflowEventsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowEventsMutation) Events ¶
func (m *WorkflowEventsMutation) Events() (r []map[string]interface{}, exists bool)
Events returns the value of the "events" field in the mutation.
func (*WorkflowEventsMutation) Field ¶
func (m *WorkflowEventsMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowEventsMutation) FieldCleared ¶
func (m *WorkflowEventsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowEventsMutation) Fields ¶
func (m *WorkflowEventsMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WorkflowEventsMutation) ID ¶
func (m *WorkflowEventsMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WorkflowEventsMutation) OldCorrelations ¶
func (m *WorkflowEventsMutation) OldCorrelations(ctx context.Context) (v []string, err error)
OldCorrelations returns the old "correlations" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowEventsMutation) OldCount ¶
func (m *WorkflowEventsMutation) OldCount(ctx context.Context) (v int, err error)
OldCount returns the old "count" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowEventsMutation) OldEvents ¶
func (m *WorkflowEventsMutation) OldEvents(ctx context.Context) (v []map[string]interface{}, err error)
OldEvents returns the old "events" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowEventsMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WorkflowEventsMutation) OldSignature ¶
func (m *WorkflowEventsMutation) OldSignature(ctx context.Context) (v []byte, err error)
OldSignature returns the old "signature" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowEventsMutation) Op ¶
func (m *WorkflowEventsMutation) Op() Op
Op returns the operation name.
func (*WorkflowEventsMutation) RemoveWfeventswaitIDs ¶
func (m *WorkflowEventsMutation) RemoveWfeventswaitIDs(ids ...int)
RemoveWfeventswaitIDs removes the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.
func (*WorkflowEventsMutation) RemovedEdges ¶
func (m *WorkflowEventsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowEventsMutation) RemovedIDs ¶
func (m *WorkflowEventsMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WorkflowEventsMutation) RemovedWfeventswaitIDs ¶
func (m *WorkflowEventsMutation) RemovedWfeventswaitIDs() (ids []int)
RemovedWfeventswait returns the removed IDs of the "wfeventswait" edge to the WorkflowEventsWait entity.
func (*WorkflowEventsMutation) ResetCorrelations ¶
func (m *WorkflowEventsMutation) ResetCorrelations()
ResetCorrelations resets all changes to the "correlations" field.
func (*WorkflowEventsMutation) ResetCount ¶
func (m *WorkflowEventsMutation) ResetCount()
ResetCount resets all changes to the "count" field.
func (*WorkflowEventsMutation) ResetEdge ¶
func (m *WorkflowEventsMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WorkflowEventsMutation) ResetEvents ¶
func (m *WorkflowEventsMutation) ResetEvents()
ResetEvents resets all changes to the "events" field.
func (*WorkflowEventsMutation) ResetField ¶
func (m *WorkflowEventsMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowEventsMutation) ResetSignature ¶
func (m *WorkflowEventsMutation) ResetSignature()
ResetSignature resets all changes to the "signature" field.
func (*WorkflowEventsMutation) ResetWfeventswait ¶
func (m *WorkflowEventsMutation) ResetWfeventswait()
ResetWfeventswait resets all changes to the "wfeventswait" edge.
func (*WorkflowEventsMutation) ResetWorkflow ¶
func (m *WorkflowEventsMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" edge.
func (*WorkflowEventsMutation) ResetWorkflowinstance ¶
func (m *WorkflowEventsMutation) ResetWorkflowinstance()
ResetWorkflowinstance resets all changes to the "workflowinstance" edge.
func (*WorkflowEventsMutation) SetCorrelations ¶
func (m *WorkflowEventsMutation) SetCorrelations(s []string)
SetCorrelations sets the "correlations" field.
func (*WorkflowEventsMutation) SetCount ¶
func (m *WorkflowEventsMutation) SetCount(i int)
SetCount sets the "count" field.
func (*WorkflowEventsMutation) SetEvents ¶
func (m *WorkflowEventsMutation) SetEvents(value []map[string]interface{})
SetEvents sets the "events" field.
func (*WorkflowEventsMutation) SetField ¶
func (m *WorkflowEventsMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowEventsMutation) SetSignature ¶
func (m *WorkflowEventsMutation) SetSignature(b []byte)
SetSignature sets the "signature" field.
func (*WorkflowEventsMutation) SetWorkflowID ¶
func (m *WorkflowEventsMutation) SetWorkflowID(id uuid.UUID)
SetWorkflowID sets the "workflow" edge to the Workflow entity by id.
func (*WorkflowEventsMutation) SetWorkflowinstanceID ¶
func (m *WorkflowEventsMutation) SetWorkflowinstanceID(id int)
SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by id.
func (*WorkflowEventsMutation) Signature ¶
func (m *WorkflowEventsMutation) Signature() (r []byte, exists bool)
Signature returns the value of the "signature" field in the mutation.
func (*WorkflowEventsMutation) SignatureCleared ¶
func (m *WorkflowEventsMutation) SignatureCleared() bool
SignatureCleared returns if the "signature" field was cleared in this mutation.
func (WorkflowEventsMutation) Tx ¶
func (m WorkflowEventsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowEventsMutation) Type ¶
func (m *WorkflowEventsMutation) Type() string
Type returns the node type of this mutation (WorkflowEvents).
func (*WorkflowEventsMutation) WfeventswaitCleared ¶
func (m *WorkflowEventsMutation) WfeventswaitCleared() bool
WfeventswaitCleared reports if the "wfeventswait" edge to the WorkflowEventsWait entity was cleared.
func (*WorkflowEventsMutation) WfeventswaitIDs ¶
func (m *WorkflowEventsMutation) WfeventswaitIDs() (ids []int)
WfeventswaitIDs returns the "wfeventswait" edge IDs in the mutation.
func (*WorkflowEventsMutation) Where ¶ added in v0.4.0
func (m *WorkflowEventsMutation) Where(ps ...predicate.WorkflowEvents)
Where appends a list predicates to the WorkflowEventsMutation builder.
func (*WorkflowEventsMutation) WorkflowCleared ¶
func (m *WorkflowEventsMutation) WorkflowCleared() bool
WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.
func (*WorkflowEventsMutation) WorkflowID ¶
func (m *WorkflowEventsMutation) WorkflowID() (id uuid.UUID, exists bool)
WorkflowID returns the "workflow" edge ID in the mutation.
func (*WorkflowEventsMutation) WorkflowIDs ¶
func (m *WorkflowEventsMutation) WorkflowIDs() (ids []uuid.UUID)
WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.
func (*WorkflowEventsMutation) WorkflowinstanceCleared ¶
func (m *WorkflowEventsMutation) WorkflowinstanceCleared() bool
WorkflowinstanceCleared reports if the "workflowinstance" edge to the WorkflowInstance entity was cleared.
func (*WorkflowEventsMutation) WorkflowinstanceID ¶
func (m *WorkflowEventsMutation) WorkflowinstanceID() (id int, exists bool)
WorkflowinstanceID returns the "workflowinstance" edge ID in the mutation.
func (*WorkflowEventsMutation) WorkflowinstanceIDs ¶
func (m *WorkflowEventsMutation) WorkflowinstanceIDs() (ids []int)
WorkflowinstanceIDs returns the "workflowinstance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowinstanceID instead. It exists only for internal usage by the builders.
type WorkflowEventsQuery ¶
type WorkflowEventsQuery struct {
// contains filtered or unexported fields
}
WorkflowEventsQuery is the builder for querying WorkflowEvents entities.
func (*WorkflowEventsQuery) All ¶
func (weq *WorkflowEventsQuery) All(ctx context.Context) ([]*WorkflowEvents, error)
All executes the query and returns a list of WorkflowEventsSlice.
func (*WorkflowEventsQuery) AllX ¶
func (weq *WorkflowEventsQuery) AllX(ctx context.Context) []*WorkflowEvents
AllX is like All, but panics if an error occurs.
func (*WorkflowEventsQuery) Clone ¶
func (weq *WorkflowEventsQuery) Clone() *WorkflowEventsQuery
Clone returns a duplicate of the WorkflowEventsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowEventsQuery) Count ¶
func (weq *WorkflowEventsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowEventsQuery) CountX ¶
func (weq *WorkflowEventsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowEventsQuery) Exist ¶
func (weq *WorkflowEventsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowEventsQuery) ExistX ¶
func (weq *WorkflowEventsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowEventsQuery) First ¶
func (weq *WorkflowEventsQuery) First(ctx context.Context) (*WorkflowEvents, error)
First returns the first WorkflowEvents entity from the query. Returns a *NotFoundError when no WorkflowEvents was found.
func (*WorkflowEventsQuery) FirstID ¶
func (weq *WorkflowEventsQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WorkflowEvents ID from the query. Returns a *NotFoundError when no WorkflowEvents ID was found.
func (*WorkflowEventsQuery) FirstIDX ¶
func (weq *WorkflowEventsQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowEventsQuery) FirstX ¶
func (weq *WorkflowEventsQuery) FirstX(ctx context.Context) *WorkflowEvents
FirstX is like First, but panics if an error occurs.
func (*WorkflowEventsQuery) GroupBy ¶
func (weq *WorkflowEventsQuery) GroupBy(field string, fields ...string) *WorkflowEventsGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Events []map[string]interface {} `json:"events,omitempty"` Count int `json:"count,omitempty"` } client.WorkflowEvents.Query(). GroupBy(workflowevents.FieldEvents). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowEventsQuery) IDs ¶
func (weq *WorkflowEventsQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of WorkflowEvents IDs.
func (*WorkflowEventsQuery) IDsX ¶
func (weq *WorkflowEventsQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowEventsQuery) Limit ¶
func (weq *WorkflowEventsQuery) Limit(limit int) *WorkflowEventsQuery
Limit adds a limit step to the query.
func (*WorkflowEventsQuery) Offset ¶
func (weq *WorkflowEventsQuery) Offset(offset int) *WorkflowEventsQuery
Offset adds an offset step to the query.
func (*WorkflowEventsQuery) Only ¶
func (weq *WorkflowEventsQuery) Only(ctx context.Context) (*WorkflowEvents, error)
Only returns a single WorkflowEvents entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowEvents entity is not found. Returns a *NotFoundError when no WorkflowEvents entities are found.
func (*WorkflowEventsQuery) OnlyID ¶
func (weq *WorkflowEventsQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WorkflowEvents ID in the query. Returns a *NotSingularError when exactly one WorkflowEvents ID is not found. Returns a *NotFoundError when no entities are found.
func (*WorkflowEventsQuery) OnlyIDX ¶
func (weq *WorkflowEventsQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowEventsQuery) OnlyX ¶
func (weq *WorkflowEventsQuery) OnlyX(ctx context.Context) *WorkflowEvents
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowEventsQuery) Order ¶
func (weq *WorkflowEventsQuery) Order(o ...OrderFunc) *WorkflowEventsQuery
Order adds an order step to the query.
func (*WorkflowEventsQuery) QueryWfeventswait ¶
func (weq *WorkflowEventsQuery) QueryWfeventswait() *WorkflowEventsWaitQuery
QueryWfeventswait chains the current query on the "wfeventswait" edge.
func (*WorkflowEventsQuery) QueryWorkflow ¶
func (weq *WorkflowEventsQuery) QueryWorkflow() *WorkflowQuery
QueryWorkflow chains the current query on the "workflow" edge.
func (*WorkflowEventsQuery) QueryWorkflowinstance ¶
func (weq *WorkflowEventsQuery) QueryWorkflowinstance() *WorkflowInstanceQuery
QueryWorkflowinstance chains the current query on the "workflowinstance" edge.
func (*WorkflowEventsQuery) Select ¶
func (weq *WorkflowEventsQuery) Select(fields ...string) *WorkflowEventsSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Events []map[string]interface {} `json:"events,omitempty"` } client.WorkflowEvents.Query(). Select(workflowevents.FieldEvents). Scan(ctx, &v)
func (*WorkflowEventsQuery) Unique ¶ added in v0.2.1
func (weq *WorkflowEventsQuery) Unique(unique bool) *WorkflowEventsQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WorkflowEventsQuery) Where ¶
func (weq *WorkflowEventsQuery) Where(ps ...predicate.WorkflowEvents) *WorkflowEventsQuery
Where adds a new predicate for the WorkflowEventsQuery builder.
func (*WorkflowEventsQuery) WithWfeventswait ¶
func (weq *WorkflowEventsQuery) WithWfeventswait(opts ...func(*WorkflowEventsWaitQuery)) *WorkflowEventsQuery
WithWfeventswait tells the query-builder to eager-load the nodes that are connected to the "wfeventswait" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowEventsQuery) WithWorkflow ¶
func (weq *WorkflowEventsQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowEventsQuery
WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowEventsQuery) WithWorkflowinstance ¶
func (weq *WorkflowEventsQuery) WithWorkflowinstance(opts ...func(*WorkflowInstanceQuery)) *WorkflowEventsQuery
WithWorkflowinstance tells the query-builder to eager-load the nodes that are connected to the "workflowinstance" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowEventsSelect ¶
type WorkflowEventsSelect struct { *WorkflowEventsQuery // contains filtered or unexported fields }
WorkflowEventsSelect is the builder for selecting fields of WorkflowEvents entities.
func (*WorkflowEventsSelect) Bool ¶
func (wes *WorkflowEventsSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) BoolX ¶
func (wes *WorkflowEventsSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowEventsSelect) Bools ¶
func (wes *WorkflowEventsSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) BoolsX ¶
func (wes *WorkflowEventsSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowEventsSelect) Float64 ¶
func (wes *WorkflowEventsSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) Float64X ¶
func (wes *WorkflowEventsSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowEventsSelect) Float64s ¶
func (wes *WorkflowEventsSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) Float64sX ¶
func (wes *WorkflowEventsSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowEventsSelect) Int ¶
func (wes *WorkflowEventsSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) IntX ¶
func (wes *WorkflowEventsSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowEventsSelect) Ints ¶
func (wes *WorkflowEventsSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) IntsX ¶
func (wes *WorkflowEventsSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowEventsSelect) Scan ¶
func (wes *WorkflowEventsSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowEventsSelect) ScanX ¶
func (wes *WorkflowEventsSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowEventsSelect) String ¶
func (wes *WorkflowEventsSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsSelect) StringX ¶
func (wes *WorkflowEventsSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowEventsSlice ¶
type WorkflowEventsSlice []*WorkflowEvents
WorkflowEventsSlice is a parsable slice of WorkflowEvents.
type WorkflowEventsUpdate ¶
type WorkflowEventsUpdate struct {
// contains filtered or unexported fields
}
WorkflowEventsUpdate is the builder for updating WorkflowEvents entities.
func (*WorkflowEventsUpdate) AddCount ¶
func (weu *WorkflowEventsUpdate) AddCount(i int) *WorkflowEventsUpdate
AddCount adds i to the "count" field.
func (*WorkflowEventsUpdate) AddWfeventswait ¶
func (weu *WorkflowEventsUpdate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate
AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.
func (*WorkflowEventsUpdate) AddWfeventswaitIDs ¶
func (weu *WorkflowEventsUpdate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate
AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.
func (*WorkflowEventsUpdate) ClearSignature ¶
func (weu *WorkflowEventsUpdate) ClearSignature() *WorkflowEventsUpdate
ClearSignature clears the value of the "signature" field.
func (*WorkflowEventsUpdate) ClearWfeventswait ¶
func (weu *WorkflowEventsUpdate) ClearWfeventswait() *WorkflowEventsUpdate
ClearWfeventswait clears all "wfeventswait" edges to the WorkflowEventsWait entity.
func (*WorkflowEventsUpdate) ClearWorkflow ¶
func (weu *WorkflowEventsUpdate) ClearWorkflow() *WorkflowEventsUpdate
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowEventsUpdate) ClearWorkflowinstance ¶
func (weu *WorkflowEventsUpdate) ClearWorkflowinstance() *WorkflowEventsUpdate
ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsUpdate) Exec ¶
func (weu *WorkflowEventsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsUpdate) ExecX ¶
func (weu *WorkflowEventsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsUpdate) Mutation ¶
func (weu *WorkflowEventsUpdate) Mutation() *WorkflowEventsMutation
Mutation returns the WorkflowEventsMutation object of the builder.
func (*WorkflowEventsUpdate) RemoveWfeventswait ¶
func (weu *WorkflowEventsUpdate) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate
RemoveWfeventswait removes "wfeventswait" edges to WorkflowEventsWait entities.
func (*WorkflowEventsUpdate) RemoveWfeventswaitIDs ¶
func (weu *WorkflowEventsUpdate) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate
RemoveWfeventswaitIDs removes the "wfeventswait" edge to WorkflowEventsWait entities by IDs.
func (*WorkflowEventsUpdate) Save ¶
func (weu *WorkflowEventsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowEventsUpdate) SaveX ¶
func (weu *WorkflowEventsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowEventsUpdate) SetCorrelations ¶
func (weu *WorkflowEventsUpdate) SetCorrelations(s []string) *WorkflowEventsUpdate
SetCorrelations sets the "correlations" field.
func (*WorkflowEventsUpdate) SetCount ¶
func (weu *WorkflowEventsUpdate) SetCount(i int) *WorkflowEventsUpdate
SetCount sets the "count" field.
func (*WorkflowEventsUpdate) SetEvents ¶
func (weu *WorkflowEventsUpdate) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdate
SetEvents sets the "events" field.
func (*WorkflowEventsUpdate) SetNillableWorkflowinstanceID ¶
func (weu *WorkflowEventsUpdate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdate
SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.
func (*WorkflowEventsUpdate) SetSignature ¶
func (weu *WorkflowEventsUpdate) SetSignature(b []byte) *WorkflowEventsUpdate
SetSignature sets the "signature" field.
func (*WorkflowEventsUpdate) SetWorkflow ¶
func (weu *WorkflowEventsUpdate) SetWorkflow(w *Workflow) *WorkflowEventsUpdate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowEventsUpdate) SetWorkflowID ¶
func (weu *WorkflowEventsUpdate) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowEventsUpdate) SetWorkflowinstance ¶
func (weu *WorkflowEventsUpdate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdate
SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsUpdate) SetWorkflowinstanceID ¶
func (weu *WorkflowEventsUpdate) SetWorkflowinstanceID(id int) *WorkflowEventsUpdate
SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.
func (*WorkflowEventsUpdate) Where ¶
func (weu *WorkflowEventsUpdate) Where(ps ...predicate.WorkflowEvents) *WorkflowEventsUpdate
Where appends a list predicates to the WorkflowEventsUpdate builder.
type WorkflowEventsUpdateOne ¶
type WorkflowEventsUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowEventsUpdateOne is the builder for updating a single WorkflowEvents entity.
func (*WorkflowEventsUpdateOne) AddCount ¶
func (weuo *WorkflowEventsUpdateOne) AddCount(i int) *WorkflowEventsUpdateOne
AddCount adds i to the "count" field.
func (*WorkflowEventsUpdateOne) AddWfeventswait ¶
func (weuo *WorkflowEventsUpdateOne) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdateOne
AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.
func (*WorkflowEventsUpdateOne) AddWfeventswaitIDs ¶
func (weuo *WorkflowEventsUpdateOne) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne
AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.
func (*WorkflowEventsUpdateOne) ClearSignature ¶
func (weuo *WorkflowEventsUpdateOne) ClearSignature() *WorkflowEventsUpdateOne
ClearSignature clears the value of the "signature" field.
func (*WorkflowEventsUpdateOne) ClearWfeventswait ¶
func (weuo *WorkflowEventsUpdateOne) ClearWfeventswait() *WorkflowEventsUpdateOne
ClearWfeventswait clears all "wfeventswait" edges to the WorkflowEventsWait entity.
func (*WorkflowEventsUpdateOne) ClearWorkflow ¶
func (weuo *WorkflowEventsUpdateOne) ClearWorkflow() *WorkflowEventsUpdateOne
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowEventsUpdateOne) ClearWorkflowinstance ¶
func (weuo *WorkflowEventsUpdateOne) ClearWorkflowinstance() *WorkflowEventsUpdateOne
ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsUpdateOne) Exec ¶
func (weuo *WorkflowEventsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowEventsUpdateOne) ExecX ¶
func (weuo *WorkflowEventsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsUpdateOne) Mutation ¶
func (weuo *WorkflowEventsUpdateOne) Mutation() *WorkflowEventsMutation
Mutation returns the WorkflowEventsMutation object of the builder.
func (*WorkflowEventsUpdateOne) RemoveWfeventswait ¶
func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdateOne
RemoveWfeventswait removes "wfeventswait" edges to WorkflowEventsWait entities.
func (*WorkflowEventsUpdateOne) RemoveWfeventswaitIDs ¶
func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne
RemoveWfeventswaitIDs removes the "wfeventswait" edge to WorkflowEventsWait entities by IDs.
func (*WorkflowEventsUpdateOne) Save ¶
func (weuo *WorkflowEventsUpdateOne) Save(ctx context.Context) (*WorkflowEvents, error)
Save executes the query and returns the updated WorkflowEvents entity.
func (*WorkflowEventsUpdateOne) SaveX ¶
func (weuo *WorkflowEventsUpdateOne) SaveX(ctx context.Context) *WorkflowEvents
SaveX is like Save, but panics if an error occurs.
func (*WorkflowEventsUpdateOne) Select ¶ added in v0.2.1
func (weuo *WorkflowEventsUpdateOne) Select(field string, fields ...string) *WorkflowEventsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowEventsUpdateOne) SetCorrelations ¶
func (weuo *WorkflowEventsUpdateOne) SetCorrelations(s []string) *WorkflowEventsUpdateOne
SetCorrelations sets the "correlations" field.
func (*WorkflowEventsUpdateOne) SetCount ¶
func (weuo *WorkflowEventsUpdateOne) SetCount(i int) *WorkflowEventsUpdateOne
SetCount sets the "count" field.
func (*WorkflowEventsUpdateOne) SetEvents ¶
func (weuo *WorkflowEventsUpdateOne) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdateOne
SetEvents sets the "events" field.
func (*WorkflowEventsUpdateOne) SetNillableWorkflowinstanceID ¶
func (weuo *WorkflowEventsUpdateOne) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdateOne
SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.
func (*WorkflowEventsUpdateOne) SetSignature ¶
func (weuo *WorkflowEventsUpdateOne) SetSignature(b []byte) *WorkflowEventsUpdateOne
SetSignature sets the "signature" field.
func (*WorkflowEventsUpdateOne) SetWorkflow ¶
func (weuo *WorkflowEventsUpdateOne) SetWorkflow(w *Workflow) *WorkflowEventsUpdateOne
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowEventsUpdateOne) SetWorkflowID ¶
func (weuo *WorkflowEventsUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdateOne
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowEventsUpdateOne) SetWorkflowinstance ¶
func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdateOne
SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.
func (*WorkflowEventsUpdateOne) SetWorkflowinstanceID ¶
func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstanceID(id int) *WorkflowEventsUpdateOne
SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.
type WorkflowEventsWait ¶
type WorkflowEventsWait struct { // ID of the ent. ID int `json:"id,omitempty"` // Events holds the value of the "events" field. Events map[string]interface{} `json:"events,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowEventsWaitQuery when eager-loading is set. Edges WorkflowEventsWaitEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowEventsWait is the model entity for the WorkflowEventsWait schema.
func (*WorkflowEventsWait) QueryWorkflowevent ¶
func (wew *WorkflowEventsWait) QueryWorkflowevent() *WorkflowEventsQuery
QueryWorkflowevent queries the "workflowevent" edge of the WorkflowEventsWait entity.
func (*WorkflowEventsWait) String ¶
func (wew *WorkflowEventsWait) String() string
String implements the fmt.Stringer.
func (*WorkflowEventsWait) Unwrap ¶
func (wew *WorkflowEventsWait) Unwrap() *WorkflowEventsWait
Unwrap unwraps the WorkflowEventsWait entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WorkflowEventsWait) Update ¶
func (wew *WorkflowEventsWait) Update() *WorkflowEventsWaitUpdateOne
Update returns a builder for updating this WorkflowEventsWait. Note that you need to call WorkflowEventsWait.Unwrap() before calling this method if this WorkflowEventsWait was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowEventsWaitClient ¶
type WorkflowEventsWaitClient struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitClient is a client for the WorkflowEventsWait schema.
func NewWorkflowEventsWaitClient ¶
func NewWorkflowEventsWaitClient(c config) *WorkflowEventsWaitClient
NewWorkflowEventsWaitClient returns a client for the WorkflowEventsWait from the given config.
func (*WorkflowEventsWaitClient) Create ¶
func (c *WorkflowEventsWaitClient) Create() *WorkflowEventsWaitCreate
Create returns a create builder for WorkflowEventsWait.
func (*WorkflowEventsWaitClient) CreateBulk ¶
func (c *WorkflowEventsWaitClient) CreateBulk(builders ...*WorkflowEventsWaitCreate) *WorkflowEventsWaitCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowEventsWait entities.
func (*WorkflowEventsWaitClient) Delete ¶
func (c *WorkflowEventsWaitClient) Delete() *WorkflowEventsWaitDelete
Delete returns a delete builder for WorkflowEventsWait.
func (*WorkflowEventsWaitClient) DeleteOne ¶
func (c *WorkflowEventsWaitClient) DeleteOne(wew *WorkflowEventsWait) *WorkflowEventsWaitDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*WorkflowEventsWaitClient) DeleteOneID ¶
func (c *WorkflowEventsWaitClient) DeleteOneID(id int) *WorkflowEventsWaitDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*WorkflowEventsWaitClient) Get ¶
func (c *WorkflowEventsWaitClient) Get(ctx context.Context, id int) (*WorkflowEventsWait, error)
Get returns a WorkflowEventsWait entity by its id.
func (*WorkflowEventsWaitClient) GetX ¶
func (c *WorkflowEventsWaitClient) GetX(ctx context.Context, id int) *WorkflowEventsWait
GetX is like Get, but panics if an error occurs.
func (*WorkflowEventsWaitClient) Hooks ¶
func (c *WorkflowEventsWaitClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowEventsWaitClient) Query ¶
func (c *WorkflowEventsWaitClient) Query() *WorkflowEventsWaitQuery
Query returns a query builder for WorkflowEventsWait.
func (*WorkflowEventsWaitClient) QueryWorkflowevent ¶
func (c *WorkflowEventsWaitClient) QueryWorkflowevent(wew *WorkflowEventsWait) *WorkflowEventsQuery
QueryWorkflowevent queries the workflowevent edge of a WorkflowEventsWait.
func (*WorkflowEventsWaitClient) Update ¶
func (c *WorkflowEventsWaitClient) Update() *WorkflowEventsWaitUpdate
Update returns an update builder for WorkflowEventsWait.
func (*WorkflowEventsWaitClient) UpdateOne ¶
func (c *WorkflowEventsWaitClient) UpdateOne(wew *WorkflowEventsWait) *WorkflowEventsWaitUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowEventsWaitClient) UpdateOneID ¶
func (c *WorkflowEventsWaitClient) UpdateOneID(id int) *WorkflowEventsWaitUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowEventsWaitClient) Use ¶
func (c *WorkflowEventsWaitClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workfloweventswait.Hooks(f(g(h())))`.
type WorkflowEventsWaitCreate ¶
type WorkflowEventsWaitCreate struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitCreate is the builder for creating a WorkflowEventsWait entity.
func (*WorkflowEventsWaitCreate) Exec ¶ added in v0.4.0
func (wewc *WorkflowEventsWaitCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsWaitCreate) ExecX ¶ added in v0.4.0
func (wewc *WorkflowEventsWaitCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsWaitCreate) Mutation ¶
func (wewc *WorkflowEventsWaitCreate) Mutation() *WorkflowEventsWaitMutation
Mutation returns the WorkflowEventsWaitMutation object of the builder.
func (*WorkflowEventsWaitCreate) Save ¶
func (wewc *WorkflowEventsWaitCreate) Save(ctx context.Context) (*WorkflowEventsWait, error)
Save creates the WorkflowEventsWait in the database.
func (*WorkflowEventsWaitCreate) SaveX ¶
func (wewc *WorkflowEventsWaitCreate) SaveX(ctx context.Context) *WorkflowEventsWait
SaveX calls Save and panics if Save returns an error.
func (*WorkflowEventsWaitCreate) SetEvents ¶
func (wewc *WorkflowEventsWaitCreate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitCreate
SetEvents sets the "events" field.
func (*WorkflowEventsWaitCreate) SetWorkflowevent ¶
func (wewc *WorkflowEventsWaitCreate) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitCreate
SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitCreate) SetWorkfloweventID ¶
func (wewc *WorkflowEventsWaitCreate) SetWorkfloweventID(id int) *WorkflowEventsWaitCreate
SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.
type WorkflowEventsWaitCreateBulk ¶
type WorkflowEventsWaitCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitCreateBulk is the builder for creating many WorkflowEventsWait entities in bulk.
func (*WorkflowEventsWaitCreateBulk) Exec ¶ added in v0.4.0
func (wewcb *WorkflowEventsWaitCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsWaitCreateBulk) ExecX ¶ added in v0.4.0
func (wewcb *WorkflowEventsWaitCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsWaitCreateBulk) Save ¶
func (wewcb *WorkflowEventsWaitCreateBulk) Save(ctx context.Context) ([]*WorkflowEventsWait, error)
Save creates the WorkflowEventsWait entities in the database.
func (*WorkflowEventsWaitCreateBulk) SaveX ¶
func (wewcb *WorkflowEventsWaitCreateBulk) SaveX(ctx context.Context) []*WorkflowEventsWait
SaveX is like Save, but panics if an error occurs.
type WorkflowEventsWaitDelete ¶
type WorkflowEventsWaitDelete struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitDelete is the builder for deleting a WorkflowEventsWait entity.
func (*WorkflowEventsWaitDelete) Exec ¶
func (wewd *WorkflowEventsWaitDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowEventsWaitDelete) ExecX ¶
func (wewd *WorkflowEventsWaitDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsWaitDelete) Where ¶
func (wewd *WorkflowEventsWaitDelete) Where(ps ...predicate.WorkflowEventsWait) *WorkflowEventsWaitDelete
Where appends a list predicates to the WorkflowEventsWaitDelete builder.
type WorkflowEventsWaitDeleteOne ¶
type WorkflowEventsWaitDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitDeleteOne is the builder for deleting a single WorkflowEventsWait entity.
func (*WorkflowEventsWaitDeleteOne) Exec ¶
func (wewdo *WorkflowEventsWaitDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowEventsWaitDeleteOne) ExecX ¶
func (wewdo *WorkflowEventsWaitDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowEventsWaitEdges ¶
type WorkflowEventsWaitEdges struct { // Workflowevent holds the value of the workflowevent edge. Workflowevent *WorkflowEvents `json:"workflowevent,omitempty"` // contains filtered or unexported fields }
WorkflowEventsWaitEdges holds the relations/edges for other nodes in the graph.
func (WorkflowEventsWaitEdges) WorkfloweventOrErr ¶
func (e WorkflowEventsWaitEdges) WorkfloweventOrErr() (*WorkflowEvents, error)
WorkfloweventOrErr returns the Workflowevent value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorkflowEventsWaitGroupBy ¶
type WorkflowEventsWaitGroupBy struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitGroupBy is the group-by builder for WorkflowEventsWait entities.
func (*WorkflowEventsWaitGroupBy) Aggregate ¶
func (wewgb *WorkflowEventsWaitGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowEventsWaitGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowEventsWaitGroupBy) Bool ¶
func (wewgb *WorkflowEventsWaitGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) BoolX ¶
func (wewgb *WorkflowEventsWaitGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Bools ¶
func (wewgb *WorkflowEventsWaitGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) BoolsX ¶
func (wewgb *WorkflowEventsWaitGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Float64 ¶
func (wewgb *WorkflowEventsWaitGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) Float64X ¶
func (wewgb *WorkflowEventsWaitGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Float64s ¶
func (wewgb *WorkflowEventsWaitGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) Float64sX ¶
func (wewgb *WorkflowEventsWaitGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Int ¶
func (wewgb *WorkflowEventsWaitGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) IntX ¶
func (wewgb *WorkflowEventsWaitGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Ints ¶
func (wewgb *WorkflowEventsWaitGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) IntsX ¶
func (wewgb *WorkflowEventsWaitGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) Scan ¶
func (wewgb *WorkflowEventsWaitGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*WorkflowEventsWaitGroupBy) ScanX ¶
func (wewgb *WorkflowEventsWaitGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowEventsWaitGroupBy) String ¶
func (wewgb *WorkflowEventsWaitGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowEventsWaitGroupBy) StringX ¶
func (wewgb *WorkflowEventsWaitGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowEventsWaitMutation ¶
type WorkflowEventsWaitMutation struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitMutation represents an operation that mutates the WorkflowEventsWait nodes in the graph.
func (*WorkflowEventsWaitMutation) AddField ¶
func (m *WorkflowEventsWaitMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowEventsWaitMutation) AddedEdges ¶
func (m *WorkflowEventsWaitMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowEventsWaitMutation) AddedField ¶
func (m *WorkflowEventsWaitMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowEventsWaitMutation) AddedFields ¶
func (m *WorkflowEventsWaitMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowEventsWaitMutation) AddedIDs ¶
func (m *WorkflowEventsWaitMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowEventsWaitMutation) ClearEdge ¶
func (m *WorkflowEventsWaitMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WorkflowEventsWaitMutation) ClearField ¶
func (m *WorkflowEventsWaitMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowEventsWaitMutation) ClearWorkflowevent ¶
func (m *WorkflowEventsWaitMutation) ClearWorkflowevent()
ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitMutation) ClearedEdges ¶
func (m *WorkflowEventsWaitMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowEventsWaitMutation) ClearedFields ¶
func (m *WorkflowEventsWaitMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowEventsWaitMutation) Client ¶
func (m WorkflowEventsWaitMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WorkflowEventsWaitMutation) EdgeCleared ¶
func (m *WorkflowEventsWaitMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowEventsWaitMutation) Events ¶
func (m *WorkflowEventsWaitMutation) Events() (r map[string]interface{}, exists bool)
Events returns the value of the "events" field in the mutation.
func (*WorkflowEventsWaitMutation) Field ¶
func (m *WorkflowEventsWaitMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowEventsWaitMutation) FieldCleared ¶
func (m *WorkflowEventsWaitMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowEventsWaitMutation) Fields ¶
func (m *WorkflowEventsWaitMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WorkflowEventsWaitMutation) ID ¶
func (m *WorkflowEventsWaitMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WorkflowEventsWaitMutation) OldEvents ¶
func (m *WorkflowEventsWaitMutation) OldEvents(ctx context.Context) (v map[string]interface{}, err error)
OldEvents returns the old "events" field's value of the WorkflowEventsWait entity. If the WorkflowEventsWait object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowEventsWaitMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WorkflowEventsWaitMutation) Op ¶
func (m *WorkflowEventsWaitMutation) Op() Op
Op returns the operation name.
func (*WorkflowEventsWaitMutation) RemovedEdges ¶
func (m *WorkflowEventsWaitMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowEventsWaitMutation) RemovedIDs ¶
func (m *WorkflowEventsWaitMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WorkflowEventsWaitMutation) ResetEdge ¶
func (m *WorkflowEventsWaitMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WorkflowEventsWaitMutation) ResetEvents ¶
func (m *WorkflowEventsWaitMutation) ResetEvents()
ResetEvents resets all changes to the "events" field.
func (*WorkflowEventsWaitMutation) ResetField ¶
func (m *WorkflowEventsWaitMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowEventsWaitMutation) ResetWorkflowevent ¶
func (m *WorkflowEventsWaitMutation) ResetWorkflowevent()
ResetWorkflowevent resets all changes to the "workflowevent" edge.
func (*WorkflowEventsWaitMutation) SetEvents ¶
func (m *WorkflowEventsWaitMutation) SetEvents(value map[string]interface{})
SetEvents sets the "events" field.
func (*WorkflowEventsWaitMutation) SetField ¶
func (m *WorkflowEventsWaitMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowEventsWaitMutation) SetWorkfloweventID ¶
func (m *WorkflowEventsWaitMutation) SetWorkfloweventID(id int)
SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by id.
func (WorkflowEventsWaitMutation) Tx ¶
func (m WorkflowEventsWaitMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowEventsWaitMutation) Type ¶
func (m *WorkflowEventsWaitMutation) Type() string
Type returns the node type of this mutation (WorkflowEventsWait).
func (*WorkflowEventsWaitMutation) Where ¶ added in v0.4.0
func (m *WorkflowEventsWaitMutation) Where(ps ...predicate.WorkflowEventsWait)
Where appends a list predicates to the WorkflowEventsWaitMutation builder.
func (*WorkflowEventsWaitMutation) WorkfloweventCleared ¶
func (m *WorkflowEventsWaitMutation) WorkfloweventCleared() bool
WorkfloweventCleared reports if the "workflowevent" edge to the WorkflowEvents entity was cleared.
func (*WorkflowEventsWaitMutation) WorkfloweventID ¶
func (m *WorkflowEventsWaitMutation) WorkfloweventID() (id int, exists bool)
WorkfloweventID returns the "workflowevent" edge ID in the mutation.
func (*WorkflowEventsWaitMutation) WorkfloweventIDs ¶
func (m *WorkflowEventsWaitMutation) WorkfloweventIDs() (ids []int)
WorkfloweventIDs returns the "workflowevent" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkfloweventID instead. It exists only for internal usage by the builders.
type WorkflowEventsWaitQuery ¶
type WorkflowEventsWaitQuery struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitQuery is the builder for querying WorkflowEventsWait entities.
func (*WorkflowEventsWaitQuery) All ¶
func (wewq *WorkflowEventsWaitQuery) All(ctx context.Context) ([]*WorkflowEventsWait, error)
All executes the query and returns a list of WorkflowEventsWaits.
func (*WorkflowEventsWaitQuery) AllX ¶
func (wewq *WorkflowEventsWaitQuery) AllX(ctx context.Context) []*WorkflowEventsWait
AllX is like All, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) Clone ¶
func (wewq *WorkflowEventsWaitQuery) Clone() *WorkflowEventsWaitQuery
Clone returns a duplicate of the WorkflowEventsWaitQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowEventsWaitQuery) Count ¶
func (wewq *WorkflowEventsWaitQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowEventsWaitQuery) CountX ¶
func (wewq *WorkflowEventsWaitQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) Exist ¶
func (wewq *WorkflowEventsWaitQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowEventsWaitQuery) ExistX ¶
func (wewq *WorkflowEventsWaitQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) First ¶
func (wewq *WorkflowEventsWaitQuery) First(ctx context.Context) (*WorkflowEventsWait, error)
First returns the first WorkflowEventsWait entity from the query. Returns a *NotFoundError when no WorkflowEventsWait was found.
func (*WorkflowEventsWaitQuery) FirstID ¶
func (wewq *WorkflowEventsWaitQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WorkflowEventsWait ID from the query. Returns a *NotFoundError when no WorkflowEventsWait ID was found.
func (*WorkflowEventsWaitQuery) FirstIDX ¶
func (wewq *WorkflowEventsWaitQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) FirstX ¶
func (wewq *WorkflowEventsWaitQuery) FirstX(ctx context.Context) *WorkflowEventsWait
FirstX is like First, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) GroupBy ¶
func (wewq *WorkflowEventsWaitQuery) GroupBy(field string, fields ...string) *WorkflowEventsWaitGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Events map[string]interface {} `json:"events,omitempty"` Count int `json:"count,omitempty"` } client.WorkflowEventsWait.Query(). GroupBy(workfloweventswait.FieldEvents). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowEventsWaitQuery) IDs ¶
func (wewq *WorkflowEventsWaitQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of WorkflowEventsWait IDs.
func (*WorkflowEventsWaitQuery) IDsX ¶
func (wewq *WorkflowEventsWaitQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) Limit ¶
func (wewq *WorkflowEventsWaitQuery) Limit(limit int) *WorkflowEventsWaitQuery
Limit adds a limit step to the query.
func (*WorkflowEventsWaitQuery) Offset ¶
func (wewq *WorkflowEventsWaitQuery) Offset(offset int) *WorkflowEventsWaitQuery
Offset adds an offset step to the query.
func (*WorkflowEventsWaitQuery) Only ¶
func (wewq *WorkflowEventsWaitQuery) Only(ctx context.Context) (*WorkflowEventsWait, error)
Only returns a single WorkflowEventsWait entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowEventsWait entity is not found. Returns a *NotFoundError when no WorkflowEventsWait entities are found.
func (*WorkflowEventsWaitQuery) OnlyID ¶
func (wewq *WorkflowEventsWaitQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WorkflowEventsWait ID in the query. Returns a *NotSingularError when exactly one WorkflowEventsWait ID is not found. Returns a *NotFoundError when no entities are found.
func (*WorkflowEventsWaitQuery) OnlyIDX ¶
func (wewq *WorkflowEventsWaitQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) OnlyX ¶
func (wewq *WorkflowEventsWaitQuery) OnlyX(ctx context.Context) *WorkflowEventsWait
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowEventsWaitQuery) Order ¶
func (wewq *WorkflowEventsWaitQuery) Order(o ...OrderFunc) *WorkflowEventsWaitQuery
Order adds an order step to the query.
func (*WorkflowEventsWaitQuery) QueryWorkflowevent ¶
func (wewq *WorkflowEventsWaitQuery) QueryWorkflowevent() *WorkflowEventsQuery
QueryWorkflowevent chains the current query on the "workflowevent" edge.
func (*WorkflowEventsWaitQuery) Select ¶
func (wewq *WorkflowEventsWaitQuery) Select(fields ...string) *WorkflowEventsWaitSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Events map[string]interface {} `json:"events,omitempty"` } client.WorkflowEventsWait.Query(). Select(workfloweventswait.FieldEvents). Scan(ctx, &v)
func (*WorkflowEventsWaitQuery) Unique ¶ added in v0.2.1
func (wewq *WorkflowEventsWaitQuery) Unique(unique bool) *WorkflowEventsWaitQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WorkflowEventsWaitQuery) Where ¶
func (wewq *WorkflowEventsWaitQuery) Where(ps ...predicate.WorkflowEventsWait) *WorkflowEventsWaitQuery
Where adds a new predicate for the WorkflowEventsWaitQuery builder.
func (*WorkflowEventsWaitQuery) WithWorkflowevent ¶
func (wewq *WorkflowEventsWaitQuery) WithWorkflowevent(opts ...func(*WorkflowEventsQuery)) *WorkflowEventsWaitQuery
WithWorkflowevent tells the query-builder to eager-load the nodes that are connected to the "workflowevent" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowEventsWaitSelect ¶
type WorkflowEventsWaitSelect struct { *WorkflowEventsWaitQuery // contains filtered or unexported fields }
WorkflowEventsWaitSelect is the builder for selecting fields of WorkflowEventsWait entities.
func (*WorkflowEventsWaitSelect) Bool ¶
func (wews *WorkflowEventsWaitSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) BoolX ¶
func (wews *WorkflowEventsWaitSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Bools ¶
func (wews *WorkflowEventsWaitSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) BoolsX ¶
func (wews *WorkflowEventsWaitSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Float64 ¶
func (wews *WorkflowEventsWaitSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) Float64X ¶
func (wews *WorkflowEventsWaitSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Float64s ¶
func (wews *WorkflowEventsWaitSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) Float64sX ¶
func (wews *WorkflowEventsWaitSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Int ¶
func (wews *WorkflowEventsWaitSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) IntX ¶
func (wews *WorkflowEventsWaitSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Ints ¶
func (wews *WorkflowEventsWaitSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) IntsX ¶
func (wews *WorkflowEventsWaitSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) Scan ¶
func (wews *WorkflowEventsWaitSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowEventsWaitSelect) ScanX ¶
func (wews *WorkflowEventsWaitSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowEventsWaitSelect) String ¶
func (wews *WorkflowEventsWaitSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowEventsWaitSelect) StringX ¶
func (wews *WorkflowEventsWaitSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowEventsWaitUpdate ¶
type WorkflowEventsWaitUpdate struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitUpdate is the builder for updating WorkflowEventsWait entities.
func (*WorkflowEventsWaitUpdate) ClearWorkflowevent ¶
func (wewu *WorkflowEventsWaitUpdate) ClearWorkflowevent() *WorkflowEventsWaitUpdate
ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitUpdate) Exec ¶
func (wewu *WorkflowEventsWaitUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowEventsWaitUpdate) ExecX ¶
func (wewu *WorkflowEventsWaitUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsWaitUpdate) Mutation ¶
func (wewu *WorkflowEventsWaitUpdate) Mutation() *WorkflowEventsWaitMutation
Mutation returns the WorkflowEventsWaitMutation object of the builder.
func (*WorkflowEventsWaitUpdate) Save ¶
func (wewu *WorkflowEventsWaitUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowEventsWaitUpdate) SaveX ¶
func (wewu *WorkflowEventsWaitUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowEventsWaitUpdate) SetEvents ¶
func (wewu *WorkflowEventsWaitUpdate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdate
SetEvents sets the "events" field.
func (*WorkflowEventsWaitUpdate) SetWorkflowevent ¶
func (wewu *WorkflowEventsWaitUpdate) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitUpdate
SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitUpdate) SetWorkfloweventID ¶
func (wewu *WorkflowEventsWaitUpdate) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdate
SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.
func (*WorkflowEventsWaitUpdate) Where ¶
func (wewu *WorkflowEventsWaitUpdate) Where(ps ...predicate.WorkflowEventsWait) *WorkflowEventsWaitUpdate
Where appends a list predicates to the WorkflowEventsWaitUpdate builder.
type WorkflowEventsWaitUpdateOne ¶
type WorkflowEventsWaitUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowEventsWaitUpdateOne is the builder for updating a single WorkflowEventsWait entity.
func (*WorkflowEventsWaitUpdateOne) ClearWorkflowevent ¶
func (wewuo *WorkflowEventsWaitUpdateOne) ClearWorkflowevent() *WorkflowEventsWaitUpdateOne
ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitUpdateOne) Exec ¶
func (wewuo *WorkflowEventsWaitUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowEventsWaitUpdateOne) ExecX ¶
func (wewuo *WorkflowEventsWaitUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowEventsWaitUpdateOne) Mutation ¶
func (wewuo *WorkflowEventsWaitUpdateOne) Mutation() *WorkflowEventsWaitMutation
Mutation returns the WorkflowEventsWaitMutation object of the builder.
func (*WorkflowEventsWaitUpdateOne) Save ¶
func (wewuo *WorkflowEventsWaitUpdateOne) Save(ctx context.Context) (*WorkflowEventsWait, error)
Save executes the query and returns the updated WorkflowEventsWait entity.
func (*WorkflowEventsWaitUpdateOne) SaveX ¶
func (wewuo *WorkflowEventsWaitUpdateOne) SaveX(ctx context.Context) *WorkflowEventsWait
SaveX is like Save, but panics if an error occurs.
func (*WorkflowEventsWaitUpdateOne) Select ¶ added in v0.2.1
func (wewuo *WorkflowEventsWaitUpdateOne) Select(field string, fields ...string) *WorkflowEventsWaitUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowEventsWaitUpdateOne) SetEvents ¶
func (wewuo *WorkflowEventsWaitUpdateOne) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdateOne
SetEvents sets the "events" field.
func (*WorkflowEventsWaitUpdateOne) SetWorkflowevent ¶
func (wewuo *WorkflowEventsWaitUpdateOne) SetWorkflowevent(w *WorkflowEvents) *WorkflowEventsWaitUpdateOne
SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.
func (*WorkflowEventsWaitUpdateOne) SetWorkfloweventID ¶
func (wewuo *WorkflowEventsWaitUpdateOne) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdateOne
SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.
type WorkflowEventsWaits ¶
type WorkflowEventsWaits []*WorkflowEventsWait
WorkflowEventsWaits is a parsable slice of WorkflowEventsWait.
type WorkflowGroupBy ¶
type WorkflowGroupBy struct {
// contains filtered or unexported fields
}
WorkflowGroupBy is the group-by builder for Workflow entities.
func (*WorkflowGroupBy) Aggregate ¶
func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowGroupBy) Bool ¶
func (wgb *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) BoolX ¶
func (wgb *WorkflowGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowGroupBy) Bools ¶
func (wgb *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) BoolsX ¶
func (wgb *WorkflowGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowGroupBy) Float64 ¶
func (wgb *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) Float64X ¶
func (wgb *WorkflowGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowGroupBy) Float64s ¶
func (wgb *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) Float64sX ¶
func (wgb *WorkflowGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowGroupBy) Int ¶
func (wgb *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) IntX ¶
func (wgb *WorkflowGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowGroupBy) Ints ¶
func (wgb *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) IntsX ¶
func (wgb *WorkflowGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowGroupBy) Scan ¶
func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*WorkflowGroupBy) ScanX ¶
func (wgb *WorkflowGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowGroupBy) String ¶
func (wgb *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowGroupBy) StringX ¶
func (wgb *WorkflowGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowInstance ¶
type WorkflowInstance struct { // ID of the ent. ID int `json:"id,omitempty"` // InstanceID holds the value of the "instanceID" field. InstanceID string `json:"instanceID,omitempty"` // InvokedBy holds the value of the "invokedBy" field. InvokedBy string `json:"invokedBy,omitempty"` // Status holds the value of the "status" field. Status string `json:"status,omitempty"` // Revision holds the value of the "revision" field. Revision int `json:"revision,omitempty"` // BeginTime holds the value of the "beginTime" field. BeginTime time.Time `json:"beginTime,omitempty"` // EndTime holds the value of the "endTime" field. EndTime time.Time `json:"endTime,omitempty"` // Flow holds the value of the "flow" field. Flow []string `json:"flow,omitempty"` // Input holds the value of the "input" field. Input string `json:"input,omitempty"` // Output holds the value of the "output" field. Output string `json:"output,omitempty"` // StateData holds the value of the "stateData" field. StateData string `json:"stateData,omitempty"` // Memory holds the value of the "memory" field. Memory string `json:"memory,omitempty"` // Deadline holds the value of the "deadline" field. Deadline time.Time `json:"deadline,omitempty"` // Attempts holds the value of the "attempts" field. Attempts int `json:"attempts,omitempty"` // ErrorCode holds the value of the "errorCode" field. ErrorCode string `json:"errorCode,omitempty"` // ErrorMessage holds the value of the "errorMessage" field. ErrorMessage string `json:"errorMessage,omitempty"` // StateBeginTime holds the value of the "stateBeginTime" field. StateBeginTime time.Time `json:"stateBeginTime,omitempty"` // Controller holds the value of the "controller" field. Controller string `json:"controller,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the WorkflowInstanceQuery when eager-loading is set. Edges WorkflowInstanceEdges `json:"edges"` // contains filtered or unexported fields }
WorkflowInstance is the model entity for the WorkflowInstance schema.
func (*WorkflowInstance) QueryInstance ¶
func (wi *WorkflowInstance) QueryInstance() *WorkflowEventsQuery
QueryInstance queries the "instance" edge of the WorkflowInstance entity.
func (*WorkflowInstance) QueryWorkflow ¶
func (wi *WorkflowInstance) QueryWorkflow() *WorkflowQuery
QueryWorkflow queries the "workflow" edge of the WorkflowInstance entity.
func (*WorkflowInstance) String ¶
func (wi *WorkflowInstance) String() string
String implements the fmt.Stringer.
func (*WorkflowInstance) Unwrap ¶
func (wi *WorkflowInstance) Unwrap() *WorkflowInstance
Unwrap unwraps the WorkflowInstance entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WorkflowInstance) Update ¶
func (wi *WorkflowInstance) Update() *WorkflowInstanceUpdateOne
Update returns a builder for updating this WorkflowInstance. Note that you need to call WorkflowInstance.Unwrap() before calling this method if this WorkflowInstance was returned from a transaction, and the transaction was committed or rolled back.
type WorkflowInstanceClient ¶
type WorkflowInstanceClient struct {
// contains filtered or unexported fields
}
WorkflowInstanceClient is a client for the WorkflowInstance schema.
func NewWorkflowInstanceClient ¶
func NewWorkflowInstanceClient(c config) *WorkflowInstanceClient
NewWorkflowInstanceClient returns a client for the WorkflowInstance from the given config.
func (*WorkflowInstanceClient) Create ¶
func (c *WorkflowInstanceClient) Create() *WorkflowInstanceCreate
Create returns a create builder for WorkflowInstance.
func (*WorkflowInstanceClient) CreateBulk ¶
func (c *WorkflowInstanceClient) CreateBulk(builders ...*WorkflowInstanceCreate) *WorkflowInstanceCreateBulk
CreateBulk returns a builder for creating a bulk of WorkflowInstance entities.
func (*WorkflowInstanceClient) Delete ¶
func (c *WorkflowInstanceClient) Delete() *WorkflowInstanceDelete
Delete returns a delete builder for WorkflowInstance.
func (*WorkflowInstanceClient) DeleteOne ¶
func (c *WorkflowInstanceClient) DeleteOne(wi *WorkflowInstance) *WorkflowInstanceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*WorkflowInstanceClient) DeleteOneID ¶
func (c *WorkflowInstanceClient) DeleteOneID(id int) *WorkflowInstanceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*WorkflowInstanceClient) Get ¶
func (c *WorkflowInstanceClient) Get(ctx context.Context, id int) (*WorkflowInstance, error)
Get returns a WorkflowInstance entity by its id.
func (*WorkflowInstanceClient) GetX ¶
func (c *WorkflowInstanceClient) GetX(ctx context.Context, id int) *WorkflowInstance
GetX is like Get, but panics if an error occurs.
func (*WorkflowInstanceClient) Hooks ¶
func (c *WorkflowInstanceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorkflowInstanceClient) Query ¶
func (c *WorkflowInstanceClient) Query() *WorkflowInstanceQuery
Query returns a query builder for WorkflowInstance.
func (*WorkflowInstanceClient) QueryInstance ¶
func (c *WorkflowInstanceClient) QueryInstance(wi *WorkflowInstance) *WorkflowEventsQuery
QueryInstance queries the instance edge of a WorkflowInstance.
func (*WorkflowInstanceClient) QueryWorkflow ¶
func (c *WorkflowInstanceClient) QueryWorkflow(wi *WorkflowInstance) *WorkflowQuery
QueryWorkflow queries the workflow edge of a WorkflowInstance.
func (*WorkflowInstanceClient) Update ¶
func (c *WorkflowInstanceClient) Update() *WorkflowInstanceUpdate
Update returns an update builder for WorkflowInstance.
func (*WorkflowInstanceClient) UpdateOne ¶
func (c *WorkflowInstanceClient) UpdateOne(wi *WorkflowInstance) *WorkflowInstanceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorkflowInstanceClient) UpdateOneID ¶
func (c *WorkflowInstanceClient) UpdateOneID(id int) *WorkflowInstanceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorkflowInstanceClient) Use ¶
func (c *WorkflowInstanceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowinstance.Hooks(f(g(h())))`.
type WorkflowInstanceCreate ¶
type WorkflowInstanceCreate struct {
// contains filtered or unexported fields
}
WorkflowInstanceCreate is the builder for creating a WorkflowInstance entity.
func (*WorkflowInstanceCreate) AddInstance ¶
func (wic *WorkflowInstanceCreate) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceCreate
AddInstance adds the "instance" edges to the WorkflowEvents entity.
func (*WorkflowInstanceCreate) AddInstanceIDs ¶
func (wic *WorkflowInstanceCreate) AddInstanceIDs(ids ...int) *WorkflowInstanceCreate
AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.
func (*WorkflowInstanceCreate) Exec ¶ added in v0.4.0
func (wic *WorkflowInstanceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowInstanceCreate) ExecX ¶ added in v0.4.0
func (wic *WorkflowInstanceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowInstanceCreate) Mutation ¶
func (wic *WorkflowInstanceCreate) Mutation() *WorkflowInstanceMutation
Mutation returns the WorkflowInstanceMutation object of the builder.
func (*WorkflowInstanceCreate) Save ¶
func (wic *WorkflowInstanceCreate) Save(ctx context.Context) (*WorkflowInstance, error)
Save creates the WorkflowInstance in the database.
func (*WorkflowInstanceCreate) SaveX ¶
func (wic *WorkflowInstanceCreate) SaveX(ctx context.Context) *WorkflowInstance
SaveX calls Save and panics if Save returns an error.
func (*WorkflowInstanceCreate) SetAttempts ¶
func (wic *WorkflowInstanceCreate) SetAttempts(i int) *WorkflowInstanceCreate
SetAttempts sets the "attempts" field.
func (*WorkflowInstanceCreate) SetBeginTime ¶
func (wic *WorkflowInstanceCreate) SetBeginTime(t time.Time) *WorkflowInstanceCreate
SetBeginTime sets the "beginTime" field.
func (*WorkflowInstanceCreate) SetController ¶ added in v0.2.3
func (wic *WorkflowInstanceCreate) SetController(s string) *WorkflowInstanceCreate
SetController sets the "controller" field.
func (*WorkflowInstanceCreate) SetDeadline ¶
func (wic *WorkflowInstanceCreate) SetDeadline(t time.Time) *WorkflowInstanceCreate
SetDeadline sets the "deadline" field.
func (*WorkflowInstanceCreate) SetEndTime ¶
func (wic *WorkflowInstanceCreate) SetEndTime(t time.Time) *WorkflowInstanceCreate
SetEndTime sets the "endTime" field.
func (*WorkflowInstanceCreate) SetErrorCode ¶
func (wic *WorkflowInstanceCreate) SetErrorCode(s string) *WorkflowInstanceCreate
SetErrorCode sets the "errorCode" field.
func (*WorkflowInstanceCreate) SetErrorMessage ¶
func (wic *WorkflowInstanceCreate) SetErrorMessage(s string) *WorkflowInstanceCreate
SetErrorMessage sets the "errorMessage" field.
func (*WorkflowInstanceCreate) SetFlow ¶
func (wic *WorkflowInstanceCreate) SetFlow(s []string) *WorkflowInstanceCreate
SetFlow sets the "flow" field.
func (*WorkflowInstanceCreate) SetInput ¶
func (wic *WorkflowInstanceCreate) SetInput(s string) *WorkflowInstanceCreate
SetInput sets the "input" field.
func (*WorkflowInstanceCreate) SetInstanceID ¶
func (wic *WorkflowInstanceCreate) SetInstanceID(s string) *WorkflowInstanceCreate
SetInstanceID sets the "instanceID" field.
func (*WorkflowInstanceCreate) SetInvokedBy ¶
func (wic *WorkflowInstanceCreate) SetInvokedBy(s string) *WorkflowInstanceCreate
SetInvokedBy sets the "invokedBy" field.
func (*WorkflowInstanceCreate) SetMemory ¶
func (wic *WorkflowInstanceCreate) SetMemory(s string) *WorkflowInstanceCreate
SetMemory sets the "memory" field.
func (*WorkflowInstanceCreate) SetNillableAttempts ¶
func (wic *WorkflowInstanceCreate) SetNillableAttempts(i *int) *WorkflowInstanceCreate
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableController ¶ added in v0.2.3
func (wic *WorkflowInstanceCreate) SetNillableController(s *string) *WorkflowInstanceCreate
SetNillableController sets the "controller" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableDeadline ¶
func (wic *WorkflowInstanceCreate) SetNillableDeadline(t *time.Time) *WorkflowInstanceCreate
SetNillableDeadline sets the "deadline" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableEndTime ¶
func (wic *WorkflowInstanceCreate) SetNillableEndTime(t *time.Time) *WorkflowInstanceCreate
SetNillableEndTime sets the "endTime" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableErrorCode ¶
func (wic *WorkflowInstanceCreate) SetNillableErrorCode(s *string) *WorkflowInstanceCreate
SetNillableErrorCode sets the "errorCode" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableErrorMessage ¶
func (wic *WorkflowInstanceCreate) SetNillableErrorMessage(s *string) *WorkflowInstanceCreate
SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableMemory ¶
func (wic *WorkflowInstanceCreate) SetNillableMemory(s *string) *WorkflowInstanceCreate
SetNillableMemory sets the "memory" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableOutput ¶
func (wic *WorkflowInstanceCreate) SetNillableOutput(s *string) *WorkflowInstanceCreate
SetNillableOutput sets the "output" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableStateBeginTime ¶ added in v0.1.3
func (wic *WorkflowInstanceCreate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceCreate
SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetNillableStateData ¶
func (wic *WorkflowInstanceCreate) SetNillableStateData(s *string) *WorkflowInstanceCreate
SetNillableStateData sets the "stateData" field if the given value is not nil.
func (*WorkflowInstanceCreate) SetOutput ¶
func (wic *WorkflowInstanceCreate) SetOutput(s string) *WorkflowInstanceCreate
SetOutput sets the "output" field.
func (*WorkflowInstanceCreate) SetRevision ¶
func (wic *WorkflowInstanceCreate) SetRevision(i int) *WorkflowInstanceCreate
SetRevision sets the "revision" field.
func (*WorkflowInstanceCreate) SetStateBeginTime ¶ added in v0.1.3
func (wic *WorkflowInstanceCreate) SetStateBeginTime(t time.Time) *WorkflowInstanceCreate
SetStateBeginTime sets the "stateBeginTime" field.
func (*WorkflowInstanceCreate) SetStateData ¶
func (wic *WorkflowInstanceCreate) SetStateData(s string) *WorkflowInstanceCreate
SetStateData sets the "stateData" field.
func (*WorkflowInstanceCreate) SetStatus ¶
func (wic *WorkflowInstanceCreate) SetStatus(s string) *WorkflowInstanceCreate
SetStatus sets the "status" field.
func (*WorkflowInstanceCreate) SetWorkflow ¶
func (wic *WorkflowInstanceCreate) SetWorkflow(w *Workflow) *WorkflowInstanceCreate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceCreate) SetWorkflowID ¶
func (wic *WorkflowInstanceCreate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceCreate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
type WorkflowInstanceCreateBulk ¶
type WorkflowInstanceCreateBulk struct {
// contains filtered or unexported fields
}
WorkflowInstanceCreateBulk is the builder for creating many WorkflowInstance entities in bulk.
func (*WorkflowInstanceCreateBulk) Exec ¶ added in v0.4.0
func (wicb *WorkflowInstanceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowInstanceCreateBulk) ExecX ¶ added in v0.4.0
func (wicb *WorkflowInstanceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowInstanceCreateBulk) Save ¶
func (wicb *WorkflowInstanceCreateBulk) Save(ctx context.Context) ([]*WorkflowInstance, error)
Save creates the WorkflowInstance entities in the database.
func (*WorkflowInstanceCreateBulk) SaveX ¶
func (wicb *WorkflowInstanceCreateBulk) SaveX(ctx context.Context) []*WorkflowInstance
SaveX is like Save, but panics if an error occurs.
type WorkflowInstanceDelete ¶
type WorkflowInstanceDelete struct {
// contains filtered or unexported fields
}
WorkflowInstanceDelete is the builder for deleting a WorkflowInstance entity.
func (*WorkflowInstanceDelete) Exec ¶
func (wid *WorkflowInstanceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorkflowInstanceDelete) ExecX ¶
func (wid *WorkflowInstanceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowInstanceDelete) Where ¶
func (wid *WorkflowInstanceDelete) Where(ps ...predicate.WorkflowInstance) *WorkflowInstanceDelete
Where appends a list predicates to the WorkflowInstanceDelete builder.
type WorkflowInstanceDeleteOne ¶
type WorkflowInstanceDeleteOne struct {
// contains filtered or unexported fields
}
WorkflowInstanceDeleteOne is the builder for deleting a single WorkflowInstance entity.
func (*WorkflowInstanceDeleteOne) Exec ¶
func (wido *WorkflowInstanceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorkflowInstanceDeleteOne) ExecX ¶
func (wido *WorkflowInstanceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WorkflowInstanceEdges ¶
type WorkflowInstanceEdges struct { // Workflow holds the value of the workflow edge. Workflow *Workflow `json:"workflow,omitempty"` // Instance holds the value of the instance edge. Instance []*WorkflowEvents `json:"instance,omitempty"` // contains filtered or unexported fields }
WorkflowInstanceEdges holds the relations/edges for other nodes in the graph.
func (WorkflowInstanceEdges) InstanceOrErr ¶
func (e WorkflowInstanceEdges) InstanceOrErr() ([]*WorkflowEvents, error)
InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading.
func (WorkflowInstanceEdges) WorkflowOrErr ¶
func (e WorkflowInstanceEdges) WorkflowOrErr() (*Workflow, error)
WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorkflowInstanceGroupBy ¶
type WorkflowInstanceGroupBy struct {
// contains filtered or unexported fields
}
WorkflowInstanceGroupBy is the group-by builder for WorkflowInstance entities.
func (*WorkflowInstanceGroupBy) Aggregate ¶
func (wigb *WorkflowInstanceGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowInstanceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorkflowInstanceGroupBy) Bool ¶
func (wigb *WorkflowInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) BoolX ¶
func (wigb *WorkflowInstanceGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Bools ¶
func (wigb *WorkflowInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) BoolsX ¶
func (wigb *WorkflowInstanceGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Float64 ¶
func (wigb *WorkflowInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) Float64X ¶
func (wigb *WorkflowInstanceGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Float64s ¶
func (wigb *WorkflowInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) Float64sX ¶
func (wigb *WorkflowInstanceGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Int ¶
func (wigb *WorkflowInstanceGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) IntX ¶
func (wigb *WorkflowInstanceGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Ints ¶
func (wigb *WorkflowInstanceGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) IntsX ¶
func (wigb *WorkflowInstanceGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) Scan ¶
func (wigb *WorkflowInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*WorkflowInstanceGroupBy) ScanX ¶
func (wigb *WorkflowInstanceGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowInstanceGroupBy) String ¶
func (wigb *WorkflowInstanceGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*WorkflowInstanceGroupBy) StringX ¶
func (wigb *WorkflowInstanceGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowInstanceMutation ¶
type WorkflowInstanceMutation struct {
// contains filtered or unexported fields
}
WorkflowInstanceMutation represents an operation that mutates the WorkflowInstance nodes in the graph.
func (*WorkflowInstanceMutation) AddAttempts ¶
func (m *WorkflowInstanceMutation) AddAttempts(i int)
AddAttempts adds i to the "attempts" field.
func (*WorkflowInstanceMutation) AddField ¶
func (m *WorkflowInstanceMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowInstanceMutation) AddInstanceIDs ¶
func (m *WorkflowInstanceMutation) AddInstanceIDs(ids ...int)
AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by ids.
func (*WorkflowInstanceMutation) AddRevision ¶
func (m *WorkflowInstanceMutation) AddRevision(i int)
AddRevision adds i to the "revision" field.
func (*WorkflowInstanceMutation) AddedAttempts ¶
func (m *WorkflowInstanceMutation) AddedAttempts() (r int, exists bool)
AddedAttempts returns the value that was added to the "attempts" field in this mutation.
func (*WorkflowInstanceMutation) AddedEdges ¶
func (m *WorkflowInstanceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowInstanceMutation) AddedField ¶
func (m *WorkflowInstanceMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowInstanceMutation) AddedFields ¶
func (m *WorkflowInstanceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowInstanceMutation) AddedIDs ¶
func (m *WorkflowInstanceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowInstanceMutation) AddedRevision ¶
func (m *WorkflowInstanceMutation) AddedRevision() (r int, exists bool)
AddedRevision returns the value that was added to the "revision" field in this mutation.
func (*WorkflowInstanceMutation) Attempts ¶
func (m *WorkflowInstanceMutation) Attempts() (r int, exists bool)
Attempts returns the value of the "attempts" field in the mutation.
func (*WorkflowInstanceMutation) AttemptsCleared ¶
func (m *WorkflowInstanceMutation) AttemptsCleared() bool
AttemptsCleared returns if the "attempts" field was cleared in this mutation.
func (*WorkflowInstanceMutation) BeginTime ¶
func (m *WorkflowInstanceMutation) BeginTime() (r time.Time, exists bool)
BeginTime returns the value of the "beginTime" field in the mutation.
func (*WorkflowInstanceMutation) ClearAttempts ¶
func (m *WorkflowInstanceMutation) ClearAttempts()
ClearAttempts clears the value of the "attempts" field.
func (*WorkflowInstanceMutation) ClearController ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) ClearController()
ClearController clears the value of the "controller" field.
func (*WorkflowInstanceMutation) ClearDeadline ¶
func (m *WorkflowInstanceMutation) ClearDeadline()
ClearDeadline clears the value of the "deadline" field.
func (*WorkflowInstanceMutation) ClearEdge ¶
func (m *WorkflowInstanceMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WorkflowInstanceMutation) ClearEndTime ¶
func (m *WorkflowInstanceMutation) ClearEndTime()
ClearEndTime clears the value of the "endTime" field.
func (*WorkflowInstanceMutation) ClearErrorCode ¶
func (m *WorkflowInstanceMutation) ClearErrorCode()
ClearErrorCode clears the value of the "errorCode" field.
func (*WorkflowInstanceMutation) ClearErrorMessage ¶
func (m *WorkflowInstanceMutation) ClearErrorMessage()
ClearErrorMessage clears the value of the "errorMessage" field.
func (*WorkflowInstanceMutation) ClearField ¶
func (m *WorkflowInstanceMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowInstanceMutation) ClearFlow ¶
func (m *WorkflowInstanceMutation) ClearFlow()
ClearFlow clears the value of the "flow" field.
func (*WorkflowInstanceMutation) ClearInstance ¶
func (m *WorkflowInstanceMutation) ClearInstance()
ClearInstance clears the "instance" edge to the WorkflowEvents entity.
func (*WorkflowInstanceMutation) ClearMemory ¶
func (m *WorkflowInstanceMutation) ClearMemory()
ClearMemory clears the value of the "memory" field.
func (*WorkflowInstanceMutation) ClearOutput ¶
func (m *WorkflowInstanceMutation) ClearOutput()
ClearOutput clears the value of the "output" field.
func (*WorkflowInstanceMutation) ClearStateBeginTime ¶ added in v0.1.3
func (m *WorkflowInstanceMutation) ClearStateBeginTime()
ClearStateBeginTime clears the value of the "stateBeginTime" field.
func (*WorkflowInstanceMutation) ClearStateData ¶
func (m *WorkflowInstanceMutation) ClearStateData()
ClearStateData clears the value of the "stateData" field.
func (*WorkflowInstanceMutation) ClearWorkflow ¶
func (m *WorkflowInstanceMutation) ClearWorkflow()
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceMutation) ClearedEdges ¶
func (m *WorkflowInstanceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowInstanceMutation) ClearedFields ¶
func (m *WorkflowInstanceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowInstanceMutation) Client ¶
func (m WorkflowInstanceMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WorkflowInstanceMutation) Controller ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) Controller() (r string, exists bool)
Controller returns the value of the "controller" field in the mutation.
func (*WorkflowInstanceMutation) ControllerCleared ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) ControllerCleared() bool
ControllerCleared returns if the "controller" field was cleared in this mutation.
func (*WorkflowInstanceMutation) Deadline ¶
func (m *WorkflowInstanceMutation) Deadline() (r time.Time, exists bool)
Deadline returns the value of the "deadline" field in the mutation.
func (*WorkflowInstanceMutation) DeadlineCleared ¶
func (m *WorkflowInstanceMutation) DeadlineCleared() bool
DeadlineCleared returns if the "deadline" field was cleared in this mutation.
func (*WorkflowInstanceMutation) EdgeCleared ¶
func (m *WorkflowInstanceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowInstanceMutation) EndTime ¶
func (m *WorkflowInstanceMutation) EndTime() (r time.Time, exists bool)
EndTime returns the value of the "endTime" field in the mutation.
func (*WorkflowInstanceMutation) EndTimeCleared ¶
func (m *WorkflowInstanceMutation) EndTimeCleared() bool
EndTimeCleared returns if the "endTime" field was cleared in this mutation.
func (*WorkflowInstanceMutation) ErrorCode ¶
func (m *WorkflowInstanceMutation) ErrorCode() (r string, exists bool)
ErrorCode returns the value of the "errorCode" field in the mutation.
func (*WorkflowInstanceMutation) ErrorCodeCleared ¶
func (m *WorkflowInstanceMutation) ErrorCodeCleared() bool
ErrorCodeCleared returns if the "errorCode" field was cleared in this mutation.
func (*WorkflowInstanceMutation) ErrorMessage ¶
func (m *WorkflowInstanceMutation) ErrorMessage() (r string, exists bool)
ErrorMessage returns the value of the "errorMessage" field in the mutation.
func (*WorkflowInstanceMutation) ErrorMessageCleared ¶
func (m *WorkflowInstanceMutation) ErrorMessageCleared() bool
ErrorMessageCleared returns if the "errorMessage" field was cleared in this mutation.
func (*WorkflowInstanceMutation) Field ¶
func (m *WorkflowInstanceMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowInstanceMutation) FieldCleared ¶
func (m *WorkflowInstanceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowInstanceMutation) Fields ¶
func (m *WorkflowInstanceMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WorkflowInstanceMutation) Flow ¶
func (m *WorkflowInstanceMutation) Flow() (r []string, exists bool)
Flow returns the value of the "flow" field in the mutation.
func (*WorkflowInstanceMutation) FlowCleared ¶
func (m *WorkflowInstanceMutation) FlowCleared() bool
FlowCleared returns if the "flow" field was cleared in this mutation.
func (*WorkflowInstanceMutation) ID ¶
func (m *WorkflowInstanceMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WorkflowInstanceMutation) Input ¶
func (m *WorkflowInstanceMutation) Input() (r string, exists bool)
Input returns the value of the "input" field in the mutation.
func (*WorkflowInstanceMutation) InstanceCleared ¶
func (m *WorkflowInstanceMutation) InstanceCleared() bool
InstanceCleared reports if the "instance" edge to the WorkflowEvents entity was cleared.
func (*WorkflowInstanceMutation) InstanceID ¶
func (m *WorkflowInstanceMutation) InstanceID() (r string, exists bool)
InstanceID returns the value of the "instanceID" field in the mutation.
func (*WorkflowInstanceMutation) InstanceIDs ¶
func (m *WorkflowInstanceMutation) InstanceIDs() (ids []int)
InstanceIDs returns the "instance" edge IDs in the mutation.
func (*WorkflowInstanceMutation) InvokedBy ¶
func (m *WorkflowInstanceMutation) InvokedBy() (r string, exists bool)
InvokedBy returns the value of the "invokedBy" field in the mutation.
func (*WorkflowInstanceMutation) Memory ¶
func (m *WorkflowInstanceMutation) Memory() (r string, exists bool)
Memory returns the value of the "memory" field in the mutation.
func (*WorkflowInstanceMutation) MemoryCleared ¶
func (m *WorkflowInstanceMutation) MemoryCleared() bool
MemoryCleared returns if the "memory" field was cleared in this mutation.
func (*WorkflowInstanceMutation) OldAttempts ¶
func (m *WorkflowInstanceMutation) OldAttempts(ctx context.Context) (v int, err error)
OldAttempts returns the old "attempts" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldBeginTime ¶
OldBeginTime returns the old "beginTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldController ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) OldController(ctx context.Context) (v string, err error)
OldController returns the old "controller" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldDeadline ¶
OldDeadline returns the old "deadline" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldEndTime ¶
OldEndTime returns the old "endTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldErrorCode ¶
func (m *WorkflowInstanceMutation) OldErrorCode(ctx context.Context) (v string, err error)
OldErrorCode returns the old "errorCode" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldErrorMessage ¶
func (m *WorkflowInstanceMutation) OldErrorMessage(ctx context.Context) (v string, err error)
OldErrorMessage returns the old "errorMessage" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WorkflowInstanceMutation) OldFlow ¶
func (m *WorkflowInstanceMutation) OldFlow(ctx context.Context) (v []string, err error)
OldFlow returns the old "flow" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldInput ¶
func (m *WorkflowInstanceMutation) OldInput(ctx context.Context) (v string, err error)
OldInput returns the old "input" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldInstanceID ¶
func (m *WorkflowInstanceMutation) OldInstanceID(ctx context.Context) (v string, err error)
OldInstanceID returns the old "instanceID" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldInvokedBy ¶
func (m *WorkflowInstanceMutation) OldInvokedBy(ctx context.Context) (v string, err error)
OldInvokedBy returns the old "invokedBy" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldMemory ¶
func (m *WorkflowInstanceMutation) OldMemory(ctx context.Context) (v string, err error)
OldMemory returns the old "memory" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldOutput ¶
func (m *WorkflowInstanceMutation) OldOutput(ctx context.Context) (v string, err error)
OldOutput returns the old "output" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldRevision ¶
func (m *WorkflowInstanceMutation) OldRevision(ctx context.Context) (v int, err error)
OldRevision returns the old "revision" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldStateBeginTime ¶ added in v0.1.3
OldStateBeginTime returns the old "stateBeginTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldStateData ¶
func (m *WorkflowInstanceMutation) OldStateData(ctx context.Context) (v string, err error)
OldStateData returns the old "stateData" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) OldStatus ¶
func (m *WorkflowInstanceMutation) OldStatus(ctx context.Context) (v string, err error)
OldStatus returns the old "status" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowInstanceMutation) Op ¶
func (m *WorkflowInstanceMutation) Op() Op
Op returns the operation name.
func (*WorkflowInstanceMutation) Output ¶
func (m *WorkflowInstanceMutation) Output() (r string, exists bool)
Output returns the value of the "output" field in the mutation.
func (*WorkflowInstanceMutation) OutputCleared ¶
func (m *WorkflowInstanceMutation) OutputCleared() bool
OutputCleared returns if the "output" field was cleared in this mutation.
func (*WorkflowInstanceMutation) RemoveInstanceIDs ¶
func (m *WorkflowInstanceMutation) RemoveInstanceIDs(ids ...int)
RemoveInstanceIDs removes the "instance" edge to the WorkflowEvents entity by IDs.
func (*WorkflowInstanceMutation) RemovedEdges ¶
func (m *WorkflowInstanceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowInstanceMutation) RemovedIDs ¶
func (m *WorkflowInstanceMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WorkflowInstanceMutation) RemovedInstanceIDs ¶
func (m *WorkflowInstanceMutation) RemovedInstanceIDs() (ids []int)
RemovedInstance returns the removed IDs of the "instance" edge to the WorkflowEvents entity.
func (*WorkflowInstanceMutation) ResetAttempts ¶
func (m *WorkflowInstanceMutation) ResetAttempts()
ResetAttempts resets all changes to the "attempts" field.
func (*WorkflowInstanceMutation) ResetBeginTime ¶
func (m *WorkflowInstanceMutation) ResetBeginTime()
ResetBeginTime resets all changes to the "beginTime" field.
func (*WorkflowInstanceMutation) ResetController ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) ResetController()
ResetController resets all changes to the "controller" field.
func (*WorkflowInstanceMutation) ResetDeadline ¶
func (m *WorkflowInstanceMutation) ResetDeadline()
ResetDeadline resets all changes to the "deadline" field.
func (*WorkflowInstanceMutation) ResetEdge ¶
func (m *WorkflowInstanceMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WorkflowInstanceMutation) ResetEndTime ¶
func (m *WorkflowInstanceMutation) ResetEndTime()
ResetEndTime resets all changes to the "endTime" field.
func (*WorkflowInstanceMutation) ResetErrorCode ¶
func (m *WorkflowInstanceMutation) ResetErrorCode()
ResetErrorCode resets all changes to the "errorCode" field.
func (*WorkflowInstanceMutation) ResetErrorMessage ¶
func (m *WorkflowInstanceMutation) ResetErrorMessage()
ResetErrorMessage resets all changes to the "errorMessage" field.
func (*WorkflowInstanceMutation) ResetField ¶
func (m *WorkflowInstanceMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowInstanceMutation) ResetFlow ¶
func (m *WorkflowInstanceMutation) ResetFlow()
ResetFlow resets all changes to the "flow" field.
func (*WorkflowInstanceMutation) ResetInput ¶
func (m *WorkflowInstanceMutation) ResetInput()
ResetInput resets all changes to the "input" field.
func (*WorkflowInstanceMutation) ResetInstance ¶
func (m *WorkflowInstanceMutation) ResetInstance()
ResetInstance resets all changes to the "instance" edge.
func (*WorkflowInstanceMutation) ResetInstanceID ¶
func (m *WorkflowInstanceMutation) ResetInstanceID()
ResetInstanceID resets all changes to the "instanceID" field.
func (*WorkflowInstanceMutation) ResetInvokedBy ¶
func (m *WorkflowInstanceMutation) ResetInvokedBy()
ResetInvokedBy resets all changes to the "invokedBy" field.
func (*WorkflowInstanceMutation) ResetMemory ¶
func (m *WorkflowInstanceMutation) ResetMemory()
ResetMemory resets all changes to the "memory" field.
func (*WorkflowInstanceMutation) ResetOutput ¶
func (m *WorkflowInstanceMutation) ResetOutput()
ResetOutput resets all changes to the "output" field.
func (*WorkflowInstanceMutation) ResetRevision ¶
func (m *WorkflowInstanceMutation) ResetRevision()
ResetRevision resets all changes to the "revision" field.
func (*WorkflowInstanceMutation) ResetStateBeginTime ¶ added in v0.1.3
func (m *WorkflowInstanceMutation) ResetStateBeginTime()
ResetStateBeginTime resets all changes to the "stateBeginTime" field.
func (*WorkflowInstanceMutation) ResetStateData ¶
func (m *WorkflowInstanceMutation) ResetStateData()
ResetStateData resets all changes to the "stateData" field.
func (*WorkflowInstanceMutation) ResetStatus ¶
func (m *WorkflowInstanceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*WorkflowInstanceMutation) ResetWorkflow ¶
func (m *WorkflowInstanceMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" edge.
func (*WorkflowInstanceMutation) Revision ¶
func (m *WorkflowInstanceMutation) Revision() (r int, exists bool)
Revision returns the value of the "revision" field in the mutation.
func (*WorkflowInstanceMutation) SetAttempts ¶
func (m *WorkflowInstanceMutation) SetAttempts(i int)
SetAttempts sets the "attempts" field.
func (*WorkflowInstanceMutation) SetBeginTime ¶
func (m *WorkflowInstanceMutation) SetBeginTime(t time.Time)
SetBeginTime sets the "beginTime" field.
func (*WorkflowInstanceMutation) SetController ¶ added in v0.2.3
func (m *WorkflowInstanceMutation) SetController(s string)
SetController sets the "controller" field.
func (*WorkflowInstanceMutation) SetDeadline ¶
func (m *WorkflowInstanceMutation) SetDeadline(t time.Time)
SetDeadline sets the "deadline" field.
func (*WorkflowInstanceMutation) SetEndTime ¶
func (m *WorkflowInstanceMutation) SetEndTime(t time.Time)
SetEndTime sets the "endTime" field.
func (*WorkflowInstanceMutation) SetErrorCode ¶
func (m *WorkflowInstanceMutation) SetErrorCode(s string)
SetErrorCode sets the "errorCode" field.
func (*WorkflowInstanceMutation) SetErrorMessage ¶
func (m *WorkflowInstanceMutation) SetErrorMessage(s string)
SetErrorMessage sets the "errorMessage" field.
func (*WorkflowInstanceMutation) SetField ¶
func (m *WorkflowInstanceMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowInstanceMutation) SetFlow ¶
func (m *WorkflowInstanceMutation) SetFlow(s []string)
SetFlow sets the "flow" field.
func (*WorkflowInstanceMutation) SetInput ¶
func (m *WorkflowInstanceMutation) SetInput(s string)
SetInput sets the "input" field.
func (*WorkflowInstanceMutation) SetInstanceID ¶
func (m *WorkflowInstanceMutation) SetInstanceID(s string)
SetInstanceID sets the "instanceID" field.
func (*WorkflowInstanceMutation) SetInvokedBy ¶
func (m *WorkflowInstanceMutation) SetInvokedBy(s string)
SetInvokedBy sets the "invokedBy" field.
func (*WorkflowInstanceMutation) SetMemory ¶
func (m *WorkflowInstanceMutation) SetMemory(s string)
SetMemory sets the "memory" field.
func (*WorkflowInstanceMutation) SetOutput ¶
func (m *WorkflowInstanceMutation) SetOutput(s string)
SetOutput sets the "output" field.
func (*WorkflowInstanceMutation) SetRevision ¶
func (m *WorkflowInstanceMutation) SetRevision(i int)
SetRevision sets the "revision" field.
func (*WorkflowInstanceMutation) SetStateBeginTime ¶ added in v0.1.3
func (m *WorkflowInstanceMutation) SetStateBeginTime(t time.Time)
SetStateBeginTime sets the "stateBeginTime" field.
func (*WorkflowInstanceMutation) SetStateData ¶
func (m *WorkflowInstanceMutation) SetStateData(s string)
SetStateData sets the "stateData" field.
func (*WorkflowInstanceMutation) SetStatus ¶
func (m *WorkflowInstanceMutation) SetStatus(s string)
SetStatus sets the "status" field.
func (*WorkflowInstanceMutation) SetWorkflowID ¶
func (m *WorkflowInstanceMutation) SetWorkflowID(id uuid.UUID)
SetWorkflowID sets the "workflow" edge to the Workflow entity by id.
func (*WorkflowInstanceMutation) StateBeginTime ¶ added in v0.1.3
func (m *WorkflowInstanceMutation) StateBeginTime() (r time.Time, exists bool)
StateBeginTime returns the value of the "stateBeginTime" field in the mutation.
func (*WorkflowInstanceMutation) StateBeginTimeCleared ¶ added in v0.1.3
func (m *WorkflowInstanceMutation) StateBeginTimeCleared() bool
StateBeginTimeCleared returns if the "stateBeginTime" field was cleared in this mutation.
func (*WorkflowInstanceMutation) StateData ¶
func (m *WorkflowInstanceMutation) StateData() (r string, exists bool)
StateData returns the value of the "stateData" field in the mutation.
func (*WorkflowInstanceMutation) StateDataCleared ¶
func (m *WorkflowInstanceMutation) StateDataCleared() bool
StateDataCleared returns if the "stateData" field was cleared in this mutation.
func (*WorkflowInstanceMutation) Status ¶
func (m *WorkflowInstanceMutation) Status() (r string, exists bool)
Status returns the value of the "status" field in the mutation.
func (WorkflowInstanceMutation) Tx ¶
func (m WorkflowInstanceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowInstanceMutation) Type ¶
func (m *WorkflowInstanceMutation) Type() string
Type returns the node type of this mutation (WorkflowInstance).
func (*WorkflowInstanceMutation) Where ¶ added in v0.4.0
func (m *WorkflowInstanceMutation) Where(ps ...predicate.WorkflowInstance)
Where appends a list predicates to the WorkflowInstanceMutation builder.
func (*WorkflowInstanceMutation) WorkflowCleared ¶
func (m *WorkflowInstanceMutation) WorkflowCleared() bool
WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.
func (*WorkflowInstanceMutation) WorkflowID ¶
func (m *WorkflowInstanceMutation) WorkflowID() (id uuid.UUID, exists bool)
WorkflowID returns the "workflow" edge ID in the mutation.
func (*WorkflowInstanceMutation) WorkflowIDs ¶
func (m *WorkflowInstanceMutation) WorkflowIDs() (ids []uuid.UUID)
WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.
type WorkflowInstanceQuery ¶
type WorkflowInstanceQuery struct {
// contains filtered or unexported fields
}
WorkflowInstanceQuery is the builder for querying WorkflowInstance entities.
func (*WorkflowInstanceQuery) All ¶
func (wiq *WorkflowInstanceQuery) All(ctx context.Context) ([]*WorkflowInstance, error)
All executes the query and returns a list of WorkflowInstances.
func (*WorkflowInstanceQuery) AllX ¶
func (wiq *WorkflowInstanceQuery) AllX(ctx context.Context) []*WorkflowInstance
AllX is like All, but panics if an error occurs.
func (*WorkflowInstanceQuery) Clone ¶
func (wiq *WorkflowInstanceQuery) Clone() *WorkflowInstanceQuery
Clone returns a duplicate of the WorkflowInstanceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowInstanceQuery) Count ¶
func (wiq *WorkflowInstanceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowInstanceQuery) CountX ¶
func (wiq *WorkflowInstanceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowInstanceQuery) Exist ¶
func (wiq *WorkflowInstanceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowInstanceQuery) ExistX ¶
func (wiq *WorkflowInstanceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowInstanceQuery) First ¶
func (wiq *WorkflowInstanceQuery) First(ctx context.Context) (*WorkflowInstance, error)
First returns the first WorkflowInstance entity from the query. Returns a *NotFoundError when no WorkflowInstance was found.
func (*WorkflowInstanceQuery) FirstID ¶
func (wiq *WorkflowInstanceQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WorkflowInstance ID from the query. Returns a *NotFoundError when no WorkflowInstance ID was found.
func (*WorkflowInstanceQuery) FirstIDX ¶
func (wiq *WorkflowInstanceQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowInstanceQuery) FirstX ¶
func (wiq *WorkflowInstanceQuery) FirstX(ctx context.Context) *WorkflowInstance
FirstX is like First, but panics if an error occurs.
func (*WorkflowInstanceQuery) GroupBy ¶
func (wiq *WorkflowInstanceQuery) GroupBy(field string, fields ...string) *WorkflowInstanceGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { InstanceID string `json:"instanceID,omitempty"` Count int `json:"count,omitempty"` } client.WorkflowInstance.Query(). GroupBy(workflowinstance.FieldInstanceID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowInstanceQuery) IDs ¶
func (wiq *WorkflowInstanceQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of WorkflowInstance IDs.
func (*WorkflowInstanceQuery) IDsX ¶
func (wiq *WorkflowInstanceQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowInstanceQuery) Limit ¶
func (wiq *WorkflowInstanceQuery) Limit(limit int) *WorkflowInstanceQuery
Limit adds a limit step to the query.
func (*WorkflowInstanceQuery) Offset ¶
func (wiq *WorkflowInstanceQuery) Offset(offset int) *WorkflowInstanceQuery
Offset adds an offset step to the query.
func (*WorkflowInstanceQuery) Only ¶
func (wiq *WorkflowInstanceQuery) Only(ctx context.Context) (*WorkflowInstance, error)
Only returns a single WorkflowInstance entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowInstance entity is not found. Returns a *NotFoundError when no WorkflowInstance entities are found.
func (*WorkflowInstanceQuery) OnlyID ¶
func (wiq *WorkflowInstanceQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WorkflowInstance ID in the query. Returns a *NotSingularError when exactly one WorkflowInstance ID is not found. Returns a *NotFoundError when no entities are found.
func (*WorkflowInstanceQuery) OnlyIDX ¶
func (wiq *WorkflowInstanceQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowInstanceQuery) OnlyX ¶
func (wiq *WorkflowInstanceQuery) OnlyX(ctx context.Context) *WorkflowInstance
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowInstanceQuery) Order ¶
func (wiq *WorkflowInstanceQuery) Order(o ...OrderFunc) *WorkflowInstanceQuery
Order adds an order step to the query.
func (*WorkflowInstanceQuery) QueryInstance ¶
func (wiq *WorkflowInstanceQuery) QueryInstance() *WorkflowEventsQuery
QueryInstance chains the current query on the "instance" edge.
func (*WorkflowInstanceQuery) QueryWorkflow ¶
func (wiq *WorkflowInstanceQuery) QueryWorkflow() *WorkflowQuery
QueryWorkflow chains the current query on the "workflow" edge.
func (*WorkflowInstanceQuery) Select ¶
func (wiq *WorkflowInstanceQuery) Select(fields ...string) *WorkflowInstanceSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { InstanceID string `json:"instanceID,omitempty"` } client.WorkflowInstance.Query(). Select(workflowinstance.FieldInstanceID). Scan(ctx, &v)
func (*WorkflowInstanceQuery) Unique ¶ added in v0.2.1
func (wiq *WorkflowInstanceQuery) Unique(unique bool) *WorkflowInstanceQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WorkflowInstanceQuery) Where ¶
func (wiq *WorkflowInstanceQuery) Where(ps ...predicate.WorkflowInstance) *WorkflowInstanceQuery
Where adds a new predicate for the WorkflowInstanceQuery builder.
func (*WorkflowInstanceQuery) WithInstance ¶
func (wiq *WorkflowInstanceQuery) WithInstance(opts ...func(*WorkflowEventsQuery)) *WorkflowInstanceQuery
WithInstance tells the query-builder to eager-load the nodes that are connected to the "instance" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowInstanceQuery) WithWorkflow ¶
func (wiq *WorkflowInstanceQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowInstanceQuery
WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowInstanceSelect ¶
type WorkflowInstanceSelect struct { *WorkflowInstanceQuery // contains filtered or unexported fields }
WorkflowInstanceSelect is the builder for selecting fields of WorkflowInstance entities.
func (*WorkflowInstanceSelect) Bool ¶
func (wis *WorkflowInstanceSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) BoolX ¶
func (wis *WorkflowInstanceSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowInstanceSelect) Bools ¶
func (wis *WorkflowInstanceSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) BoolsX ¶
func (wis *WorkflowInstanceSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowInstanceSelect) Float64 ¶
func (wis *WorkflowInstanceSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) Float64X ¶
func (wis *WorkflowInstanceSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowInstanceSelect) Float64s ¶
func (wis *WorkflowInstanceSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) Float64sX ¶
func (wis *WorkflowInstanceSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowInstanceSelect) Int ¶
func (wis *WorkflowInstanceSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) IntX ¶
func (wis *WorkflowInstanceSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowInstanceSelect) Ints ¶
func (wis *WorkflowInstanceSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) IntsX ¶
func (wis *WorkflowInstanceSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowInstanceSelect) Scan ¶
func (wis *WorkflowInstanceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowInstanceSelect) ScanX ¶
func (wis *WorkflowInstanceSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowInstanceSelect) String ¶
func (wis *WorkflowInstanceSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowInstanceSelect) StringX ¶
func (wis *WorkflowInstanceSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowInstanceUpdate ¶
type WorkflowInstanceUpdate struct {
// contains filtered or unexported fields
}
WorkflowInstanceUpdate is the builder for updating WorkflowInstance entities.
func (*WorkflowInstanceUpdate) AddAttempts ¶
func (wiu *WorkflowInstanceUpdate) AddAttempts(i int) *WorkflowInstanceUpdate
AddAttempts adds i to the "attempts" field.
func (*WorkflowInstanceUpdate) AddInstance ¶
func (wiu *WorkflowInstanceUpdate) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdate
AddInstance adds the "instance" edges to the WorkflowEvents entity.
func (*WorkflowInstanceUpdate) AddInstanceIDs ¶
func (wiu *WorkflowInstanceUpdate) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdate
AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.
func (*WorkflowInstanceUpdate) AddRevision ¶
func (wiu *WorkflowInstanceUpdate) AddRevision(i int) *WorkflowInstanceUpdate
AddRevision adds i to the "revision" field.
func (*WorkflowInstanceUpdate) ClearAttempts ¶
func (wiu *WorkflowInstanceUpdate) ClearAttempts() *WorkflowInstanceUpdate
ClearAttempts clears the value of the "attempts" field.
func (*WorkflowInstanceUpdate) ClearController ¶ added in v0.2.3
func (wiu *WorkflowInstanceUpdate) ClearController() *WorkflowInstanceUpdate
ClearController clears the value of the "controller" field.
func (*WorkflowInstanceUpdate) ClearDeadline ¶
func (wiu *WorkflowInstanceUpdate) ClearDeadline() *WorkflowInstanceUpdate
ClearDeadline clears the value of the "deadline" field.
func (*WorkflowInstanceUpdate) ClearEndTime ¶
func (wiu *WorkflowInstanceUpdate) ClearEndTime() *WorkflowInstanceUpdate
ClearEndTime clears the value of the "endTime" field.
func (*WorkflowInstanceUpdate) ClearErrorCode ¶
func (wiu *WorkflowInstanceUpdate) ClearErrorCode() *WorkflowInstanceUpdate
ClearErrorCode clears the value of the "errorCode" field.
func (*WorkflowInstanceUpdate) ClearErrorMessage ¶
func (wiu *WorkflowInstanceUpdate) ClearErrorMessage() *WorkflowInstanceUpdate
ClearErrorMessage clears the value of the "errorMessage" field.
func (*WorkflowInstanceUpdate) ClearFlow ¶
func (wiu *WorkflowInstanceUpdate) ClearFlow() *WorkflowInstanceUpdate
ClearFlow clears the value of the "flow" field.
func (*WorkflowInstanceUpdate) ClearInstance ¶
func (wiu *WorkflowInstanceUpdate) ClearInstance() *WorkflowInstanceUpdate
ClearInstance clears all "instance" edges to the WorkflowEvents entity.
func (*WorkflowInstanceUpdate) ClearMemory ¶
func (wiu *WorkflowInstanceUpdate) ClearMemory() *WorkflowInstanceUpdate
ClearMemory clears the value of the "memory" field.
func (*WorkflowInstanceUpdate) ClearOutput ¶
func (wiu *WorkflowInstanceUpdate) ClearOutput() *WorkflowInstanceUpdate
ClearOutput clears the value of the "output" field.
func (*WorkflowInstanceUpdate) ClearStateBeginTime ¶ added in v0.1.3
func (wiu *WorkflowInstanceUpdate) ClearStateBeginTime() *WorkflowInstanceUpdate
ClearStateBeginTime clears the value of the "stateBeginTime" field.
func (*WorkflowInstanceUpdate) ClearStateData ¶
func (wiu *WorkflowInstanceUpdate) ClearStateData() *WorkflowInstanceUpdate
ClearStateData clears the value of the "stateData" field.
func (*WorkflowInstanceUpdate) ClearWorkflow ¶
func (wiu *WorkflowInstanceUpdate) ClearWorkflow() *WorkflowInstanceUpdate
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceUpdate) Exec ¶
func (wiu *WorkflowInstanceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowInstanceUpdate) ExecX ¶
func (wiu *WorkflowInstanceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowInstanceUpdate) Mutation ¶
func (wiu *WorkflowInstanceUpdate) Mutation() *WorkflowInstanceMutation
Mutation returns the WorkflowInstanceMutation object of the builder.
func (*WorkflowInstanceUpdate) RemoveInstance ¶
func (wiu *WorkflowInstanceUpdate) RemoveInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdate
RemoveInstance removes "instance" edges to WorkflowEvents entities.
func (*WorkflowInstanceUpdate) RemoveInstanceIDs ¶
func (wiu *WorkflowInstanceUpdate) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdate
RemoveInstanceIDs removes the "instance" edge to WorkflowEvents entities by IDs.
func (*WorkflowInstanceUpdate) Save ¶
func (wiu *WorkflowInstanceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowInstanceUpdate) SaveX ¶
func (wiu *WorkflowInstanceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowInstanceUpdate) SetAttempts ¶
func (wiu *WorkflowInstanceUpdate) SetAttempts(i int) *WorkflowInstanceUpdate
SetAttempts sets the "attempts" field.
func (*WorkflowInstanceUpdate) SetBeginTime ¶
func (wiu *WorkflowInstanceUpdate) SetBeginTime(t time.Time) *WorkflowInstanceUpdate
SetBeginTime sets the "beginTime" field.
func (*WorkflowInstanceUpdate) SetController ¶ added in v0.2.3
func (wiu *WorkflowInstanceUpdate) SetController(s string) *WorkflowInstanceUpdate
SetController sets the "controller" field.
func (*WorkflowInstanceUpdate) SetDeadline ¶
func (wiu *WorkflowInstanceUpdate) SetDeadline(t time.Time) *WorkflowInstanceUpdate
SetDeadline sets the "deadline" field.
func (*WorkflowInstanceUpdate) SetEndTime ¶
func (wiu *WorkflowInstanceUpdate) SetEndTime(t time.Time) *WorkflowInstanceUpdate
SetEndTime sets the "endTime" field.
func (*WorkflowInstanceUpdate) SetErrorCode ¶
func (wiu *WorkflowInstanceUpdate) SetErrorCode(s string) *WorkflowInstanceUpdate
SetErrorCode sets the "errorCode" field.
func (*WorkflowInstanceUpdate) SetErrorMessage ¶
func (wiu *WorkflowInstanceUpdate) SetErrorMessage(s string) *WorkflowInstanceUpdate
SetErrorMessage sets the "errorMessage" field.
func (*WorkflowInstanceUpdate) SetFlow ¶
func (wiu *WorkflowInstanceUpdate) SetFlow(s []string) *WorkflowInstanceUpdate
SetFlow sets the "flow" field.
func (*WorkflowInstanceUpdate) SetInput ¶
func (wiu *WorkflowInstanceUpdate) SetInput(s string) *WorkflowInstanceUpdate
SetInput sets the "input" field.
func (*WorkflowInstanceUpdate) SetInstanceID ¶
func (wiu *WorkflowInstanceUpdate) SetInstanceID(s string) *WorkflowInstanceUpdate
SetInstanceID sets the "instanceID" field.
func (*WorkflowInstanceUpdate) SetInvokedBy ¶
func (wiu *WorkflowInstanceUpdate) SetInvokedBy(s string) *WorkflowInstanceUpdate
SetInvokedBy sets the "invokedBy" field.
func (*WorkflowInstanceUpdate) SetMemory ¶
func (wiu *WorkflowInstanceUpdate) SetMemory(s string) *WorkflowInstanceUpdate
SetMemory sets the "memory" field.
func (*WorkflowInstanceUpdate) SetNillableAttempts ¶
func (wiu *WorkflowInstanceUpdate) SetNillableAttempts(i *int) *WorkflowInstanceUpdate
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableController ¶ added in v0.2.3
func (wiu *WorkflowInstanceUpdate) SetNillableController(s *string) *WorkflowInstanceUpdate
SetNillableController sets the "controller" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableDeadline ¶
func (wiu *WorkflowInstanceUpdate) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdate
SetNillableDeadline sets the "deadline" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableEndTime ¶
func (wiu *WorkflowInstanceUpdate) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdate
SetNillableEndTime sets the "endTime" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableErrorCode ¶
func (wiu *WorkflowInstanceUpdate) SetNillableErrorCode(s *string) *WorkflowInstanceUpdate
SetNillableErrorCode sets the "errorCode" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableErrorMessage ¶
func (wiu *WorkflowInstanceUpdate) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdate
SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableMemory ¶
func (wiu *WorkflowInstanceUpdate) SetNillableMemory(s *string) *WorkflowInstanceUpdate
SetNillableMemory sets the "memory" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableOutput ¶
func (wiu *WorkflowInstanceUpdate) SetNillableOutput(s *string) *WorkflowInstanceUpdate
SetNillableOutput sets the "output" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableStateBeginTime ¶ added in v0.1.3
func (wiu *WorkflowInstanceUpdate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdate
SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetNillableStateData ¶
func (wiu *WorkflowInstanceUpdate) SetNillableStateData(s *string) *WorkflowInstanceUpdate
SetNillableStateData sets the "stateData" field if the given value is not nil.
func (*WorkflowInstanceUpdate) SetOutput ¶
func (wiu *WorkflowInstanceUpdate) SetOutput(s string) *WorkflowInstanceUpdate
SetOutput sets the "output" field.
func (*WorkflowInstanceUpdate) SetRevision ¶
func (wiu *WorkflowInstanceUpdate) SetRevision(i int) *WorkflowInstanceUpdate
SetRevision sets the "revision" field.
func (*WorkflowInstanceUpdate) SetStateBeginTime ¶ added in v0.1.3
func (wiu *WorkflowInstanceUpdate) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdate
SetStateBeginTime sets the "stateBeginTime" field.
func (*WorkflowInstanceUpdate) SetStateData ¶
func (wiu *WorkflowInstanceUpdate) SetStateData(s string) *WorkflowInstanceUpdate
SetStateData sets the "stateData" field.
func (*WorkflowInstanceUpdate) SetStatus ¶
func (wiu *WorkflowInstanceUpdate) SetStatus(s string) *WorkflowInstanceUpdate
SetStatus sets the "status" field.
func (*WorkflowInstanceUpdate) SetWorkflow ¶
func (wiu *WorkflowInstanceUpdate) SetWorkflow(w *Workflow) *WorkflowInstanceUpdate
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceUpdate) SetWorkflowID ¶
func (wiu *WorkflowInstanceUpdate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceUpdate
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
func (*WorkflowInstanceUpdate) Where ¶
func (wiu *WorkflowInstanceUpdate) Where(ps ...predicate.WorkflowInstance) *WorkflowInstanceUpdate
Where appends a list predicates to the WorkflowInstanceUpdate builder.
type WorkflowInstanceUpdateOne ¶
type WorkflowInstanceUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowInstanceUpdateOne is the builder for updating a single WorkflowInstance entity.
func (*WorkflowInstanceUpdateOne) AddAttempts ¶
func (wiuo *WorkflowInstanceUpdateOne) AddAttempts(i int) *WorkflowInstanceUpdateOne
AddAttempts adds i to the "attempts" field.
func (*WorkflowInstanceUpdateOne) AddInstance ¶
func (wiuo *WorkflowInstanceUpdateOne) AddInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdateOne
AddInstance adds the "instance" edges to the WorkflowEvents entity.
func (*WorkflowInstanceUpdateOne) AddInstanceIDs ¶
func (wiuo *WorkflowInstanceUpdateOne) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne
AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.
func (*WorkflowInstanceUpdateOne) AddRevision ¶
func (wiuo *WorkflowInstanceUpdateOne) AddRevision(i int) *WorkflowInstanceUpdateOne
AddRevision adds i to the "revision" field.
func (*WorkflowInstanceUpdateOne) ClearAttempts ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearAttempts() *WorkflowInstanceUpdateOne
ClearAttempts clears the value of the "attempts" field.
func (*WorkflowInstanceUpdateOne) ClearController ¶ added in v0.2.3
func (wiuo *WorkflowInstanceUpdateOne) ClearController() *WorkflowInstanceUpdateOne
ClearController clears the value of the "controller" field.
func (*WorkflowInstanceUpdateOne) ClearDeadline ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearDeadline() *WorkflowInstanceUpdateOne
ClearDeadline clears the value of the "deadline" field.
func (*WorkflowInstanceUpdateOne) ClearEndTime ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearEndTime() *WorkflowInstanceUpdateOne
ClearEndTime clears the value of the "endTime" field.
func (*WorkflowInstanceUpdateOne) ClearErrorCode ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearErrorCode() *WorkflowInstanceUpdateOne
ClearErrorCode clears the value of the "errorCode" field.
func (*WorkflowInstanceUpdateOne) ClearErrorMessage ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearErrorMessage() *WorkflowInstanceUpdateOne
ClearErrorMessage clears the value of the "errorMessage" field.
func (*WorkflowInstanceUpdateOne) ClearFlow ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearFlow() *WorkflowInstanceUpdateOne
ClearFlow clears the value of the "flow" field.
func (*WorkflowInstanceUpdateOne) ClearInstance ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearInstance() *WorkflowInstanceUpdateOne
ClearInstance clears all "instance" edges to the WorkflowEvents entity.
func (*WorkflowInstanceUpdateOne) ClearMemory ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearMemory() *WorkflowInstanceUpdateOne
ClearMemory clears the value of the "memory" field.
func (*WorkflowInstanceUpdateOne) ClearOutput ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearOutput() *WorkflowInstanceUpdateOne
ClearOutput clears the value of the "output" field.
func (*WorkflowInstanceUpdateOne) ClearStateBeginTime ¶ added in v0.1.3
func (wiuo *WorkflowInstanceUpdateOne) ClearStateBeginTime() *WorkflowInstanceUpdateOne
ClearStateBeginTime clears the value of the "stateBeginTime" field.
func (*WorkflowInstanceUpdateOne) ClearStateData ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearStateData() *WorkflowInstanceUpdateOne
ClearStateData clears the value of the "stateData" field.
func (*WorkflowInstanceUpdateOne) ClearWorkflow ¶
func (wiuo *WorkflowInstanceUpdateOne) ClearWorkflow() *WorkflowInstanceUpdateOne
ClearWorkflow clears the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceUpdateOne) Exec ¶
func (wiuo *WorkflowInstanceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowInstanceUpdateOne) ExecX ¶
func (wiuo *WorkflowInstanceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowInstanceUpdateOne) Mutation ¶
func (wiuo *WorkflowInstanceUpdateOne) Mutation() *WorkflowInstanceMutation
Mutation returns the WorkflowInstanceMutation object of the builder.
func (*WorkflowInstanceUpdateOne) RemoveInstance ¶
func (wiuo *WorkflowInstanceUpdateOne) RemoveInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdateOne
RemoveInstance removes "instance" edges to WorkflowEvents entities.
func (*WorkflowInstanceUpdateOne) RemoveInstanceIDs ¶
func (wiuo *WorkflowInstanceUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne
RemoveInstanceIDs removes the "instance" edge to WorkflowEvents entities by IDs.
func (*WorkflowInstanceUpdateOne) Save ¶
func (wiuo *WorkflowInstanceUpdateOne) Save(ctx context.Context) (*WorkflowInstance, error)
Save executes the query and returns the updated WorkflowInstance entity.
func (*WorkflowInstanceUpdateOne) SaveX ¶
func (wiuo *WorkflowInstanceUpdateOne) SaveX(ctx context.Context) *WorkflowInstance
SaveX is like Save, but panics if an error occurs.
func (*WorkflowInstanceUpdateOne) Select ¶ added in v0.2.1
func (wiuo *WorkflowInstanceUpdateOne) Select(field string, fields ...string) *WorkflowInstanceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowInstanceUpdateOne) SetAttempts ¶
func (wiuo *WorkflowInstanceUpdateOne) SetAttempts(i int) *WorkflowInstanceUpdateOne
SetAttempts sets the "attempts" field.
func (*WorkflowInstanceUpdateOne) SetBeginTime ¶
func (wiuo *WorkflowInstanceUpdateOne) SetBeginTime(t time.Time) *WorkflowInstanceUpdateOne
SetBeginTime sets the "beginTime" field.
func (*WorkflowInstanceUpdateOne) SetController ¶ added in v0.2.3
func (wiuo *WorkflowInstanceUpdateOne) SetController(s string) *WorkflowInstanceUpdateOne
SetController sets the "controller" field.
func (*WorkflowInstanceUpdateOne) SetDeadline ¶
func (wiuo *WorkflowInstanceUpdateOne) SetDeadline(t time.Time) *WorkflowInstanceUpdateOne
SetDeadline sets the "deadline" field.
func (*WorkflowInstanceUpdateOne) SetEndTime ¶
func (wiuo *WorkflowInstanceUpdateOne) SetEndTime(t time.Time) *WorkflowInstanceUpdateOne
SetEndTime sets the "endTime" field.
func (*WorkflowInstanceUpdateOne) SetErrorCode ¶
func (wiuo *WorkflowInstanceUpdateOne) SetErrorCode(s string) *WorkflowInstanceUpdateOne
SetErrorCode sets the "errorCode" field.
func (*WorkflowInstanceUpdateOne) SetErrorMessage ¶
func (wiuo *WorkflowInstanceUpdateOne) SetErrorMessage(s string) *WorkflowInstanceUpdateOne
SetErrorMessage sets the "errorMessage" field.
func (*WorkflowInstanceUpdateOne) SetFlow ¶
func (wiuo *WorkflowInstanceUpdateOne) SetFlow(s []string) *WorkflowInstanceUpdateOne
SetFlow sets the "flow" field.
func (*WorkflowInstanceUpdateOne) SetInput ¶
func (wiuo *WorkflowInstanceUpdateOne) SetInput(s string) *WorkflowInstanceUpdateOne
SetInput sets the "input" field.
func (*WorkflowInstanceUpdateOne) SetInstanceID ¶
func (wiuo *WorkflowInstanceUpdateOne) SetInstanceID(s string) *WorkflowInstanceUpdateOne
SetInstanceID sets the "instanceID" field.
func (*WorkflowInstanceUpdateOne) SetInvokedBy ¶
func (wiuo *WorkflowInstanceUpdateOne) SetInvokedBy(s string) *WorkflowInstanceUpdateOne
SetInvokedBy sets the "invokedBy" field.
func (*WorkflowInstanceUpdateOne) SetMemory ¶
func (wiuo *WorkflowInstanceUpdateOne) SetMemory(s string) *WorkflowInstanceUpdateOne
SetMemory sets the "memory" field.
func (*WorkflowInstanceUpdateOne) SetNillableAttempts ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableAttempts(i *int) *WorkflowInstanceUpdateOne
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableController ¶ added in v0.2.3
func (wiuo *WorkflowInstanceUpdateOne) SetNillableController(s *string) *WorkflowInstanceUpdateOne
SetNillableController sets the "controller" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableDeadline ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdateOne
SetNillableDeadline sets the "deadline" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableEndTime ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdateOne
SetNillableEndTime sets the "endTime" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableErrorCode ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorCode(s *string) *WorkflowInstanceUpdateOne
SetNillableErrorCode sets the "errorCode" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableErrorMessage ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdateOne
SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableMemory ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableMemory(s *string) *WorkflowInstanceUpdateOne
SetNillableMemory sets the "memory" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableOutput ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableOutput(s *string) *WorkflowInstanceUpdateOne
SetNillableOutput sets the "output" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableStateBeginTime ¶ added in v0.1.3
func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdateOne
SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetNillableStateData ¶
func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateData(s *string) *WorkflowInstanceUpdateOne
SetNillableStateData sets the "stateData" field if the given value is not nil.
func (*WorkflowInstanceUpdateOne) SetOutput ¶
func (wiuo *WorkflowInstanceUpdateOne) SetOutput(s string) *WorkflowInstanceUpdateOne
SetOutput sets the "output" field.
func (*WorkflowInstanceUpdateOne) SetRevision ¶
func (wiuo *WorkflowInstanceUpdateOne) SetRevision(i int) *WorkflowInstanceUpdateOne
SetRevision sets the "revision" field.
func (*WorkflowInstanceUpdateOne) SetStateBeginTime ¶ added in v0.1.3
func (wiuo *WorkflowInstanceUpdateOne) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdateOne
SetStateBeginTime sets the "stateBeginTime" field.
func (*WorkflowInstanceUpdateOne) SetStateData ¶
func (wiuo *WorkflowInstanceUpdateOne) SetStateData(s string) *WorkflowInstanceUpdateOne
SetStateData sets the "stateData" field.
func (*WorkflowInstanceUpdateOne) SetStatus ¶
func (wiuo *WorkflowInstanceUpdateOne) SetStatus(s string) *WorkflowInstanceUpdateOne
SetStatus sets the "status" field.
func (*WorkflowInstanceUpdateOne) SetWorkflow ¶
func (wiuo *WorkflowInstanceUpdateOne) SetWorkflow(w *Workflow) *WorkflowInstanceUpdateOne
SetWorkflow sets the "workflow" edge to the Workflow entity.
func (*WorkflowInstanceUpdateOne) SetWorkflowID ¶
func (wiuo *WorkflowInstanceUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowInstanceUpdateOne
SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.
type WorkflowInstances ¶
type WorkflowInstances []*WorkflowInstance
WorkflowInstances is a parsable slice of WorkflowInstance.
type WorkflowMutation ¶
type WorkflowMutation struct {
// contains filtered or unexported fields
}
WorkflowMutation represents an operation that mutates the Workflow nodes in the graph.
func (*WorkflowMutation) Active ¶
func (m *WorkflowMutation) Active() (r bool, exists bool)
Active returns the value of the "active" field in the mutation.
func (*WorkflowMutation) AddField ¶
func (m *WorkflowMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowMutation) AddInstanceIDs ¶
func (m *WorkflowMutation) AddInstanceIDs(ids ...int)
AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by ids.
func (*WorkflowMutation) AddRevision ¶
func (m *WorkflowMutation) AddRevision(i int)
AddRevision adds i to the "revision" field.
func (*WorkflowMutation) AddWfeventIDs ¶
func (m *WorkflowMutation) AddWfeventIDs(ids ...int)
AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by ids.
func (*WorkflowMutation) AddedEdges ¶
func (m *WorkflowMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorkflowMutation) AddedField ¶
func (m *WorkflowMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowMutation) AddedFields ¶
func (m *WorkflowMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorkflowMutation) AddedIDs ¶
func (m *WorkflowMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorkflowMutation) AddedRevision ¶
func (m *WorkflowMutation) AddedRevision() (r int, exists bool)
AddedRevision returns the value that was added to the "revision" field in this mutation.
func (*WorkflowMutation) ClearDescription ¶
func (m *WorkflowMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*WorkflowMutation) ClearEdge ¶
func (m *WorkflowMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WorkflowMutation) ClearField ¶
func (m *WorkflowMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowMutation) ClearInstances ¶
func (m *WorkflowMutation) ClearInstances()
ClearInstances clears the "instances" edge to the WorkflowInstance entity.
func (*WorkflowMutation) ClearLogToEvents ¶ added in v0.1.3
func (m *WorkflowMutation) ClearLogToEvents()
ClearLogToEvents clears the value of the "logToEvents" field.
func (*WorkflowMutation) ClearNamespace ¶
func (m *WorkflowMutation) ClearNamespace()
ClearNamespace clears the "namespace" edge to the Namespace entity.
func (*WorkflowMutation) ClearWfevents ¶
func (m *WorkflowMutation) ClearWfevents()
ClearWfevents clears the "wfevents" edge to the WorkflowEvents entity.
func (*WorkflowMutation) ClearedEdges ¶
func (m *WorkflowMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorkflowMutation) ClearedFields ¶
func (m *WorkflowMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorkflowMutation) Client ¶
func (m WorkflowMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WorkflowMutation) Created ¶
func (m *WorkflowMutation) Created() (r time.Time, exists bool)
Created returns the value of the "created" field in the mutation.
func (*WorkflowMutation) Description ¶
func (m *WorkflowMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*WorkflowMutation) DescriptionCleared ¶
func (m *WorkflowMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*WorkflowMutation) EdgeCleared ¶
func (m *WorkflowMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorkflowMutation) Field ¶
func (m *WorkflowMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WorkflowMutation) FieldCleared ¶
func (m *WorkflowMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorkflowMutation) Fields ¶
func (m *WorkflowMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WorkflowMutation) ID ¶
func (m *WorkflowMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WorkflowMutation) InstancesCleared ¶
func (m *WorkflowMutation) InstancesCleared() bool
InstancesCleared reports if the "instances" edge to the WorkflowInstance entity was cleared.
func (*WorkflowMutation) InstancesIDs ¶
func (m *WorkflowMutation) InstancesIDs() (ids []int)
InstancesIDs returns the "instances" edge IDs in the mutation.
func (*WorkflowMutation) LogToEvents ¶ added in v0.1.3
func (m *WorkflowMutation) LogToEvents() (r string, exists bool)
LogToEvents returns the value of the "logToEvents" field in the mutation.
func (*WorkflowMutation) LogToEventsCleared ¶ added in v0.1.3
func (m *WorkflowMutation) LogToEventsCleared() bool
LogToEventsCleared returns if the "logToEvents" field was cleared in this mutation.
func (*WorkflowMutation) Name ¶
func (m *WorkflowMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*WorkflowMutation) NamespaceCleared ¶
func (m *WorkflowMutation) NamespaceCleared() bool
NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.
func (*WorkflowMutation) NamespaceID ¶
func (m *WorkflowMutation) NamespaceID() (id string, exists bool)
NamespaceID returns the "namespace" edge ID in the mutation.
func (*WorkflowMutation) NamespaceIDs ¶
func (m *WorkflowMutation) NamespaceIDs() (ids []string)
NamespaceIDs returns the "namespace" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NamespaceID instead. It exists only for internal usage by the builders.
func (*WorkflowMutation) OldActive ¶
func (m *WorkflowMutation) OldActive(ctx context.Context) (v bool, err error)
OldActive returns the old "active" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldCreated ¶
OldCreated returns the old "created" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldDescription ¶
func (m *WorkflowMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WorkflowMutation) OldLogToEvents ¶ added in v0.1.3
func (m *WorkflowMutation) OldLogToEvents(ctx context.Context) (v string, err error)
OldLogToEvents returns the old "logToEvents" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldName ¶
func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldRevision ¶
func (m *WorkflowMutation) OldRevision(ctx context.Context) (v int, err error)
OldRevision returns the old "revision" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) OldWorkflow ¶
func (m *WorkflowMutation) OldWorkflow(ctx context.Context) (v []byte, err error)
OldWorkflow returns the old "workflow" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorkflowMutation) RemoveInstanceIDs ¶
func (m *WorkflowMutation) RemoveInstanceIDs(ids ...int)
RemoveInstanceIDs removes the "instances" edge to the WorkflowInstance entity by IDs.
func (*WorkflowMutation) RemoveWfeventIDs ¶
func (m *WorkflowMutation) RemoveWfeventIDs(ids ...int)
RemoveWfeventIDs removes the "wfevents" edge to the WorkflowEvents entity by IDs.
func (*WorkflowMutation) RemovedEdges ¶
func (m *WorkflowMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorkflowMutation) RemovedIDs ¶
func (m *WorkflowMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WorkflowMutation) RemovedInstancesIDs ¶
func (m *WorkflowMutation) RemovedInstancesIDs() (ids []int)
RemovedInstances returns the removed IDs of the "instances" edge to the WorkflowInstance entity.
func (*WorkflowMutation) RemovedWfeventsIDs ¶
func (m *WorkflowMutation) RemovedWfeventsIDs() (ids []int)
RemovedWfevents returns the removed IDs of the "wfevents" edge to the WorkflowEvents entity.
func (*WorkflowMutation) ResetActive ¶
func (m *WorkflowMutation) ResetActive()
ResetActive resets all changes to the "active" field.
func (*WorkflowMutation) ResetCreated ¶
func (m *WorkflowMutation) ResetCreated()
ResetCreated resets all changes to the "created" field.
func (*WorkflowMutation) ResetDescription ¶
func (m *WorkflowMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*WorkflowMutation) ResetEdge ¶
func (m *WorkflowMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WorkflowMutation) ResetField ¶
func (m *WorkflowMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WorkflowMutation) ResetInstances ¶
func (m *WorkflowMutation) ResetInstances()
ResetInstances resets all changes to the "instances" edge.
func (*WorkflowMutation) ResetLogToEvents ¶ added in v0.1.3
func (m *WorkflowMutation) ResetLogToEvents()
ResetLogToEvents resets all changes to the "logToEvents" field.
func (*WorkflowMutation) ResetName ¶
func (m *WorkflowMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*WorkflowMutation) ResetNamespace ¶
func (m *WorkflowMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" edge.
func (*WorkflowMutation) ResetRevision ¶
func (m *WorkflowMutation) ResetRevision()
ResetRevision resets all changes to the "revision" field.
func (*WorkflowMutation) ResetWfevents ¶
func (m *WorkflowMutation) ResetWfevents()
ResetWfevents resets all changes to the "wfevents" edge.
func (*WorkflowMutation) ResetWorkflow ¶
func (m *WorkflowMutation) ResetWorkflow()
ResetWorkflow resets all changes to the "workflow" field.
func (*WorkflowMutation) Revision ¶
func (m *WorkflowMutation) Revision() (r int, exists bool)
Revision returns the value of the "revision" field in the mutation.
func (*WorkflowMutation) SetActive ¶
func (m *WorkflowMutation) SetActive(b bool)
SetActive sets the "active" field.
func (*WorkflowMutation) SetCreated ¶
func (m *WorkflowMutation) SetCreated(t time.Time)
SetCreated sets the "created" field.
func (*WorkflowMutation) SetDescription ¶
func (m *WorkflowMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*WorkflowMutation) SetField ¶
func (m *WorkflowMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WorkflowMutation) SetID ¶
func (m *WorkflowMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Workflow entities.
func (*WorkflowMutation) SetLogToEvents ¶ added in v0.1.3
func (m *WorkflowMutation) SetLogToEvents(s string)
SetLogToEvents sets the "logToEvents" field.
func (*WorkflowMutation) SetName ¶
func (m *WorkflowMutation) SetName(s string)
SetName sets the "name" field.
func (*WorkflowMutation) SetNamespaceID ¶
func (m *WorkflowMutation) SetNamespaceID(id string)
SetNamespaceID sets the "namespace" edge to the Namespace entity by id.
func (*WorkflowMutation) SetRevision ¶
func (m *WorkflowMutation) SetRevision(i int)
SetRevision sets the "revision" field.
func (*WorkflowMutation) SetWorkflow ¶
func (m *WorkflowMutation) SetWorkflow(b []byte)
SetWorkflow sets the "workflow" field.
func (WorkflowMutation) Tx ¶
func (m WorkflowMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorkflowMutation) Type ¶
func (m *WorkflowMutation) Type() string
Type returns the node type of this mutation (Workflow).
func (*WorkflowMutation) WfeventsCleared ¶
func (m *WorkflowMutation) WfeventsCleared() bool
WfeventsCleared reports if the "wfevents" edge to the WorkflowEvents entity was cleared.
func (*WorkflowMutation) WfeventsIDs ¶
func (m *WorkflowMutation) WfeventsIDs() (ids []int)
WfeventsIDs returns the "wfevents" edge IDs in the mutation.
func (*WorkflowMutation) Where ¶ added in v0.4.0
func (m *WorkflowMutation) Where(ps ...predicate.Workflow)
Where appends a list predicates to the WorkflowMutation builder.
func (*WorkflowMutation) Workflow ¶
func (m *WorkflowMutation) Workflow() (r []byte, exists bool)
Workflow returns the value of the "workflow" field in the mutation.
type WorkflowQuery ¶
type WorkflowQuery struct {
// contains filtered or unexported fields
}
WorkflowQuery is the builder for querying Workflow entities.
func (*WorkflowQuery) All ¶
func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)
All executes the query and returns a list of Workflows.
func (*WorkflowQuery) AllX ¶
func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow
AllX is like All, but panics if an error occurs.
func (*WorkflowQuery) Clone ¶
func (wq *WorkflowQuery) Clone() *WorkflowQuery
Clone returns a duplicate of the WorkflowQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorkflowQuery) Count ¶
func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorkflowQuery) CountX ¶
func (wq *WorkflowQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorkflowQuery) Exist ¶
func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorkflowQuery) ExistX ¶
func (wq *WorkflowQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorkflowQuery) First ¶
func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)
First returns the first Workflow entity from the query. Returns a *NotFoundError when no Workflow was found.
func (*WorkflowQuery) FirstID ¶
FirstID returns the first Workflow ID from the query. Returns a *NotFoundError when no Workflow ID was found.
func (*WorkflowQuery) FirstIDX ¶
func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorkflowQuery) FirstX ¶
func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow
FirstX is like First, but panics if an error occurs.
func (*WorkflowQuery) GroupBy ¶
func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Workflow.Query(). GroupBy(workflow.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*WorkflowQuery) IDsX ¶
func (wq *WorkflowQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*WorkflowQuery) Limit ¶
func (wq *WorkflowQuery) Limit(limit int) *WorkflowQuery
Limit adds a limit step to the query.
func (*WorkflowQuery) Offset ¶
func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery
Offset adds an offset step to the query.
func (*WorkflowQuery) Only ¶
func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)
Only returns a single Workflow entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Workflow entity is not found. Returns a *NotFoundError when no Workflow entities are found.
func (*WorkflowQuery) OnlyID ¶
OnlyID is like Only, but returns the only Workflow ID in the query. Returns a *NotSingularError when exactly one Workflow ID is not found. Returns a *NotFoundError when no entities are found.
func (*WorkflowQuery) OnlyIDX ¶
func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorkflowQuery) OnlyX ¶
func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow
OnlyX is like Only, but panics if an error occurs.
func (*WorkflowQuery) Order ¶
func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery
Order adds an order step to the query.
func (*WorkflowQuery) QueryInstances ¶
func (wq *WorkflowQuery) QueryInstances() *WorkflowInstanceQuery
QueryInstances chains the current query on the "instances" edge.
func (*WorkflowQuery) QueryNamespace ¶
func (wq *WorkflowQuery) QueryNamespace() *NamespaceQuery
QueryNamespace chains the current query on the "namespace" edge.
func (*WorkflowQuery) QueryWfevents ¶
func (wq *WorkflowQuery) QueryWfevents() *WorkflowEventsQuery
QueryWfevents chains the current query on the "wfevents" edge.
func (*WorkflowQuery) Select ¶
func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Workflow.Query(). Select(workflow.FieldName). Scan(ctx, &v)
func (*WorkflowQuery) Unique ¶ added in v0.2.1
func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WorkflowQuery) Where ¶
func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery
Where adds a new predicate for the WorkflowQuery builder.
func (*WorkflowQuery) WithInstances ¶
func (wq *WorkflowQuery) WithInstances(opts ...func(*WorkflowInstanceQuery)) *WorkflowQuery
WithInstances tells the query-builder to eager-load the nodes that are connected to the "instances" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithNamespace ¶
func (wq *WorkflowQuery) WithNamespace(opts ...func(*NamespaceQuery)) *WorkflowQuery
WithNamespace tells the query-builder to eager-load the nodes that are connected to the "namespace" edge. The optional arguments are used to configure the query builder of the edge.
func (*WorkflowQuery) WithWfevents ¶
func (wq *WorkflowQuery) WithWfevents(opts ...func(*WorkflowEventsQuery)) *WorkflowQuery
WithWfevents tells the query-builder to eager-load the nodes that are connected to the "wfevents" edge. The optional arguments are used to configure the query builder of the edge.
type WorkflowSelect ¶
type WorkflowSelect struct { *WorkflowQuery // contains filtered or unexported fields }
WorkflowSelect is the builder for selecting fields of Workflow entities.
func (*WorkflowSelect) Bool ¶
func (ws *WorkflowSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) BoolX ¶
func (ws *WorkflowSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*WorkflowSelect) Bools ¶
func (ws *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) BoolsX ¶
func (ws *WorkflowSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*WorkflowSelect) Float64 ¶
func (ws *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Float64X ¶
func (ws *WorkflowSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*WorkflowSelect) Float64s ¶
func (ws *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) Float64sX ¶
func (ws *WorkflowSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*WorkflowSelect) Int ¶
func (ws *WorkflowSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) IntX ¶
func (ws *WorkflowSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*WorkflowSelect) Ints ¶
func (ws *WorkflowSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) IntsX ¶
func (ws *WorkflowSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*WorkflowSelect) Scan ¶
func (ws *WorkflowSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*WorkflowSelect) ScanX ¶
func (ws *WorkflowSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*WorkflowSelect) String ¶
func (ws *WorkflowSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WorkflowSelect) StringX ¶
func (ws *WorkflowSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type WorkflowUpdate ¶
type WorkflowUpdate struct {
// contains filtered or unexported fields
}
WorkflowUpdate is the builder for updating Workflow entities.
func (*WorkflowUpdate) AddInstanceIDs ¶
func (wu *WorkflowUpdate) AddInstanceIDs(ids ...int) *WorkflowUpdate
AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.
func (*WorkflowUpdate) AddInstances ¶
func (wu *WorkflowUpdate) AddInstances(w ...*WorkflowInstance) *WorkflowUpdate
AddInstances adds the "instances" edges to the WorkflowInstance entity.
func (*WorkflowUpdate) AddRevision ¶
func (wu *WorkflowUpdate) AddRevision(i int) *WorkflowUpdate
AddRevision adds i to the "revision" field.
func (*WorkflowUpdate) AddWfeventIDs ¶
func (wu *WorkflowUpdate) AddWfeventIDs(ids ...int) *WorkflowUpdate
AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.
func (*WorkflowUpdate) AddWfevents ¶
func (wu *WorkflowUpdate) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdate
AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.
func (*WorkflowUpdate) ClearDescription ¶
func (wu *WorkflowUpdate) ClearDescription() *WorkflowUpdate
ClearDescription clears the value of the "description" field.
func (*WorkflowUpdate) ClearInstances ¶
func (wu *WorkflowUpdate) ClearInstances() *WorkflowUpdate
ClearInstances clears all "instances" edges to the WorkflowInstance entity.
func (*WorkflowUpdate) ClearLogToEvents ¶ added in v0.1.3
func (wu *WorkflowUpdate) ClearLogToEvents() *WorkflowUpdate
ClearLogToEvents clears the value of the "logToEvents" field.
func (*WorkflowUpdate) ClearNamespace ¶
func (wu *WorkflowUpdate) ClearNamespace() *WorkflowUpdate
ClearNamespace clears the "namespace" edge to the Namespace entity.
func (*WorkflowUpdate) ClearWfevents ¶
func (wu *WorkflowUpdate) ClearWfevents() *WorkflowUpdate
ClearWfevents clears all "wfevents" edges to the WorkflowEvents entity.
func (*WorkflowUpdate) Exec ¶
func (wu *WorkflowUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorkflowUpdate) ExecX ¶
func (wu *WorkflowUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowUpdate) Mutation ¶
func (wu *WorkflowUpdate) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowUpdate) RemoveInstanceIDs ¶
func (wu *WorkflowUpdate) RemoveInstanceIDs(ids ...int) *WorkflowUpdate
RemoveInstanceIDs removes the "instances" edge to WorkflowInstance entities by IDs.
func (*WorkflowUpdate) RemoveInstances ¶
func (wu *WorkflowUpdate) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdate
RemoveInstances removes "instances" edges to WorkflowInstance entities.
func (*WorkflowUpdate) RemoveWfeventIDs ¶
func (wu *WorkflowUpdate) RemoveWfeventIDs(ids ...int) *WorkflowUpdate
RemoveWfeventIDs removes the "wfevents" edge to WorkflowEvents entities by IDs.
func (*WorkflowUpdate) RemoveWfevents ¶
func (wu *WorkflowUpdate) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdate
RemoveWfevents removes "wfevents" edges to WorkflowEvents entities.
func (*WorkflowUpdate) Save ¶
func (wu *WorkflowUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorkflowUpdate) SaveX ¶
func (wu *WorkflowUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorkflowUpdate) SetActive ¶
func (wu *WorkflowUpdate) SetActive(b bool) *WorkflowUpdate
SetActive sets the "active" field.
func (*WorkflowUpdate) SetDescription ¶
func (wu *WorkflowUpdate) SetDescription(s string) *WorkflowUpdate
SetDescription sets the "description" field.
func (*WorkflowUpdate) SetLogToEvents ¶ added in v0.1.3
func (wu *WorkflowUpdate) SetLogToEvents(s string) *WorkflowUpdate
SetLogToEvents sets the "logToEvents" field.
func (*WorkflowUpdate) SetName ¶
func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate
SetName sets the "name" field.
func (*WorkflowUpdate) SetNamespace ¶
func (wu *WorkflowUpdate) SetNamespace(n *Namespace) *WorkflowUpdate
SetNamespace sets the "namespace" edge to the Namespace entity.
func (*WorkflowUpdate) SetNamespaceID ¶
func (wu *WorkflowUpdate) SetNamespaceID(id string) *WorkflowUpdate
SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.
func (*WorkflowUpdate) SetNillableActive ¶
func (wu *WorkflowUpdate) SetNillableActive(b *bool) *WorkflowUpdate
SetNillableActive sets the "active" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableDescription ¶
func (wu *WorkflowUpdate) SetNillableDescription(s *string) *WorkflowUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableLogToEvents ¶ added in v0.1.3
func (wu *WorkflowUpdate) SetNillableLogToEvents(s *string) *WorkflowUpdate
SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.
func (*WorkflowUpdate) SetNillableRevision ¶
func (wu *WorkflowUpdate) SetNillableRevision(i *int) *WorkflowUpdate
SetNillableRevision sets the "revision" field if the given value is not nil.
func (*WorkflowUpdate) SetRevision ¶
func (wu *WorkflowUpdate) SetRevision(i int) *WorkflowUpdate
SetRevision sets the "revision" field.
func (*WorkflowUpdate) SetWorkflow ¶
func (wu *WorkflowUpdate) SetWorkflow(b []byte) *WorkflowUpdate
SetWorkflow sets the "workflow" field.
func (*WorkflowUpdate) Where ¶
func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate
Where appends a list predicates to the WorkflowUpdate builder.
type WorkflowUpdateOne ¶
type WorkflowUpdateOne struct {
// contains filtered or unexported fields
}
WorkflowUpdateOne is the builder for updating a single Workflow entity.
func (*WorkflowUpdateOne) AddInstanceIDs ¶
func (wuo *WorkflowUpdateOne) AddInstanceIDs(ids ...int) *WorkflowUpdateOne
AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.
func (*WorkflowUpdateOne) AddInstances ¶
func (wuo *WorkflowUpdateOne) AddInstances(w ...*WorkflowInstance) *WorkflowUpdateOne
AddInstances adds the "instances" edges to the WorkflowInstance entity.
func (*WorkflowUpdateOne) AddRevision ¶
func (wuo *WorkflowUpdateOne) AddRevision(i int) *WorkflowUpdateOne
AddRevision adds i to the "revision" field.
func (*WorkflowUpdateOne) AddWfeventIDs ¶
func (wuo *WorkflowUpdateOne) AddWfeventIDs(ids ...int) *WorkflowUpdateOne
AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.
func (*WorkflowUpdateOne) AddWfevents ¶
func (wuo *WorkflowUpdateOne) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne
AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.
func (*WorkflowUpdateOne) ClearDescription ¶
func (wuo *WorkflowUpdateOne) ClearDescription() *WorkflowUpdateOne
ClearDescription clears the value of the "description" field.
func (*WorkflowUpdateOne) ClearInstances ¶
func (wuo *WorkflowUpdateOne) ClearInstances() *WorkflowUpdateOne
ClearInstances clears all "instances" edges to the WorkflowInstance entity.
func (*WorkflowUpdateOne) ClearLogToEvents ¶ added in v0.1.3
func (wuo *WorkflowUpdateOne) ClearLogToEvents() *WorkflowUpdateOne
ClearLogToEvents clears the value of the "logToEvents" field.
func (*WorkflowUpdateOne) ClearNamespace ¶
func (wuo *WorkflowUpdateOne) ClearNamespace() *WorkflowUpdateOne
ClearNamespace clears the "namespace" edge to the Namespace entity.
func (*WorkflowUpdateOne) ClearWfevents ¶
func (wuo *WorkflowUpdateOne) ClearWfevents() *WorkflowUpdateOne
ClearWfevents clears all "wfevents" edges to the WorkflowEvents entity.
func (*WorkflowUpdateOne) Exec ¶
func (wuo *WorkflowUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorkflowUpdateOne) ExecX ¶
func (wuo *WorkflowUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorkflowUpdateOne) Mutation ¶
func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation
Mutation returns the WorkflowMutation object of the builder.
func (*WorkflowUpdateOne) RemoveInstanceIDs ¶
func (wuo *WorkflowUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowUpdateOne
RemoveInstanceIDs removes the "instances" edge to WorkflowInstance entities by IDs.
func (*WorkflowUpdateOne) RemoveInstances ¶
func (wuo *WorkflowUpdateOne) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdateOne
RemoveInstances removes "instances" edges to WorkflowInstance entities.
func (*WorkflowUpdateOne) RemoveWfeventIDs ¶
func (wuo *WorkflowUpdateOne) RemoveWfeventIDs(ids ...int) *WorkflowUpdateOne
RemoveWfeventIDs removes the "wfevents" edge to WorkflowEvents entities by IDs.
func (*WorkflowUpdateOne) RemoveWfevents ¶
func (wuo *WorkflowUpdateOne) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne
RemoveWfevents removes "wfevents" edges to WorkflowEvents entities.
func (*WorkflowUpdateOne) Save ¶
func (wuo *WorkflowUpdateOne) Save(ctx context.Context) (*Workflow, error)
Save executes the query and returns the updated Workflow entity.
func (*WorkflowUpdateOne) SaveX ¶
func (wuo *WorkflowUpdateOne) SaveX(ctx context.Context) *Workflow
SaveX is like Save, but panics if an error occurs.
func (*WorkflowUpdateOne) Select ¶ added in v0.2.1
func (wuo *WorkflowUpdateOne) Select(field string, fields ...string) *WorkflowUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorkflowUpdateOne) SetActive ¶
func (wuo *WorkflowUpdateOne) SetActive(b bool) *WorkflowUpdateOne
SetActive sets the "active" field.
func (*WorkflowUpdateOne) SetDescription ¶
func (wuo *WorkflowUpdateOne) SetDescription(s string) *WorkflowUpdateOne
SetDescription sets the "description" field.
func (*WorkflowUpdateOne) SetLogToEvents ¶ added in v0.1.3
func (wuo *WorkflowUpdateOne) SetLogToEvents(s string) *WorkflowUpdateOne
SetLogToEvents sets the "logToEvents" field.
func (*WorkflowUpdateOne) SetName ¶
func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne
SetName sets the "name" field.
func (*WorkflowUpdateOne) SetNamespace ¶
func (wuo *WorkflowUpdateOne) SetNamespace(n *Namespace) *WorkflowUpdateOne
SetNamespace sets the "namespace" edge to the Namespace entity.
func (*WorkflowUpdateOne) SetNamespaceID ¶
func (wuo *WorkflowUpdateOne) SetNamespaceID(id string) *WorkflowUpdateOne
SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.
func (*WorkflowUpdateOne) SetNillableActive ¶
func (wuo *WorkflowUpdateOne) SetNillableActive(b *bool) *WorkflowUpdateOne
SetNillableActive sets the "active" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableDescription ¶
func (wuo *WorkflowUpdateOne) SetNillableDescription(s *string) *WorkflowUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableLogToEvents ¶ added in v0.1.3
func (wuo *WorkflowUpdateOne) SetNillableLogToEvents(s *string) *WorkflowUpdateOne
SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.
func (*WorkflowUpdateOne) SetNillableRevision ¶
func (wuo *WorkflowUpdateOne) SetNillableRevision(i *int) *WorkflowUpdateOne
SetNillableRevision sets the "revision" field if the given value is not nil.
func (*WorkflowUpdateOne) SetRevision ¶
func (wuo *WorkflowUpdateOne) SetRevision(i int) *WorkflowUpdateOne
SetRevision sets the "revision" field.
func (*WorkflowUpdateOne) SetWorkflow ¶
func (wuo *WorkflowUpdateOne) SetWorkflow(b []byte) *WorkflowUpdateOne
SetWorkflow sets the "workflow" field.
Source Files ¶
- client.go
- config.go
- context.go
- ent.go
- external.go
- generate.go
- mutation.go
- namespace.go
- namespace_create.go
- namespace_delete.go
- namespace_query.go
- namespace_update.go
- runtime.go
- tx.go
- workflow.go
- workflow_create.go
- workflow_delete.go
- workflow_query.go
- workflow_update.go
- workflowevents.go
- workflowevents_create.go
- workflowevents_delete.go
- workflowevents_query.go
- workflowevents_update.go
- workfloweventswait.go
- workfloweventswait_create.go
- workfloweventswait_delete.go
- workfloweventswait_query.go
- workfloweventswait_update.go
- workflowinstance.go
- workflowinstance_create.go
- workflowinstance_delete.go
- workflowinstance_query.go
- workflowinstance_update.go