Documentation ¶
Index ¶
- Constants
- func CreateFlowDefinitionController(ctx context.Context, req *CreateFlowDefinitionReq) (err error)
- func CreateFlowDefinitionFormView() view.Node
- func CreateFlowDeploymentController(ctx context.Context, req *CreateFlowDeploymentReq) (err error)
- func CreateFlowDeploymentFormView() view.Node
- func CreateFlowInstanceController(ctx context.Context, req *CreateFlowInstanceReq) (err error)
- func CreateFlowInstanceDataController(ctx context.Context, req *CreateFlowInstanceDataReq) (err error)
- func CreateFlowInstanceDataFormView() view.Node
- func CreateFlowInstanceFormView() view.Node
- func CreateFlowNodeInstanceController(ctx context.Context, req *CreateFlowNodeInstanceReq) (err error)
- func CreateFlowNodeInstanceFormView() view.Node
- func CreateFlowNodeInstanceLogController(ctx context.Context, req *CreateFlowNodeInstanceLogReq) (err error)
- func CreateFlowNodeInstanceLogFormView() view.Node
- func DeleteFlowDefinitionController(ctx context.Context, req *DeleteFlowDefinitionReq) (err error)
- func DeleteFlowDeploymentController(ctx context.Context, req *DeleteFlowDeploymentReq) (err error)
- func DeleteFlowInstanceController(ctx context.Context, req *DeleteFlowInstanceReq) (err error)
- func DeleteFlowInstanceDataController(ctx context.Context, req *DeleteFlowInstanceDataReq) (err error)
- func DeleteFlowNodeInstanceController(ctx context.Context, req *DeleteFlowNodeInstanceReq) (err error)
- func DeleteFlowNodeInstanceLogController(ctx context.Context, req *DeleteFlowNodeInstanceLogReq) (err error)
- func DeleteManyFlowDefinitionController(ctx context.Context, req *DeleteManyFlowDefinitionReq) (err error)
- func DeleteManyFlowDeploymentController(ctx context.Context, req *DeleteManyFlowDeploymentReq) (err error)
- func DeleteManyFlowInstanceController(ctx context.Context, req *DeleteManyFlowInstanceReq) (err error)
- func DeleteManyFlowInstanceDataController(ctx context.Context, req *DeleteManyFlowInstanceDataReq) (err error)
- func DeleteManyFlowNodeInstanceController(ctx context.Context, req *DeleteManyFlowNodeInstanceReq) (err error)
- func DeleteManyFlowNodeInstanceLogController(ctx context.Context, req *DeleteManyFlowNodeInstanceLogReq) (err error)
- 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 ListFlowDefinitionTableColumns() []view.Node
- func ListFlowDefinitionView() view.Node
- func ListFlowDeploymentTableColumns() []view.Node
- func ListFlowDeploymentView() view.Node
- func ListFlowInstanceDataTableColumns() []view.Node
- func ListFlowInstanceDataView() view.Node
- func ListFlowInstanceTableColumns() []view.Node
- func ListFlowInstanceView() view.Node
- func ListFlowNodeInstanceLogTableColumns() []view.Node
- func ListFlowNodeInstanceLogView() view.Node
- func ListFlowNodeInstanceTableColumns() []view.Node
- func ListFlowNodeInstanceView() view.Node
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- func ReadFlowDefinitionFormView() view.Node
- func ReadFlowDeploymentFormView() view.Node
- func ReadFlowInstanceDataFormView() view.Node
- func ReadFlowInstanceFormView() view.Node
- func ReadFlowNodeInstanceFormView() view.Node
- func ReadFlowNodeInstanceLogFormView() view.Node
- func UpdateFlowDefinitionController(ctx context.Context, req *UpdateFlowDefinitionReq) (err error)
- func UpdateFlowDefinitionFormView() view.Node
- func UpdateFlowDeploymentController(ctx context.Context, req *UpdateFlowDeploymentReq) (err error)
- func UpdateFlowDeploymentFormView() view.Node
- func UpdateFlowInstanceController(ctx context.Context, req *UpdateFlowInstanceReq) (err error)
- func UpdateFlowInstanceDataController(ctx context.Context, req *UpdateFlowInstanceDataReq) (err error)
- func UpdateFlowInstanceDataFormView() view.Node
- func UpdateFlowInstanceFormView() view.Node
- func UpdateFlowNodeInstanceController(ctx context.Context, req *UpdateFlowNodeInstanceReq) (err error)
- func UpdateFlowNodeInstanceFormView() view.Node
- func UpdateFlowNodeInstanceLogController(ctx context.Context, req *UpdateFlowNodeInstanceLogReq) (err error)
- func UpdateFlowNodeInstanceLogFormView() view.Node
- type AggregateFunc
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type CreateFlowDefinitionReq
- type CreateFlowDeploymentReq
- type CreateFlowInstanceDataReq
- type CreateFlowInstanceReq
- type CreateFlowNodeInstanceLogReq
- type CreateFlowNodeInstanceReq
- type DeleteFlowDefinitionReq
- type DeleteFlowDeploymentReq
- type DeleteFlowInstanceDataReq
- type DeleteFlowInstanceReq
- type DeleteFlowNodeInstanceLogReq
- type DeleteFlowNodeInstanceReq
- type DeleteManyFlowDefinitionReq
- type DeleteManyFlowDeploymentReq
- type DeleteManyFlowInstanceDataReq
- type DeleteManyFlowInstanceReq
- type DeleteManyFlowNodeInstanceLogReq
- type DeleteManyFlowNodeInstanceReq
- type FlowDefinition
- type FlowDefinitionClient
- func (c *FlowDefinitionClient) Create() *FlowDefinitionCreate
- func (c *FlowDefinitionClient) CreateBulk(builders ...*FlowDefinitionCreate) *FlowDefinitionCreateBulk
- func (c *FlowDefinitionClient) Delete() *FlowDefinitionDelete
- func (c *FlowDefinitionClient) DeleteOne(fd *FlowDefinition) *FlowDefinitionDeleteOne
- func (c *FlowDefinitionClient) DeleteOneID(id string) *FlowDefinitionDeleteOne
- func (c *FlowDefinitionClient) Get(ctx context.Context, id string) (*FlowDefinition, error)
- func (c *FlowDefinitionClient) GetX(ctx context.Context, id string) *FlowDefinition
- func (c *FlowDefinitionClient) Hooks() []Hook
- func (c *FlowDefinitionClient) Query() *FlowDefinitionQuery
- func (c *FlowDefinitionClient) QueryFlowDeployments(fd *FlowDefinition) *FlowDeploymentQuery
- func (c *FlowDefinitionClient) Update() *FlowDefinitionUpdate
- func (c *FlowDefinitionClient) UpdateOne(fd *FlowDefinition) *FlowDefinitionUpdateOne
- func (c *FlowDefinitionClient) UpdateOneID(id string) *FlowDefinitionUpdateOne
- func (c *FlowDefinitionClient) Use(hooks ...Hook)
- type FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) Exec(ctx context.Context) error
- func (fdc *FlowDefinitionCreate) ExecX(ctx context.Context)
- func (fdc *FlowDefinitionCreate) Mutation() *FlowDefinitionMutation
- func (fdc *FlowDefinitionCreate) OnConflict(opts ...sql.ConflictOption) *FlowDefinitionUpsertOne
- func (fdc *FlowDefinitionCreate) OnConflictColumns(columns ...string) *FlowDefinitionUpsertOne
- func (fdc *FlowDefinitionCreate) Save(ctx context.Context) (*FlowDefinition, error)
- func (fdc *FlowDefinitionCreate) SaveX(ctx context.Context) *FlowDefinition
- func (fdc *FlowDefinitionCreate) SetCreatedAt(i int64) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetDeletedAt(i int64) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetID(s string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetModel(sm schema.FlowModel) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetName(s string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableCreatedAt(i *int64) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableDeletedAt(i *int64) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableID(s *string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableRemark(s *string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableStatus(i *int8) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetNillableUpdatedAt(i *int64) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetRemark(s string) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetStatus(i int8) *FlowDefinitionCreate
- func (fdc *FlowDefinitionCreate) SetUpdatedAt(i int64) *FlowDefinitionCreate
- type FlowDefinitionCreateBulk
- func (fdcb *FlowDefinitionCreateBulk) Exec(ctx context.Context) error
- func (fdcb *FlowDefinitionCreateBulk) ExecX(ctx context.Context)
- func (fdcb *FlowDefinitionCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowDefinitionUpsertBulk
- func (fdcb *FlowDefinitionCreateBulk) OnConflictColumns(columns ...string) *FlowDefinitionUpsertBulk
- func (fdcb *FlowDefinitionCreateBulk) Save(ctx context.Context) ([]*FlowDefinition, error)
- func (fdcb *FlowDefinitionCreateBulk) SaveX(ctx context.Context) []*FlowDefinition
- type FlowDefinitionDelete
- type FlowDefinitionDeleteOne
- type FlowDefinitionEdges
- type FlowDefinitionGroupBy
- func (fdgb *FlowDefinitionGroupBy) Aggregate(fns ...AggregateFunc) *FlowDefinitionGroupBy
- func (s *FlowDefinitionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowDefinitionGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowDefinitionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowDefinitionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowDefinitionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowDefinitionGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowDefinitionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowDefinitionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowDefinitionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowDefinitionGroupBy) IntX(ctx context.Context) int
- func (s *FlowDefinitionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowDefinitionGroupBy) IntsX(ctx context.Context) []int
- func (fdgb *FlowDefinitionGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowDefinitionGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowDefinitionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowDefinitionGroupBy) StringX(ctx context.Context) string
- func (s *FlowDefinitionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowDefinitionGroupBy) StringsX(ctx context.Context) []string
- type FlowDefinitionMutation
- func (m *FlowDefinitionMutation) AddCreatedAt(i int64)
- func (m *FlowDefinitionMutation) AddDeletedAt(i int64)
- func (m *FlowDefinitionMutation) AddField(name string, value ent.Value) error
- func (m *FlowDefinitionMutation) AddFlowDeploymentIDs(ids ...string)
- func (m *FlowDefinitionMutation) AddStatus(i int8)
- func (m *FlowDefinitionMutation) AddUpdatedAt(i int64)
- func (m *FlowDefinitionMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) AddedEdges() []string
- func (m *FlowDefinitionMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowDefinitionMutation) AddedFields() []string
- func (m *FlowDefinitionMutation) AddedIDs(name string) []ent.Value
- func (m *FlowDefinitionMutation) AddedStatus() (r int8, exists bool)
- func (m *FlowDefinitionMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) ClearDeletedAt()
- func (m *FlowDefinitionMutation) ClearEdge(name string) error
- func (m *FlowDefinitionMutation) ClearField(name string) error
- func (m *FlowDefinitionMutation) ClearFlowDeployments()
- func (m *FlowDefinitionMutation) ClearRemark()
- func (m *FlowDefinitionMutation) ClearedEdges() []string
- func (m *FlowDefinitionMutation) ClearedFields() []string
- func (m FlowDefinitionMutation) Client() *Client
- func (m *FlowDefinitionMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) DeletedAtCleared() bool
- func (m *FlowDefinitionMutation) EdgeCleared(name string) bool
- func (m *FlowDefinitionMutation) Field(name string) (ent.Value, bool)
- func (m *FlowDefinitionMutation) FieldCleared(name string) bool
- func (m *FlowDefinitionMutation) Fields() []string
- func (m *FlowDefinitionMutation) FlowDeploymentsCleared() bool
- func (m *FlowDefinitionMutation) FlowDeploymentsIDs() (ids []string)
- func (m *FlowDefinitionMutation) ID() (id string, exists bool)
- func (m *FlowDefinitionMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowDefinitionMutation) Model() (r schema.FlowModel, exists bool)
- func (m *FlowDefinitionMutation) Name() (r string, exists bool)
- func (m *FlowDefinitionMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDefinitionMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDefinitionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowDefinitionMutation) OldModel(ctx context.Context) (v schema.FlowModel, err error)
- func (m *FlowDefinitionMutation) OldName(ctx context.Context) (v string, err error)
- func (m *FlowDefinitionMutation) OldRemark(ctx context.Context) (v string, err error)
- func (m *FlowDefinitionMutation) OldStatus(ctx context.Context) (v int8, err error)
- func (m *FlowDefinitionMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDefinitionMutation) Op() Op
- func (m *FlowDefinitionMutation) Remark() (r string, exists bool)
- func (m *FlowDefinitionMutation) RemarkCleared() bool
- func (m *FlowDefinitionMutation) RemoveFlowDeploymentIDs(ids ...string)
- func (m *FlowDefinitionMutation) RemovedEdges() []string
- func (m *FlowDefinitionMutation) RemovedFlowDeploymentsIDs() (ids []string)
- func (m *FlowDefinitionMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowDefinitionMutation) ResetCreatedAt()
- func (m *FlowDefinitionMutation) ResetDeletedAt()
- func (m *FlowDefinitionMutation) ResetEdge(name string) error
- func (m *FlowDefinitionMutation) ResetField(name string) error
- func (m *FlowDefinitionMutation) ResetFlowDeployments()
- func (m *FlowDefinitionMutation) ResetModel()
- func (m *FlowDefinitionMutation) ResetName()
- func (m *FlowDefinitionMutation) ResetRemark()
- func (m *FlowDefinitionMutation) ResetStatus()
- func (m *FlowDefinitionMutation) ResetUpdatedAt()
- func (m *FlowDefinitionMutation) SetCreatedAt(i int64)
- func (m *FlowDefinitionMutation) SetDeletedAt(i int64)
- func (m *FlowDefinitionMutation) SetField(name string, value ent.Value) error
- func (m *FlowDefinitionMutation) SetID(id string)
- func (m *FlowDefinitionMutation) SetModel(sm schema.FlowModel)
- func (m *FlowDefinitionMutation) SetName(s string)
- func (m *FlowDefinitionMutation) SetRemark(s string)
- func (m *FlowDefinitionMutation) SetStatus(i int8)
- func (m *FlowDefinitionMutation) SetUpdatedAt(i int64)
- func (m *FlowDefinitionMutation) Status() (r int8, exists bool)
- func (m FlowDefinitionMutation) Tx() (*Tx, error)
- func (m *FlowDefinitionMutation) Type() string
- func (m *FlowDefinitionMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowDefinitionMutation) Where(ps ...predicate.FlowDefinition)
- type FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) All(ctx context.Context) ([]*FlowDefinition, error)
- func (fdq *FlowDefinitionQuery) AllX(ctx context.Context) []*FlowDefinition
- func (fdq *FlowDefinitionQuery) Clone() *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) Count(ctx context.Context) (int, error)
- func (fdq *FlowDefinitionQuery) CountX(ctx context.Context) int
- func (fdq *FlowDefinitionQuery) Exist(ctx context.Context) (bool, error)
- func (fdq *FlowDefinitionQuery) ExistX(ctx context.Context) bool
- func (fdq *FlowDefinitionQuery) First(ctx context.Context) (*FlowDefinition, error)
- func (fdq *FlowDefinitionQuery) FirstID(ctx context.Context) (id string, err error)
- func (fdq *FlowDefinitionQuery) FirstIDX(ctx context.Context) string
- func (fdq *FlowDefinitionQuery) FirstX(ctx context.Context) *FlowDefinition
- func (fdq *FlowDefinitionQuery) GroupBy(field string, fields ...string) *FlowDefinitionGroupBy
- func (fdq *FlowDefinitionQuery) IDs(ctx context.Context) ([]string, error)
- func (fdq *FlowDefinitionQuery) IDsX(ctx context.Context) []string
- func (fdq *FlowDefinitionQuery) Limit(limit int) *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) Offset(offset int) *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) Only(ctx context.Context) (*FlowDefinition, error)
- func (fdq *FlowDefinitionQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fdq *FlowDefinitionQuery) OnlyIDX(ctx context.Context) string
- func (fdq *FlowDefinitionQuery) OnlyX(ctx context.Context) *FlowDefinition
- func (fdq *FlowDefinitionQuery) Order(o ...OrderFunc) *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) QueryFlowDeployments() *FlowDeploymentQuery
- func (fdq *FlowDefinitionQuery) Select(fields ...string) *FlowDefinitionSelect
- func (fdq *FlowDefinitionQuery) Unique(unique bool) *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) Where(ps ...predicate.FlowDefinition) *FlowDefinitionQuery
- func (fdq *FlowDefinitionQuery) WithFlowDeployments(opts ...func(*FlowDeploymentQuery)) *FlowDefinitionQuery
- type FlowDefinitionSelect
- func (s *FlowDefinitionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowDefinitionSelect) BoolX(ctx context.Context) bool
- func (s *FlowDefinitionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowDefinitionSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowDefinitionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowDefinitionSelect) Float64X(ctx context.Context) float64
- func (s *FlowDefinitionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowDefinitionSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowDefinitionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowDefinitionSelect) IntX(ctx context.Context) int
- func (s *FlowDefinitionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowDefinitionSelect) IntsX(ctx context.Context) []int
- func (fds *FlowDefinitionSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowDefinitionSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowDefinitionSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowDefinitionSelect) StringX(ctx context.Context) string
- func (s *FlowDefinitionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowDefinitionSelect) StringsX(ctx context.Context) []string
- type FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) AddDeletedAt(i int64) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) AddStatus(i int8) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) AddUpdatedAt(i int64) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) ClearDeletedAt() *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) ClearFlowDeployments() *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) ClearRemark() *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) Exec(ctx context.Context) error
- func (fdu *FlowDefinitionUpdate) ExecX(ctx context.Context)
- func (fdu *FlowDefinitionUpdate) Mutation() *FlowDefinitionMutation
- func (fdu *FlowDefinitionUpdate) RemoveFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) RemoveFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) Save(ctx context.Context) (int, error)
- func (fdu *FlowDefinitionUpdate) SaveX(ctx context.Context) int
- func (fdu *FlowDefinitionUpdate) SetDeletedAt(i int64) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetModel(sm schema.FlowModel) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetName(s string) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetNillableDeletedAt(i *int64) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetNillableRemark(s *string) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetNillableStatus(i *int8) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetRemark(s string) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetStatus(i int8) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) SetUpdatedAt(i int64) *FlowDefinitionUpdate
- func (fdu *FlowDefinitionUpdate) Where(ps ...predicate.FlowDefinition) *FlowDefinitionUpdate
- type FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) AddDeletedAt(i int64) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) AddStatus(i int8) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) AddUpdatedAt(i int64) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) ClearDeletedAt() *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) ClearFlowDeployments() *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) ClearRemark() *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) Exec(ctx context.Context) error
- func (fduo *FlowDefinitionUpdateOne) ExecX(ctx context.Context)
- func (fduo *FlowDefinitionUpdateOne) Mutation() *FlowDefinitionMutation
- func (fduo *FlowDefinitionUpdateOne) RemoveFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) RemoveFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) Save(ctx context.Context) (*FlowDefinition, error)
- func (fduo *FlowDefinitionUpdateOne) SaveX(ctx context.Context) *FlowDefinition
- func (fduo *FlowDefinitionUpdateOne) Select(field string, fields ...string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetDeletedAt(i int64) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetModel(sm schema.FlowModel) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetName(s string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetNillableDeletedAt(i *int64) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetNillableRemark(s *string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetNillableStatus(i *int8) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetRemark(s string) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetStatus(i int8) *FlowDefinitionUpdateOne
- func (fduo *FlowDefinitionUpdateOne) SetUpdatedAt(i int64) *FlowDefinitionUpdateOne
- type FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) AddCreatedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) AddDeletedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) AddStatus(v int8) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) AddUpdatedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) ClearDeletedAt() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) ClearRemark() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetCreatedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetDeletedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetModel(v schema.FlowModel) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetName(v string) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetRemark(v string) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetStatus(v int8) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) SetUpdatedAt(v int64) *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateCreatedAt() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateDeletedAt() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateModel() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateName() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateRemark() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateStatus() *FlowDefinitionUpsert
- func (u *FlowDefinitionUpsert) UpdateUpdatedAt() *FlowDefinitionUpsert
- type FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) AddCreatedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) AddDeletedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) AddStatus(v int8) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) AddUpdatedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) ClearDeletedAt() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) ClearRemark() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) DoNothing() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowDefinitionUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowDefinitionUpsertBulk) Ignore() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetCreatedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetDeletedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetModel(v schema.FlowModel) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetName(v string) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetRemark(v string) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetStatus(v int8) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) SetUpdatedAt(v int64) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) Update(set func(*FlowDefinitionUpsert)) *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateCreatedAt() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateDeletedAt() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateModel() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateName() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateNewValues() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateRemark() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateStatus() *FlowDefinitionUpsertBulk
- func (u *FlowDefinitionUpsertBulk) UpdateUpdatedAt() *FlowDefinitionUpsertBulk
- type FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) AddCreatedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) AddDeletedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) AddStatus(v int8) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) AddUpdatedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) ClearDeletedAt() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) ClearRemark() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) DoNothing() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) Exec(ctx context.Context) error
- func (u *FlowDefinitionUpsertOne) ExecX(ctx context.Context)
- func (u *FlowDefinitionUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowDefinitionUpsertOne) IDX(ctx context.Context) string
- func (u *FlowDefinitionUpsertOne) Ignore() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetCreatedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetDeletedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetModel(v schema.FlowModel) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetName(v string) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetRemark(v string) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetStatus(v int8) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) SetUpdatedAt(v int64) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) Update(set func(*FlowDefinitionUpsert)) *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateCreatedAt() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateDeletedAt() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateModel() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateName() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateNewValues() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateRemark() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateStatus() *FlowDefinitionUpsertOne
- func (u *FlowDefinitionUpsertOne) UpdateUpdatedAt() *FlowDefinitionUpsertOne
- type FlowDefinitions
- type FlowDeployment
- type FlowDeploymentClient
- func (c *FlowDeploymentClient) Create() *FlowDeploymentCreate
- func (c *FlowDeploymentClient) CreateBulk(builders ...*FlowDeploymentCreate) *FlowDeploymentCreateBulk
- func (c *FlowDeploymentClient) Delete() *FlowDeploymentDelete
- func (c *FlowDeploymentClient) DeleteOne(fd *FlowDeployment) *FlowDeploymentDeleteOne
- func (c *FlowDeploymentClient) DeleteOneID(id string) *FlowDeploymentDeleteOne
- func (c *FlowDeploymentClient) Get(ctx context.Context, id string) (*FlowDeployment, error)
- func (c *FlowDeploymentClient) GetX(ctx context.Context, id string) *FlowDeployment
- func (c *FlowDeploymentClient) Hooks() []Hook
- func (c *FlowDeploymentClient) Query() *FlowDeploymentQuery
- func (c *FlowDeploymentClient) QueryFlowDefinition(fd *FlowDeployment) *FlowDefinitionQuery
- func (c *FlowDeploymentClient) QueryFlowInstances(fd *FlowDeployment) *FlowInstanceQuery
- func (c *FlowDeploymentClient) Update() *FlowDeploymentUpdate
- func (c *FlowDeploymentClient) UpdateOne(fd *FlowDeployment) *FlowDeploymentUpdateOne
- func (c *FlowDeploymentClient) UpdateOneID(id string) *FlowDeploymentUpdateOne
- func (c *FlowDeploymentClient) Use(hooks ...Hook)
- type FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) AddFlowInstanceIDs(ids ...string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) Exec(ctx context.Context) error
- func (fdc *FlowDeploymentCreate) ExecX(ctx context.Context)
- func (fdc *FlowDeploymentCreate) Mutation() *FlowDeploymentMutation
- func (fdc *FlowDeploymentCreate) OnConflict(opts ...sql.ConflictOption) *FlowDeploymentUpsertOne
- func (fdc *FlowDeploymentCreate) OnConflictColumns(columns ...string) *FlowDeploymentUpsertOne
- func (fdc *FlowDeploymentCreate) Save(ctx context.Context) (*FlowDeployment, error)
- func (fdc *FlowDeploymentCreate) SaveX(ctx context.Context) *FlowDeployment
- func (fdc *FlowDeploymentCreate) SetCreatedAt(i int64) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetDeletedAt(i int64) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetFlowDefinitionID(s string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetID(s string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetModel(sm schema.FlowModel) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetName(s string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableCreatedAt(i *int64) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableDeletedAt(i *int64) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableID(s *string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableRemark(s *string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableStatus(i *int8) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetNillableUpdatedAt(i *int64) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetRemark(s string) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetStatus(i int8) *FlowDeploymentCreate
- func (fdc *FlowDeploymentCreate) SetUpdatedAt(i int64) *FlowDeploymentCreate
- type FlowDeploymentCreateBulk
- func (fdcb *FlowDeploymentCreateBulk) Exec(ctx context.Context) error
- func (fdcb *FlowDeploymentCreateBulk) ExecX(ctx context.Context)
- func (fdcb *FlowDeploymentCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowDeploymentUpsertBulk
- func (fdcb *FlowDeploymentCreateBulk) OnConflictColumns(columns ...string) *FlowDeploymentUpsertBulk
- func (fdcb *FlowDeploymentCreateBulk) Save(ctx context.Context) ([]*FlowDeployment, error)
- func (fdcb *FlowDeploymentCreateBulk) SaveX(ctx context.Context) []*FlowDeployment
- type FlowDeploymentDelete
- type FlowDeploymentDeleteOne
- type FlowDeploymentEdges
- type FlowDeploymentGroupBy
- func (fdgb *FlowDeploymentGroupBy) Aggregate(fns ...AggregateFunc) *FlowDeploymentGroupBy
- func (s *FlowDeploymentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowDeploymentGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowDeploymentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowDeploymentGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowDeploymentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowDeploymentGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowDeploymentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowDeploymentGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowDeploymentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowDeploymentGroupBy) IntX(ctx context.Context) int
- func (s *FlowDeploymentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowDeploymentGroupBy) IntsX(ctx context.Context) []int
- func (fdgb *FlowDeploymentGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowDeploymentGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowDeploymentGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowDeploymentGroupBy) StringX(ctx context.Context) string
- func (s *FlowDeploymentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowDeploymentGroupBy) StringsX(ctx context.Context) []string
- type FlowDeploymentMutation
- func (m *FlowDeploymentMutation) AddCreatedAt(i int64)
- func (m *FlowDeploymentMutation) AddDeletedAt(i int64)
- func (m *FlowDeploymentMutation) AddField(name string, value ent.Value) error
- func (m *FlowDeploymentMutation) AddFlowInstanceIDs(ids ...string)
- func (m *FlowDeploymentMutation) AddStatus(i int8)
- func (m *FlowDeploymentMutation) AddUpdatedAt(i int64)
- func (m *FlowDeploymentMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) AddedEdges() []string
- func (m *FlowDeploymentMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowDeploymentMutation) AddedFields() []string
- func (m *FlowDeploymentMutation) AddedIDs(name string) []ent.Value
- func (m *FlowDeploymentMutation) AddedStatus() (r int8, exists bool)
- func (m *FlowDeploymentMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) ClearDeletedAt()
- func (m *FlowDeploymentMutation) ClearEdge(name string) error
- func (m *FlowDeploymentMutation) ClearField(name string) error
- func (m *FlowDeploymentMutation) ClearFlowDefinition()
- func (m *FlowDeploymentMutation) ClearFlowInstances()
- func (m *FlowDeploymentMutation) ClearRemark()
- func (m *FlowDeploymentMutation) ClearedEdges() []string
- func (m *FlowDeploymentMutation) ClearedFields() []string
- func (m FlowDeploymentMutation) Client() *Client
- func (m *FlowDeploymentMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) DeletedAtCleared() bool
- func (m *FlowDeploymentMutation) EdgeCleared(name string) bool
- func (m *FlowDeploymentMutation) Field(name string) (ent.Value, bool)
- func (m *FlowDeploymentMutation) FieldCleared(name string) bool
- func (m *FlowDeploymentMutation) Fields() []string
- func (m *FlowDeploymentMutation) FlowDefinitionCleared() bool
- func (m *FlowDeploymentMutation) FlowDefinitionID() (r string, exists bool)
- func (m *FlowDeploymentMutation) FlowDefinitionIDs() (ids []string)
- func (m *FlowDeploymentMutation) FlowInstancesCleared() bool
- func (m *FlowDeploymentMutation) FlowInstancesIDs() (ids []string)
- func (m *FlowDeploymentMutation) ID() (id string, exists bool)
- func (m *FlowDeploymentMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowDeploymentMutation) Model() (r schema.FlowModel, exists bool)
- func (m *FlowDeploymentMutation) Name() (r string, exists bool)
- func (m *FlowDeploymentMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDeploymentMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDeploymentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowDeploymentMutation) OldFlowDefinitionID(ctx context.Context) (v string, err error)
- func (m *FlowDeploymentMutation) OldModel(ctx context.Context) (v schema.FlowModel, err error)
- func (m *FlowDeploymentMutation) OldName(ctx context.Context) (v string, err error)
- func (m *FlowDeploymentMutation) OldRemark(ctx context.Context) (v string, err error)
- func (m *FlowDeploymentMutation) OldStatus(ctx context.Context) (v int8, err error)
- func (m *FlowDeploymentMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowDeploymentMutation) Op() Op
- func (m *FlowDeploymentMutation) Remark() (r string, exists bool)
- func (m *FlowDeploymentMutation) RemarkCleared() bool
- func (m *FlowDeploymentMutation) RemoveFlowInstanceIDs(ids ...string)
- func (m *FlowDeploymentMutation) RemovedEdges() []string
- func (m *FlowDeploymentMutation) RemovedFlowInstancesIDs() (ids []string)
- func (m *FlowDeploymentMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowDeploymentMutation) ResetCreatedAt()
- func (m *FlowDeploymentMutation) ResetDeletedAt()
- func (m *FlowDeploymentMutation) ResetEdge(name string) error
- func (m *FlowDeploymentMutation) ResetField(name string) error
- func (m *FlowDeploymentMutation) ResetFlowDefinition()
- func (m *FlowDeploymentMutation) ResetFlowDefinitionID()
- func (m *FlowDeploymentMutation) ResetFlowInstances()
- func (m *FlowDeploymentMutation) ResetModel()
- func (m *FlowDeploymentMutation) ResetName()
- func (m *FlowDeploymentMutation) ResetRemark()
- func (m *FlowDeploymentMutation) ResetStatus()
- func (m *FlowDeploymentMutation) ResetUpdatedAt()
- func (m *FlowDeploymentMutation) SetCreatedAt(i int64)
- func (m *FlowDeploymentMutation) SetDeletedAt(i int64)
- func (m *FlowDeploymentMutation) SetField(name string, value ent.Value) error
- func (m *FlowDeploymentMutation) SetFlowDefinitionID(s string)
- func (m *FlowDeploymentMutation) SetID(id string)
- func (m *FlowDeploymentMutation) SetModel(sm schema.FlowModel)
- func (m *FlowDeploymentMutation) SetName(s string)
- func (m *FlowDeploymentMutation) SetRemark(s string)
- func (m *FlowDeploymentMutation) SetStatus(i int8)
- func (m *FlowDeploymentMutation) SetUpdatedAt(i int64)
- func (m *FlowDeploymentMutation) Status() (r int8, exists bool)
- func (m FlowDeploymentMutation) Tx() (*Tx, error)
- func (m *FlowDeploymentMutation) Type() string
- func (m *FlowDeploymentMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowDeploymentMutation) Where(ps ...predicate.FlowDeployment)
- type FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) All(ctx context.Context) ([]*FlowDeployment, error)
- func (fdq *FlowDeploymentQuery) AllX(ctx context.Context) []*FlowDeployment
- func (fdq *FlowDeploymentQuery) Clone() *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) Count(ctx context.Context) (int, error)
- func (fdq *FlowDeploymentQuery) CountX(ctx context.Context) int
- func (fdq *FlowDeploymentQuery) Exist(ctx context.Context) (bool, error)
- func (fdq *FlowDeploymentQuery) ExistX(ctx context.Context) bool
- func (fdq *FlowDeploymentQuery) First(ctx context.Context) (*FlowDeployment, error)
- func (fdq *FlowDeploymentQuery) FirstID(ctx context.Context) (id string, err error)
- func (fdq *FlowDeploymentQuery) FirstIDX(ctx context.Context) string
- func (fdq *FlowDeploymentQuery) FirstX(ctx context.Context) *FlowDeployment
- func (fdq *FlowDeploymentQuery) GroupBy(field string, fields ...string) *FlowDeploymentGroupBy
- func (fdq *FlowDeploymentQuery) IDs(ctx context.Context) ([]string, error)
- func (fdq *FlowDeploymentQuery) IDsX(ctx context.Context) []string
- func (fdq *FlowDeploymentQuery) Limit(limit int) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) Offset(offset int) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) Only(ctx context.Context) (*FlowDeployment, error)
- func (fdq *FlowDeploymentQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fdq *FlowDeploymentQuery) OnlyIDX(ctx context.Context) string
- func (fdq *FlowDeploymentQuery) OnlyX(ctx context.Context) *FlowDeployment
- func (fdq *FlowDeploymentQuery) Order(o ...OrderFunc) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) QueryFlowDefinition() *FlowDefinitionQuery
- func (fdq *FlowDeploymentQuery) QueryFlowInstances() *FlowInstanceQuery
- func (fdq *FlowDeploymentQuery) Select(fields ...string) *FlowDeploymentSelect
- func (fdq *FlowDeploymentQuery) Unique(unique bool) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) Where(ps ...predicate.FlowDeployment) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) WithFlowDefinition(opts ...func(*FlowDefinitionQuery)) *FlowDeploymentQuery
- func (fdq *FlowDeploymentQuery) WithFlowInstances(opts ...func(*FlowInstanceQuery)) *FlowDeploymentQuery
- type FlowDeploymentSelect
- func (s *FlowDeploymentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowDeploymentSelect) BoolX(ctx context.Context) bool
- func (s *FlowDeploymentSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowDeploymentSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowDeploymentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowDeploymentSelect) Float64X(ctx context.Context) float64
- func (s *FlowDeploymentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowDeploymentSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowDeploymentSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowDeploymentSelect) IntX(ctx context.Context) int
- func (s *FlowDeploymentSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowDeploymentSelect) IntsX(ctx context.Context) []int
- func (fds *FlowDeploymentSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowDeploymentSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowDeploymentSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowDeploymentSelect) StringX(ctx context.Context) string
- func (s *FlowDeploymentSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowDeploymentSelect) StringsX(ctx context.Context) []string
- type FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) AddDeletedAt(i int64) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) AddFlowInstanceIDs(ids ...string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) AddStatus(i int8) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) AddUpdatedAt(i int64) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) ClearDeletedAt() *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) ClearFlowDefinition() *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) ClearFlowInstances() *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) ClearRemark() *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) Exec(ctx context.Context) error
- func (fdu *FlowDeploymentUpdate) ExecX(ctx context.Context)
- func (fdu *FlowDeploymentUpdate) Mutation() *FlowDeploymentMutation
- func (fdu *FlowDeploymentUpdate) RemoveFlowInstanceIDs(ids ...string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) RemoveFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) Save(ctx context.Context) (int, error)
- func (fdu *FlowDeploymentUpdate) SaveX(ctx context.Context) int
- func (fdu *FlowDeploymentUpdate) SetDeletedAt(i int64) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetFlowDefinitionID(s string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetModel(sm schema.FlowModel) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetName(s string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetNillableDeletedAt(i *int64) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetNillableRemark(s *string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetNillableStatus(i *int8) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetRemark(s string) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetStatus(i int8) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) SetUpdatedAt(i int64) *FlowDeploymentUpdate
- func (fdu *FlowDeploymentUpdate) Where(ps ...predicate.FlowDeployment) *FlowDeploymentUpdate
- type FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) AddDeletedAt(i int64) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) AddFlowInstanceIDs(ids ...string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) AddStatus(i int8) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) AddUpdatedAt(i int64) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) ClearDeletedAt() *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) ClearFlowDefinition() *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) ClearFlowInstances() *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) ClearRemark() *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) Exec(ctx context.Context) error
- func (fduo *FlowDeploymentUpdateOne) ExecX(ctx context.Context)
- func (fduo *FlowDeploymentUpdateOne) Mutation() *FlowDeploymentMutation
- func (fduo *FlowDeploymentUpdateOne) RemoveFlowInstanceIDs(ids ...string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) RemoveFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) Save(ctx context.Context) (*FlowDeployment, error)
- func (fduo *FlowDeploymentUpdateOne) SaveX(ctx context.Context) *FlowDeployment
- func (fduo *FlowDeploymentUpdateOne) Select(field string, fields ...string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetDeletedAt(i int64) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetFlowDefinitionID(s string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetModel(sm schema.FlowModel) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetName(s string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetNillableDeletedAt(i *int64) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetNillableRemark(s *string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetNillableStatus(i *int8) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetRemark(s string) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetStatus(i int8) *FlowDeploymentUpdateOne
- func (fduo *FlowDeploymentUpdateOne) SetUpdatedAt(i int64) *FlowDeploymentUpdateOne
- type FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) AddCreatedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) AddDeletedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) AddStatus(v int8) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) AddUpdatedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) ClearDeletedAt() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) ClearRemark() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetCreatedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetDeletedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetFlowDefinitionID(v string) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetModel(v schema.FlowModel) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetName(v string) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetRemark(v string) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetStatus(v int8) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) SetUpdatedAt(v int64) *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateCreatedAt() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateDeletedAt() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateFlowDefinitionID() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateModel() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateName() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateRemark() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateStatus() *FlowDeploymentUpsert
- func (u *FlowDeploymentUpsert) UpdateUpdatedAt() *FlowDeploymentUpsert
- type FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) AddCreatedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) AddDeletedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) AddStatus(v int8) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) AddUpdatedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) ClearDeletedAt() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) ClearRemark() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) DoNothing() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowDeploymentUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowDeploymentUpsertBulk) Ignore() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetCreatedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetDeletedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetFlowDefinitionID(v string) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetModel(v schema.FlowModel) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetName(v string) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetRemark(v string) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetStatus(v int8) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) SetUpdatedAt(v int64) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) Update(set func(*FlowDeploymentUpsert)) *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateCreatedAt() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateDeletedAt() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateFlowDefinitionID() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateModel() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateName() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateNewValues() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateRemark() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateStatus() *FlowDeploymentUpsertBulk
- func (u *FlowDeploymentUpsertBulk) UpdateUpdatedAt() *FlowDeploymentUpsertBulk
- type FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) AddCreatedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) AddDeletedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) AddStatus(v int8) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) AddUpdatedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) ClearDeletedAt() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) ClearRemark() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) DoNothing() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) Exec(ctx context.Context) error
- func (u *FlowDeploymentUpsertOne) ExecX(ctx context.Context)
- func (u *FlowDeploymentUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowDeploymentUpsertOne) IDX(ctx context.Context) string
- func (u *FlowDeploymentUpsertOne) Ignore() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetCreatedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetDeletedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetFlowDefinitionID(v string) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetModel(v schema.FlowModel) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetName(v string) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetRemark(v string) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetStatus(v int8) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) SetUpdatedAt(v int64) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) Update(set func(*FlowDeploymentUpsert)) *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateCreatedAt() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateDeletedAt() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateFlowDefinitionID() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateModel() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateName() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateNewValues() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateRemark() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateStatus() *FlowDeploymentUpsertOne
- func (u *FlowDeploymentUpsertOne) UpdateUpdatedAt() *FlowDeploymentUpsertOne
- type FlowDeployments
- type FlowInstance
- type FlowInstanceClient
- func (c *FlowInstanceClient) Create() *FlowInstanceCreate
- func (c *FlowInstanceClient) CreateBulk(builders ...*FlowInstanceCreate) *FlowInstanceCreateBulk
- func (c *FlowInstanceClient) Delete() *FlowInstanceDelete
- func (c *FlowInstanceClient) DeleteOne(fi *FlowInstance) *FlowInstanceDeleteOne
- func (c *FlowInstanceClient) DeleteOneID(id string) *FlowInstanceDeleteOne
- func (c *FlowInstanceClient) Get(ctx context.Context, id string) (*FlowInstance, error)
- func (c *FlowInstanceClient) GetX(ctx context.Context, id string) *FlowInstance
- func (c *FlowInstanceClient) Hooks() []Hook
- func (c *FlowInstanceClient) Query() *FlowInstanceQuery
- func (c *FlowInstanceClient) QueryFlowDeployment(fi *FlowInstance) *FlowDeploymentQuery
- func (c *FlowInstanceClient) QueryFlowNodeInstances(fi *FlowInstance) *FlowNodeInstanceQuery
- func (c *FlowInstanceClient) Update() *FlowInstanceUpdate
- func (c *FlowInstanceClient) UpdateOne(fi *FlowInstance) *FlowInstanceUpdateOne
- func (c *FlowInstanceClient) UpdateOneID(id string) *FlowInstanceUpdateOne
- func (c *FlowInstanceClient) Use(hooks ...Hook)
- type FlowInstanceCreate
- func (fic *FlowInstanceCreate) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) Exec(ctx context.Context) error
- func (fic *FlowInstanceCreate) ExecX(ctx context.Context)
- func (fic *FlowInstanceCreate) Mutation() *FlowInstanceMutation
- func (fic *FlowInstanceCreate) OnConflict(opts ...sql.ConflictOption) *FlowInstanceUpsertOne
- func (fic *FlowInstanceCreate) OnConflictColumns(columns ...string) *FlowInstanceUpsertOne
- func (fic *FlowInstanceCreate) Save(ctx context.Context) (*FlowInstance, error)
- func (fic *FlowInstanceCreate) SaveX(ctx context.Context) *FlowInstance
- func (fic *FlowInstanceCreate) SetCreatedAt(i int64) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetDeletedAt(i int64) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetFlowDeployment(f *FlowDeployment) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetFlowDeploymentID(s string) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetID(s string) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetNillableCreatedAt(i *int64) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetNillableDeletedAt(i *int64) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetNillableID(s *string) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetNillableStatus(i *int8) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetNillableUpdatedAt(i *int64) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetRefID(s string) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetStatus(i int8) *FlowInstanceCreate
- func (fic *FlowInstanceCreate) SetUpdatedAt(i int64) *FlowInstanceCreate
- type FlowInstanceCreateBulk
- func (ficb *FlowInstanceCreateBulk) Exec(ctx context.Context) error
- func (ficb *FlowInstanceCreateBulk) ExecX(ctx context.Context)
- func (ficb *FlowInstanceCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowInstanceUpsertBulk
- func (ficb *FlowInstanceCreateBulk) OnConflictColumns(columns ...string) *FlowInstanceUpsertBulk
- func (ficb *FlowInstanceCreateBulk) Save(ctx context.Context) ([]*FlowInstance, error)
- func (ficb *FlowInstanceCreateBulk) SaveX(ctx context.Context) []*FlowInstance
- type FlowInstanceData
- type FlowInstanceDataClient
- func (c *FlowInstanceDataClient) Create() *FlowInstanceDataCreate
- func (c *FlowInstanceDataClient) CreateBulk(builders ...*FlowInstanceDataCreate) *FlowInstanceDataCreateBulk
- func (c *FlowInstanceDataClient) Delete() *FlowInstanceDataDelete
- func (c *FlowInstanceDataClient) DeleteOne(fid *FlowInstanceData) *FlowInstanceDataDeleteOne
- func (c *FlowInstanceDataClient) DeleteOneID(id string) *FlowInstanceDataDeleteOne
- func (c *FlowInstanceDataClient) Get(ctx context.Context, id string) (*FlowInstanceData, error)
- func (c *FlowInstanceDataClient) GetX(ctx context.Context, id string) *FlowInstanceData
- func (c *FlowInstanceDataClient) Hooks() []Hook
- func (c *FlowInstanceDataClient) Query() *FlowInstanceDataQuery
- func (c *FlowInstanceDataClient) Update() *FlowInstanceDataUpdate
- func (c *FlowInstanceDataClient) UpdateOne(fid *FlowInstanceData) *FlowInstanceDataUpdateOne
- func (c *FlowInstanceDataClient) UpdateOneID(id string) *FlowInstanceDataUpdateOne
- func (c *FlowInstanceDataClient) Use(hooks ...Hook)
- type FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) Exec(ctx context.Context) error
- func (fidc *FlowInstanceDataCreate) ExecX(ctx context.Context)
- func (fidc *FlowInstanceDataCreate) Mutation() *FlowInstanceDataMutation
- func (fidc *FlowInstanceDataCreate) OnConflict(opts ...sql.ConflictOption) *FlowInstanceDataUpsertOne
- func (fidc *FlowInstanceDataCreate) OnConflictColumns(columns ...string) *FlowInstanceDataUpsertOne
- func (fidc *FlowInstanceDataCreate) Save(ctx context.Context) (*FlowInstanceData, error)
- func (fidc *FlowInstanceDataCreate) SaveX(ctx context.Context) *FlowInstanceData
- func (fidc *FlowInstanceDataCreate) SetCreatedAt(i int64) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetData(m map[string]interface{}) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetDeletedAt(i int64) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetFlowInstanceID(s string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetFlowNodeInstanceID(s string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetID(s string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableCreatedAt(i *int64) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableDeletedAt(i *int64) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableID(s *string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableNodeKey(s *string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableType(i *int8) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNillableUpdatedAt(i *int64) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetNodeKey(s string) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetType(i int8) *FlowInstanceDataCreate
- func (fidc *FlowInstanceDataCreate) SetUpdatedAt(i int64) *FlowInstanceDataCreate
- type FlowInstanceDataCreateBulk
- func (fidcb *FlowInstanceDataCreateBulk) Exec(ctx context.Context) error
- func (fidcb *FlowInstanceDataCreateBulk) ExecX(ctx context.Context)
- func (fidcb *FlowInstanceDataCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowInstanceDataUpsertBulk
- func (fidcb *FlowInstanceDataCreateBulk) OnConflictColumns(columns ...string) *FlowInstanceDataUpsertBulk
- func (fidcb *FlowInstanceDataCreateBulk) Save(ctx context.Context) ([]*FlowInstanceData, error)
- func (fidcb *FlowInstanceDataCreateBulk) SaveX(ctx context.Context) []*FlowInstanceData
- type FlowInstanceDataDelete
- type FlowInstanceDataDeleteOne
- type FlowInstanceDataGroupBy
- func (fidgb *FlowInstanceDataGroupBy) Aggregate(fns ...AggregateFunc) *FlowInstanceDataGroupBy
- func (s *FlowInstanceDataGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowInstanceDataGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowInstanceDataGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowInstanceDataGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowInstanceDataGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowInstanceDataGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowInstanceDataGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowInstanceDataGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowInstanceDataGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowInstanceDataGroupBy) IntX(ctx context.Context) int
- func (s *FlowInstanceDataGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowInstanceDataGroupBy) IntsX(ctx context.Context) []int
- func (fidgb *FlowInstanceDataGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowInstanceDataGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowInstanceDataGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowInstanceDataGroupBy) StringX(ctx context.Context) string
- func (s *FlowInstanceDataGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowInstanceDataGroupBy) StringsX(ctx context.Context) []string
- type FlowInstanceDataMutation
- func (m *FlowInstanceDataMutation) AddCreatedAt(i int64)
- func (m *FlowInstanceDataMutation) AddDeletedAt(i int64)
- func (m *FlowInstanceDataMutation) AddField(name string, value ent.Value) error
- func (m *FlowInstanceDataMutation) AddType(i int8)
- func (m *FlowInstanceDataMutation) AddUpdatedAt(i int64)
- func (m *FlowInstanceDataMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) AddedEdges() []string
- func (m *FlowInstanceDataMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowInstanceDataMutation) AddedFields() []string
- func (m *FlowInstanceDataMutation) AddedIDs(name string) []ent.Value
- func (m *FlowInstanceDataMutation) AddedType() (r int8, exists bool)
- func (m *FlowInstanceDataMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) ClearData()
- func (m *FlowInstanceDataMutation) ClearDeletedAt()
- func (m *FlowInstanceDataMutation) ClearEdge(name string) error
- func (m *FlowInstanceDataMutation) ClearField(name string) error
- func (m *FlowInstanceDataMutation) ClearFlowNodeInstanceID()
- func (m *FlowInstanceDataMutation) ClearNodeKey()
- func (m *FlowInstanceDataMutation) ClearedEdges() []string
- func (m *FlowInstanceDataMutation) ClearedFields() []string
- func (m FlowInstanceDataMutation) Client() *Client
- func (m *FlowInstanceDataMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) Data() (r map[string]interface{}, exists bool)
- func (m *FlowInstanceDataMutation) DataCleared() bool
- func (m *FlowInstanceDataMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) DeletedAtCleared() bool
- func (m *FlowInstanceDataMutation) EdgeCleared(name string) bool
- func (m *FlowInstanceDataMutation) Field(name string) (ent.Value, bool)
- func (m *FlowInstanceDataMutation) FieldCleared(name string) bool
- func (m *FlowInstanceDataMutation) Fields() []string
- func (m *FlowInstanceDataMutation) FlowInstanceID() (r string, exists bool)
- func (m *FlowInstanceDataMutation) FlowNodeInstanceID() (r string, exists bool)
- func (m *FlowInstanceDataMutation) FlowNodeInstanceIDCleared() bool
- func (m *FlowInstanceDataMutation) GetType() (r int8, exists bool)
- func (m *FlowInstanceDataMutation) ID() (id string, exists bool)
- func (m *FlowInstanceDataMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowInstanceDataMutation) NodeKey() (r string, exists bool)
- func (m *FlowInstanceDataMutation) NodeKeyCleared() bool
- func (m *FlowInstanceDataMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceDataMutation) OldData(ctx context.Context) (v map[string]interface{}, err error)
- func (m *FlowInstanceDataMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceDataMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowInstanceDataMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowInstanceDataMutation) OldFlowNodeInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowInstanceDataMutation) OldNodeKey(ctx context.Context) (v string, err error)
- func (m *FlowInstanceDataMutation) OldType(ctx context.Context) (v int8, err error)
- func (m *FlowInstanceDataMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceDataMutation) Op() Op
- func (m *FlowInstanceDataMutation) RemovedEdges() []string
- func (m *FlowInstanceDataMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowInstanceDataMutation) ResetCreatedAt()
- func (m *FlowInstanceDataMutation) ResetData()
- func (m *FlowInstanceDataMutation) ResetDeletedAt()
- func (m *FlowInstanceDataMutation) ResetEdge(name string) error
- func (m *FlowInstanceDataMutation) ResetField(name string) error
- func (m *FlowInstanceDataMutation) ResetFlowInstanceID()
- func (m *FlowInstanceDataMutation) ResetFlowNodeInstanceID()
- func (m *FlowInstanceDataMutation) ResetNodeKey()
- func (m *FlowInstanceDataMutation) ResetType()
- func (m *FlowInstanceDataMutation) ResetUpdatedAt()
- func (m *FlowInstanceDataMutation) SetCreatedAt(i int64)
- func (m *FlowInstanceDataMutation) SetData(value map[string]interface{})
- func (m *FlowInstanceDataMutation) SetDeletedAt(i int64)
- func (m *FlowInstanceDataMutation) SetField(name string, value ent.Value) error
- func (m *FlowInstanceDataMutation) SetFlowInstanceID(s string)
- func (m *FlowInstanceDataMutation) SetFlowNodeInstanceID(s string)
- func (m *FlowInstanceDataMutation) SetID(id string)
- func (m *FlowInstanceDataMutation) SetNodeKey(s string)
- func (m *FlowInstanceDataMutation) SetType(i int8)
- func (m *FlowInstanceDataMutation) SetUpdatedAt(i int64)
- func (m FlowInstanceDataMutation) Tx() (*Tx, error)
- func (m *FlowInstanceDataMutation) Type() string
- func (m *FlowInstanceDataMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowInstanceDataMutation) Where(ps ...predicate.FlowInstanceData)
- type FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) All(ctx context.Context) ([]*FlowInstanceData, error)
- func (fidq *FlowInstanceDataQuery) AllX(ctx context.Context) []*FlowInstanceData
- func (fidq *FlowInstanceDataQuery) Clone() *FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) Count(ctx context.Context) (int, error)
- func (fidq *FlowInstanceDataQuery) CountX(ctx context.Context) int
- func (fidq *FlowInstanceDataQuery) Exist(ctx context.Context) (bool, error)
- func (fidq *FlowInstanceDataQuery) ExistX(ctx context.Context) bool
- func (fidq *FlowInstanceDataQuery) First(ctx context.Context) (*FlowInstanceData, error)
- func (fidq *FlowInstanceDataQuery) FirstID(ctx context.Context) (id string, err error)
- func (fidq *FlowInstanceDataQuery) FirstIDX(ctx context.Context) string
- func (fidq *FlowInstanceDataQuery) FirstX(ctx context.Context) *FlowInstanceData
- func (fidq *FlowInstanceDataQuery) GroupBy(field string, fields ...string) *FlowInstanceDataGroupBy
- func (fidq *FlowInstanceDataQuery) IDs(ctx context.Context) ([]string, error)
- func (fidq *FlowInstanceDataQuery) IDsX(ctx context.Context) []string
- func (fidq *FlowInstanceDataQuery) Limit(limit int) *FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) Offset(offset int) *FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) Only(ctx context.Context) (*FlowInstanceData, error)
- func (fidq *FlowInstanceDataQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fidq *FlowInstanceDataQuery) OnlyIDX(ctx context.Context) string
- func (fidq *FlowInstanceDataQuery) OnlyX(ctx context.Context) *FlowInstanceData
- func (fidq *FlowInstanceDataQuery) Order(o ...OrderFunc) *FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) Select(fields ...string) *FlowInstanceDataSelect
- func (fidq *FlowInstanceDataQuery) Unique(unique bool) *FlowInstanceDataQuery
- func (fidq *FlowInstanceDataQuery) Where(ps ...predicate.FlowInstanceData) *FlowInstanceDataQuery
- type FlowInstanceDataSelect
- func (s *FlowInstanceDataSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowInstanceDataSelect) BoolX(ctx context.Context) bool
- func (s *FlowInstanceDataSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowInstanceDataSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowInstanceDataSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowInstanceDataSelect) Float64X(ctx context.Context) float64
- func (s *FlowInstanceDataSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowInstanceDataSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowInstanceDataSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowInstanceDataSelect) IntX(ctx context.Context) int
- func (s *FlowInstanceDataSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowInstanceDataSelect) IntsX(ctx context.Context) []int
- func (fids *FlowInstanceDataSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowInstanceDataSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowInstanceDataSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowInstanceDataSelect) StringX(ctx context.Context) string
- func (s *FlowInstanceDataSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowInstanceDataSelect) StringsX(ctx context.Context) []string
- type FlowInstanceDataSlice
- type FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) AddDeletedAt(i int64) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) AddType(i int8) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) AddUpdatedAt(i int64) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) ClearData() *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) ClearDeletedAt() *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) ClearFlowNodeInstanceID() *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) ClearNodeKey() *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) Exec(ctx context.Context) error
- func (fidu *FlowInstanceDataUpdate) ExecX(ctx context.Context)
- func (fidu *FlowInstanceDataUpdate) Mutation() *FlowInstanceDataMutation
- func (fidu *FlowInstanceDataUpdate) Save(ctx context.Context) (int, error)
- func (fidu *FlowInstanceDataUpdate) SaveX(ctx context.Context) int
- func (fidu *FlowInstanceDataUpdate) SetData(m map[string]interface{}) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetDeletedAt(i int64) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetFlowInstanceID(s string) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetFlowNodeInstanceID(s string) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetNillableDeletedAt(i *int64) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetNillableNodeKey(s *string) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetNillableType(i *int8) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetNodeKey(s string) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetType(i int8) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) SetUpdatedAt(i int64) *FlowInstanceDataUpdate
- func (fidu *FlowInstanceDataUpdate) Where(ps ...predicate.FlowInstanceData) *FlowInstanceDataUpdate
- type FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) AddDeletedAt(i int64) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) AddType(i int8) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) AddUpdatedAt(i int64) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) ClearData() *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) ClearDeletedAt() *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) ClearFlowNodeInstanceID() *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) ClearNodeKey() *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) Exec(ctx context.Context) error
- func (fiduo *FlowInstanceDataUpdateOne) ExecX(ctx context.Context)
- func (fiduo *FlowInstanceDataUpdateOne) Mutation() *FlowInstanceDataMutation
- func (fiduo *FlowInstanceDataUpdateOne) Save(ctx context.Context) (*FlowInstanceData, error)
- func (fiduo *FlowInstanceDataUpdateOne) SaveX(ctx context.Context) *FlowInstanceData
- func (fiduo *FlowInstanceDataUpdateOne) Select(field string, fields ...string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetData(m map[string]interface{}) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetDeletedAt(i int64) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetFlowInstanceID(s string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetFlowNodeInstanceID(s string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetNillableDeletedAt(i *int64) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetNillableNodeKey(s *string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetNillableType(i *int8) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetNodeKey(s string) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetType(i int8) *FlowInstanceDataUpdateOne
- func (fiduo *FlowInstanceDataUpdateOne) SetUpdatedAt(i int64) *FlowInstanceDataUpdateOne
- type FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) AddCreatedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) AddDeletedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) AddType(v int8) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) AddUpdatedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) ClearData() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) ClearDeletedAt() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) ClearFlowNodeInstanceID() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) ClearNodeKey() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetCreatedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetData(v map[string]interface{}) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetDeletedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetFlowInstanceID(v string) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetNodeKey(v string) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetType(v int8) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) SetUpdatedAt(v int64) *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateCreatedAt() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateData() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateDeletedAt() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateFlowInstanceID() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateNodeKey() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateType() *FlowInstanceDataUpsert
- func (u *FlowInstanceDataUpsert) UpdateUpdatedAt() *FlowInstanceDataUpsert
- type FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) AddCreatedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) AddDeletedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) AddType(v int8) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) AddUpdatedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) ClearData() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) ClearDeletedAt() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) ClearFlowNodeInstanceID() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) ClearNodeKey() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) DoNothing() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowInstanceDataUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowInstanceDataUpsertBulk) Ignore() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetCreatedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetData(v map[string]interface{}) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetDeletedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetFlowInstanceID(v string) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetNodeKey(v string) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetType(v int8) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) SetUpdatedAt(v int64) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) Update(set func(*FlowInstanceDataUpsert)) *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateCreatedAt() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateData() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateDeletedAt() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateFlowInstanceID() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateNewValues() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateNodeKey() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateType() *FlowInstanceDataUpsertBulk
- func (u *FlowInstanceDataUpsertBulk) UpdateUpdatedAt() *FlowInstanceDataUpsertBulk
- type FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) AddCreatedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) AddDeletedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) AddType(v int8) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) AddUpdatedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) ClearData() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) ClearDeletedAt() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) ClearFlowNodeInstanceID() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) ClearNodeKey() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) DoNothing() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) Exec(ctx context.Context) error
- func (u *FlowInstanceDataUpsertOne) ExecX(ctx context.Context)
- func (u *FlowInstanceDataUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowInstanceDataUpsertOne) IDX(ctx context.Context) string
- func (u *FlowInstanceDataUpsertOne) Ignore() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetCreatedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetData(v map[string]interface{}) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetDeletedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetFlowInstanceID(v string) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetNodeKey(v string) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetType(v int8) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) SetUpdatedAt(v int64) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) Update(set func(*FlowInstanceDataUpsert)) *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateCreatedAt() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateData() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateDeletedAt() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateFlowInstanceID() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateNewValues() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateNodeKey() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateType() *FlowInstanceDataUpsertOne
- func (u *FlowInstanceDataUpsertOne) UpdateUpdatedAt() *FlowInstanceDataUpsertOne
- type FlowInstanceDelete
- type FlowInstanceDeleteOne
- type FlowInstanceEdges
- type FlowInstanceGroupBy
- func (figb *FlowInstanceGroupBy) Aggregate(fns ...AggregateFunc) *FlowInstanceGroupBy
- func (s *FlowInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowInstanceGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowInstanceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowInstanceGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowInstanceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowInstanceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowInstanceGroupBy) IntX(ctx context.Context) int
- func (s *FlowInstanceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowInstanceGroupBy) IntsX(ctx context.Context) []int
- func (figb *FlowInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowInstanceGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowInstanceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowInstanceGroupBy) StringX(ctx context.Context) string
- func (s *FlowInstanceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowInstanceGroupBy) StringsX(ctx context.Context) []string
- type FlowInstanceMutation
- func (m *FlowInstanceMutation) AddCreatedAt(i int64)
- func (m *FlowInstanceMutation) AddDeletedAt(i int64)
- func (m *FlowInstanceMutation) AddField(name string, value ent.Value) error
- func (m *FlowInstanceMutation) AddFlowNodeInstanceIDs(ids ...string)
- func (m *FlowInstanceMutation) AddStatus(i int8)
- func (m *FlowInstanceMutation) AddUpdatedAt(i int64)
- func (m *FlowInstanceMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) AddedEdges() []string
- func (m *FlowInstanceMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowInstanceMutation) AddedFields() []string
- func (m *FlowInstanceMutation) AddedIDs(name string) []ent.Value
- func (m *FlowInstanceMutation) AddedStatus() (r int8, exists bool)
- func (m *FlowInstanceMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) ClearDeletedAt()
- func (m *FlowInstanceMutation) ClearEdge(name string) error
- func (m *FlowInstanceMutation) ClearField(name string) error
- func (m *FlowInstanceMutation) ClearFlowDeployment()
- func (m *FlowInstanceMutation) ClearFlowNodeInstances()
- func (m *FlowInstanceMutation) ClearedEdges() []string
- func (m *FlowInstanceMutation) ClearedFields() []string
- func (m FlowInstanceMutation) Client() *Client
- func (m *FlowInstanceMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) DeletedAtCleared() bool
- func (m *FlowInstanceMutation) EdgeCleared(name string) bool
- func (m *FlowInstanceMutation) Field(name string) (ent.Value, bool)
- func (m *FlowInstanceMutation) FieldCleared(name string) bool
- func (m *FlowInstanceMutation) Fields() []string
- func (m *FlowInstanceMutation) FlowDeploymentCleared() bool
- func (m *FlowInstanceMutation) FlowDeploymentID() (r string, exists bool)
- func (m *FlowInstanceMutation) FlowDeploymentIDs() (ids []string)
- func (m *FlowInstanceMutation) FlowNodeInstancesCleared() bool
- func (m *FlowInstanceMutation) FlowNodeInstancesIDs() (ids []string)
- func (m *FlowInstanceMutation) ID() (id string, exists bool)
- func (m *FlowInstanceMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowInstanceMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowInstanceMutation) OldFlowDeploymentID(ctx context.Context) (v string, err error)
- func (m *FlowInstanceMutation) OldRefID(ctx context.Context) (v string, err error)
- func (m *FlowInstanceMutation) OldStatus(ctx context.Context) (v int8, err error)
- func (m *FlowInstanceMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowInstanceMutation) Op() Op
- func (m *FlowInstanceMutation) RefID() (r string, exists bool)
- func (m *FlowInstanceMutation) RemoveFlowNodeInstanceIDs(ids ...string)
- func (m *FlowInstanceMutation) RemovedEdges() []string
- func (m *FlowInstanceMutation) RemovedFlowNodeInstancesIDs() (ids []string)
- func (m *FlowInstanceMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowInstanceMutation) ResetCreatedAt()
- func (m *FlowInstanceMutation) ResetDeletedAt()
- func (m *FlowInstanceMutation) ResetEdge(name string) error
- func (m *FlowInstanceMutation) ResetField(name string) error
- func (m *FlowInstanceMutation) ResetFlowDeployment()
- func (m *FlowInstanceMutation) ResetFlowDeploymentID()
- func (m *FlowInstanceMutation) ResetFlowNodeInstances()
- func (m *FlowInstanceMutation) ResetRefID()
- func (m *FlowInstanceMutation) ResetStatus()
- func (m *FlowInstanceMutation) ResetUpdatedAt()
- func (m *FlowInstanceMutation) SetCreatedAt(i int64)
- func (m *FlowInstanceMutation) SetDeletedAt(i int64)
- func (m *FlowInstanceMutation) SetField(name string, value ent.Value) error
- func (m *FlowInstanceMutation) SetFlowDeploymentID(s string)
- func (m *FlowInstanceMutation) SetID(id string)
- func (m *FlowInstanceMutation) SetRefID(s string)
- func (m *FlowInstanceMutation) SetStatus(i int8)
- func (m *FlowInstanceMutation) SetUpdatedAt(i int64)
- func (m *FlowInstanceMutation) Status() (r int8, exists bool)
- func (m FlowInstanceMutation) Tx() (*Tx, error)
- func (m *FlowInstanceMutation) Type() string
- func (m *FlowInstanceMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowInstanceMutation) Where(ps ...predicate.FlowInstance)
- type FlowInstanceQuery
- func (fiq *FlowInstanceQuery) All(ctx context.Context) ([]*FlowInstance, error)
- func (fiq *FlowInstanceQuery) AllX(ctx context.Context) []*FlowInstance
- func (fiq *FlowInstanceQuery) Clone() *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) Count(ctx context.Context) (int, error)
- func (fiq *FlowInstanceQuery) CountX(ctx context.Context) int
- func (fiq *FlowInstanceQuery) Exist(ctx context.Context) (bool, error)
- func (fiq *FlowInstanceQuery) ExistX(ctx context.Context) bool
- func (fiq *FlowInstanceQuery) First(ctx context.Context) (*FlowInstance, error)
- func (fiq *FlowInstanceQuery) FirstID(ctx context.Context) (id string, err error)
- func (fiq *FlowInstanceQuery) FirstIDX(ctx context.Context) string
- func (fiq *FlowInstanceQuery) FirstX(ctx context.Context) *FlowInstance
- func (fiq *FlowInstanceQuery) GroupBy(field string, fields ...string) *FlowInstanceGroupBy
- func (fiq *FlowInstanceQuery) IDs(ctx context.Context) ([]string, error)
- func (fiq *FlowInstanceQuery) IDsX(ctx context.Context) []string
- func (fiq *FlowInstanceQuery) Limit(limit int) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) Offset(offset int) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) Only(ctx context.Context) (*FlowInstance, error)
- func (fiq *FlowInstanceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fiq *FlowInstanceQuery) OnlyIDX(ctx context.Context) string
- func (fiq *FlowInstanceQuery) OnlyX(ctx context.Context) *FlowInstance
- func (fiq *FlowInstanceQuery) Order(o ...OrderFunc) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) QueryFlowDeployment() *FlowDeploymentQuery
- func (fiq *FlowInstanceQuery) QueryFlowNodeInstances() *FlowNodeInstanceQuery
- func (fiq *FlowInstanceQuery) Select(fields ...string) *FlowInstanceSelect
- func (fiq *FlowInstanceQuery) Unique(unique bool) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) Where(ps ...predicate.FlowInstance) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) WithFlowDeployment(opts ...func(*FlowDeploymentQuery)) *FlowInstanceQuery
- func (fiq *FlowInstanceQuery) WithFlowNodeInstances(opts ...func(*FlowNodeInstanceQuery)) *FlowInstanceQuery
- type FlowInstanceSelect
- func (s *FlowInstanceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowInstanceSelect) BoolX(ctx context.Context) bool
- func (s *FlowInstanceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowInstanceSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowInstanceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowInstanceSelect) Float64X(ctx context.Context) float64
- func (s *FlowInstanceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowInstanceSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowInstanceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowInstanceSelect) IntX(ctx context.Context) int
- func (s *FlowInstanceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowInstanceSelect) IntsX(ctx context.Context) []int
- func (fis *FlowInstanceSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowInstanceSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowInstanceSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowInstanceSelect) StringX(ctx context.Context) string
- func (s *FlowInstanceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowInstanceSelect) StringsX(ctx context.Context) []string
- type FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) AddDeletedAt(i int64) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) AddStatus(i int8) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) AddUpdatedAt(i int64) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) ClearDeletedAt() *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) ClearFlowDeployment() *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) ClearFlowNodeInstances() *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) Exec(ctx context.Context) error
- func (fiu *FlowInstanceUpdate) ExecX(ctx context.Context)
- func (fiu *FlowInstanceUpdate) Mutation() *FlowInstanceMutation
- func (fiu *FlowInstanceUpdate) RemoveFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) RemoveFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) Save(ctx context.Context) (int, error)
- func (fiu *FlowInstanceUpdate) SaveX(ctx context.Context) int
- func (fiu *FlowInstanceUpdate) SetDeletedAt(i int64) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetFlowDeployment(f *FlowDeployment) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetFlowDeploymentID(s string) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetNillableDeletedAt(i *int64) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetNillableStatus(i *int8) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetRefID(s string) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetStatus(i int8) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) SetUpdatedAt(i int64) *FlowInstanceUpdate
- func (fiu *FlowInstanceUpdate) Where(ps ...predicate.FlowInstance) *FlowInstanceUpdate
- type FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) AddDeletedAt(i int64) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) AddStatus(i int8) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) AddUpdatedAt(i int64) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) ClearDeletedAt() *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) ClearFlowDeployment() *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) ClearFlowNodeInstances() *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) Exec(ctx context.Context) error
- func (fiuo *FlowInstanceUpdateOne) ExecX(ctx context.Context)
- func (fiuo *FlowInstanceUpdateOne) Mutation() *FlowInstanceMutation
- func (fiuo *FlowInstanceUpdateOne) RemoveFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) RemoveFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) Save(ctx context.Context) (*FlowInstance, error)
- func (fiuo *FlowInstanceUpdateOne) SaveX(ctx context.Context) *FlowInstance
- func (fiuo *FlowInstanceUpdateOne) Select(field string, fields ...string) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetDeletedAt(i int64) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetFlowDeployment(f *FlowDeployment) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetFlowDeploymentID(s string) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetNillableDeletedAt(i *int64) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetNillableStatus(i *int8) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetRefID(s string) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetStatus(i int8) *FlowInstanceUpdateOne
- func (fiuo *FlowInstanceUpdateOne) SetUpdatedAt(i int64) *FlowInstanceUpdateOne
- type FlowInstanceUpsert
- func (u *FlowInstanceUpsert) AddCreatedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) AddDeletedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) AddStatus(v int8) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) AddUpdatedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) ClearDeletedAt() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetCreatedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetDeletedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetFlowDeploymentID(v string) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetRefID(v string) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetStatus(v int8) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) SetUpdatedAt(v int64) *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateCreatedAt() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateDeletedAt() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateFlowDeploymentID() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateRefID() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateStatus() *FlowInstanceUpsert
- func (u *FlowInstanceUpsert) UpdateUpdatedAt() *FlowInstanceUpsert
- type FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) AddCreatedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) AddDeletedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) AddStatus(v int8) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) AddUpdatedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) ClearDeletedAt() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) DoNothing() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowInstanceUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowInstanceUpsertBulk) Ignore() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetCreatedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetDeletedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetFlowDeploymentID(v string) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetRefID(v string) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetStatus(v int8) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) SetUpdatedAt(v int64) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) Update(set func(*FlowInstanceUpsert)) *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateCreatedAt() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateDeletedAt() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateFlowDeploymentID() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateNewValues() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateRefID() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateStatus() *FlowInstanceUpsertBulk
- func (u *FlowInstanceUpsertBulk) UpdateUpdatedAt() *FlowInstanceUpsertBulk
- type FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) AddCreatedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) AddDeletedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) AddStatus(v int8) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) AddUpdatedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) ClearDeletedAt() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) DoNothing() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) Exec(ctx context.Context) error
- func (u *FlowInstanceUpsertOne) ExecX(ctx context.Context)
- func (u *FlowInstanceUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowInstanceUpsertOne) IDX(ctx context.Context) string
- func (u *FlowInstanceUpsertOne) Ignore() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetCreatedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetDeletedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetFlowDeploymentID(v string) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetRefID(v string) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetStatus(v int8) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) SetUpdatedAt(v int64) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) Update(set func(*FlowInstanceUpsert)) *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateCreatedAt() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateDeletedAt() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateFlowDeploymentID() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateNewValues() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateRefID() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateStatus() *FlowInstanceUpsertOne
- func (u *FlowInstanceUpsertOne) UpdateUpdatedAt() *FlowInstanceUpsertOne
- type FlowInstances
- type FlowNodeInstance
- type FlowNodeInstanceClient
- func (c *FlowNodeInstanceClient) Create() *FlowNodeInstanceCreate
- func (c *FlowNodeInstanceClient) CreateBulk(builders ...*FlowNodeInstanceCreate) *FlowNodeInstanceCreateBulk
- func (c *FlowNodeInstanceClient) Delete() *FlowNodeInstanceDelete
- func (c *FlowNodeInstanceClient) DeleteOne(fni *FlowNodeInstance) *FlowNodeInstanceDeleteOne
- func (c *FlowNodeInstanceClient) DeleteOneID(id string) *FlowNodeInstanceDeleteOne
- func (c *FlowNodeInstanceClient) Get(ctx context.Context, id string) (*FlowNodeInstance, error)
- func (c *FlowNodeInstanceClient) GetX(ctx context.Context, id string) *FlowNodeInstance
- func (c *FlowNodeInstanceClient) Hooks() []Hook
- func (c *FlowNodeInstanceClient) Query() *FlowNodeInstanceQuery
- func (c *FlowNodeInstanceClient) QueryFlowInstance(fni *FlowNodeInstance) *FlowInstanceQuery
- func (c *FlowNodeInstanceClient) Update() *FlowNodeInstanceUpdate
- func (c *FlowNodeInstanceClient) UpdateOne(fni *FlowNodeInstance) *FlowNodeInstanceUpdateOne
- func (c *FlowNodeInstanceClient) UpdateOneID(id string) *FlowNodeInstanceUpdateOne
- func (c *FlowNodeInstanceClient) Use(hooks ...Hook)
- type FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) Exec(ctx context.Context) error
- func (fnic *FlowNodeInstanceCreate) ExecX(ctx context.Context)
- func (fnic *FlowNodeInstanceCreate) Mutation() *FlowNodeInstanceMutation
- func (fnic *FlowNodeInstanceCreate) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceUpsertOne
- func (fnic *FlowNodeInstanceCreate) OnConflictColumns(columns ...string) *FlowNodeInstanceUpsertOne
- func (fnic *FlowNodeInstanceCreate) Save(ctx context.Context) (*FlowNodeInstance, error)
- func (fnic *FlowNodeInstanceCreate) SaveX(ctx context.Context) *FlowNodeInstance
- func (fnic *FlowNodeInstanceCreate) SetCreatedAt(i int64) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetDeletedAt(i int64) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetFlowInstanceDataID(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetFlowInstanceID(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetID(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableCreatedAt(i *int64) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableID(s *string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableStatus(i *int8) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNillableUpdatedAt(i *int64) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetNodeKey(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetSourceNodeKey(s string) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetStatus(i int8) *FlowNodeInstanceCreate
- func (fnic *FlowNodeInstanceCreate) SetUpdatedAt(i int64) *FlowNodeInstanceCreate
- type FlowNodeInstanceCreateBulk
- func (fnicb *FlowNodeInstanceCreateBulk) Exec(ctx context.Context) error
- func (fnicb *FlowNodeInstanceCreateBulk) ExecX(ctx context.Context)
- func (fnicb *FlowNodeInstanceCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceUpsertBulk
- func (fnicb *FlowNodeInstanceCreateBulk) OnConflictColumns(columns ...string) *FlowNodeInstanceUpsertBulk
- func (fnicb *FlowNodeInstanceCreateBulk) Save(ctx context.Context) ([]*FlowNodeInstance, error)
- func (fnicb *FlowNodeInstanceCreateBulk) SaveX(ctx context.Context) []*FlowNodeInstance
- type FlowNodeInstanceDelete
- type FlowNodeInstanceDeleteOne
- type FlowNodeInstanceEdges
- type FlowNodeInstanceGroupBy
- func (fnigb *FlowNodeInstanceGroupBy) Aggregate(fns ...AggregateFunc) *FlowNodeInstanceGroupBy
- func (s *FlowNodeInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowNodeInstanceGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowNodeInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowNodeInstanceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowNodeInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowNodeInstanceGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowNodeInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowNodeInstanceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowNodeInstanceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowNodeInstanceGroupBy) IntX(ctx context.Context) int
- func (s *FlowNodeInstanceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowNodeInstanceGroupBy) IntsX(ctx context.Context) []int
- func (fnigb *FlowNodeInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowNodeInstanceGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowNodeInstanceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowNodeInstanceGroupBy) StringX(ctx context.Context) string
- func (s *FlowNodeInstanceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowNodeInstanceGroupBy) StringsX(ctx context.Context) []string
- type FlowNodeInstanceLog
- type FlowNodeInstanceLogClient
- func (c *FlowNodeInstanceLogClient) Create() *FlowNodeInstanceLogCreate
- func (c *FlowNodeInstanceLogClient) CreateBulk(builders ...*FlowNodeInstanceLogCreate) *FlowNodeInstanceLogCreateBulk
- func (c *FlowNodeInstanceLogClient) Delete() *FlowNodeInstanceLogDelete
- func (c *FlowNodeInstanceLogClient) DeleteOne(fnil *FlowNodeInstanceLog) *FlowNodeInstanceLogDeleteOne
- func (c *FlowNodeInstanceLogClient) DeleteOneID(id string) *FlowNodeInstanceLogDeleteOne
- func (c *FlowNodeInstanceLogClient) Get(ctx context.Context, id string) (*FlowNodeInstanceLog, error)
- func (c *FlowNodeInstanceLogClient) GetX(ctx context.Context, id string) *FlowNodeInstanceLog
- func (c *FlowNodeInstanceLogClient) Hooks() []Hook
- func (c *FlowNodeInstanceLogClient) Query() *FlowNodeInstanceLogQuery
- func (c *FlowNodeInstanceLogClient) Update() *FlowNodeInstanceLogUpdate
- func (c *FlowNodeInstanceLogClient) UpdateOne(fnil *FlowNodeInstanceLog) *FlowNodeInstanceLogUpdateOne
- func (c *FlowNodeInstanceLogClient) UpdateOneID(id string) *FlowNodeInstanceLogUpdateOne
- func (c *FlowNodeInstanceLogClient) Use(hooks ...Hook)
- type FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) Exec(ctx context.Context) error
- func (fnilc *FlowNodeInstanceLogCreate) ExecX(ctx context.Context)
- func (fnilc *FlowNodeInstanceLogCreate) Mutation() *FlowNodeInstanceLogMutation
- func (fnilc *FlowNodeInstanceLogCreate) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceLogUpsertOne
- func (fnilc *FlowNodeInstanceLogCreate) OnConflictColumns(columns ...string) *FlowNodeInstanceLogUpsertOne
- func (fnilc *FlowNodeInstanceLogCreate) Save(ctx context.Context) (*FlowNodeInstanceLog, error)
- func (fnilc *FlowNodeInstanceLogCreate) SaveX(ctx context.Context) *FlowNodeInstanceLog
- func (fnilc *FlowNodeInstanceLogCreate) SetCreatedAt(i int64) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetDeletedAt(i int64) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetFlowInstanceID(s string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetID(s string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableCreatedAt(i *int64) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableID(s *string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableStatus(i *int8) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableType(i *int8) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNillableUpdatedAt(i *int64) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetNodeKey(s string) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetStatus(i int8) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetType(i int8) *FlowNodeInstanceLogCreate
- func (fnilc *FlowNodeInstanceLogCreate) SetUpdatedAt(i int64) *FlowNodeInstanceLogCreate
- type FlowNodeInstanceLogCreateBulk
- func (fnilcb *FlowNodeInstanceLogCreateBulk) Exec(ctx context.Context) error
- func (fnilcb *FlowNodeInstanceLogCreateBulk) ExecX(ctx context.Context)
- func (fnilcb *FlowNodeInstanceLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceLogUpsertBulk
- func (fnilcb *FlowNodeInstanceLogCreateBulk) OnConflictColumns(columns ...string) *FlowNodeInstanceLogUpsertBulk
- func (fnilcb *FlowNodeInstanceLogCreateBulk) Save(ctx context.Context) ([]*FlowNodeInstanceLog, error)
- func (fnilcb *FlowNodeInstanceLogCreateBulk) SaveX(ctx context.Context) []*FlowNodeInstanceLog
- type FlowNodeInstanceLogDelete
- type FlowNodeInstanceLogDeleteOne
- type FlowNodeInstanceLogGroupBy
- func (fnilgb *FlowNodeInstanceLogGroupBy) Aggregate(fns ...AggregateFunc) *FlowNodeInstanceLogGroupBy
- func (s *FlowNodeInstanceLogGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowNodeInstanceLogGroupBy) BoolX(ctx context.Context) bool
- func (s *FlowNodeInstanceLogGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowNodeInstanceLogGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FlowNodeInstanceLogGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowNodeInstanceLogGroupBy) Float64X(ctx context.Context) float64
- func (s *FlowNodeInstanceLogGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowNodeInstanceLogGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FlowNodeInstanceLogGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FlowNodeInstanceLogGroupBy) IntX(ctx context.Context) int
- func (s *FlowNodeInstanceLogGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FlowNodeInstanceLogGroupBy) IntsX(ctx context.Context) []int
- func (fnilgb *FlowNodeInstanceLogGroupBy) Scan(ctx context.Context, v interface{}) error
- func (s *FlowNodeInstanceLogGroupBy) ScanX(ctx context.Context, v interface{})
- func (s *FlowNodeInstanceLogGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FlowNodeInstanceLogGroupBy) StringX(ctx context.Context) string
- func (s *FlowNodeInstanceLogGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FlowNodeInstanceLogGroupBy) StringsX(ctx context.Context) []string
- type FlowNodeInstanceLogMutation
- func (m *FlowNodeInstanceLogMutation) AddCreatedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) AddDeletedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) AddField(name string, value ent.Value) error
- func (m *FlowNodeInstanceLogMutation) AddStatus(i int8)
- func (m *FlowNodeInstanceLogMutation) AddType(i int8)
- func (m *FlowNodeInstanceLogMutation) AddUpdatedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) AddedEdges() []string
- func (m *FlowNodeInstanceLogMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowNodeInstanceLogMutation) AddedFields() []string
- func (m *FlowNodeInstanceLogMutation) AddedIDs(name string) []ent.Value
- func (m *FlowNodeInstanceLogMutation) AddedStatus() (r int8, exists bool)
- func (m *FlowNodeInstanceLogMutation) AddedType() (r int8, exists bool)
- func (m *FlowNodeInstanceLogMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) ClearDeletedAt()
- func (m *FlowNodeInstanceLogMutation) ClearEdge(name string) error
- func (m *FlowNodeInstanceLogMutation) ClearField(name string) error
- func (m *FlowNodeInstanceLogMutation) ClearFlowInstanceDataID()
- func (m *FlowNodeInstanceLogMutation) ClearedEdges() []string
- func (m *FlowNodeInstanceLogMutation) ClearedFields() []string
- func (m FlowNodeInstanceLogMutation) Client() *Client
- func (m *FlowNodeInstanceLogMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) DeletedAtCleared() bool
- func (m *FlowNodeInstanceLogMutation) EdgeCleared(name string) bool
- func (m *FlowNodeInstanceLogMutation) Field(name string) (ent.Value, bool)
- func (m *FlowNodeInstanceLogMutation) FieldCleared(name string) bool
- func (m *FlowNodeInstanceLogMutation) Fields() []string
- func (m *FlowNodeInstanceLogMutation) FlowInstanceDataID() (r string, exists bool)
- func (m *FlowNodeInstanceLogMutation) FlowInstanceDataIDCleared() bool
- func (m *FlowNodeInstanceLogMutation) FlowInstanceID() (r string, exists bool)
- func (m *FlowNodeInstanceLogMutation) FlowNodeInstanceID() (r string, exists bool)
- func (m *FlowNodeInstanceLogMutation) GetType() (r int8, exists bool)
- func (m *FlowNodeInstanceLogMutation) ID() (id string, exists bool)
- func (m *FlowNodeInstanceLogMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowNodeInstanceLogMutation) NodeKey() (r string, exists bool)
- func (m *FlowNodeInstanceLogMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceLogMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowNodeInstanceLogMutation) OldFlowInstanceDataID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceLogMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceLogMutation) OldFlowNodeInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceLogMutation) OldNodeKey(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceLogMutation) OldStatus(ctx context.Context) (v int8, err error)
- func (m *FlowNodeInstanceLogMutation) OldType(ctx context.Context) (v int8, err error)
- func (m *FlowNodeInstanceLogMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceLogMutation) Op() Op
- func (m *FlowNodeInstanceLogMutation) RemovedEdges() []string
- func (m *FlowNodeInstanceLogMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowNodeInstanceLogMutation) ResetCreatedAt()
- func (m *FlowNodeInstanceLogMutation) ResetDeletedAt()
- func (m *FlowNodeInstanceLogMutation) ResetEdge(name string) error
- func (m *FlowNodeInstanceLogMutation) ResetField(name string) error
- func (m *FlowNodeInstanceLogMutation) ResetFlowInstanceDataID()
- func (m *FlowNodeInstanceLogMutation) ResetFlowInstanceID()
- func (m *FlowNodeInstanceLogMutation) ResetFlowNodeInstanceID()
- func (m *FlowNodeInstanceLogMutation) ResetNodeKey()
- func (m *FlowNodeInstanceLogMutation) ResetStatus()
- func (m *FlowNodeInstanceLogMutation) ResetType()
- func (m *FlowNodeInstanceLogMutation) ResetUpdatedAt()
- func (m *FlowNodeInstanceLogMutation) SetCreatedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) SetDeletedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) SetField(name string, value ent.Value) error
- func (m *FlowNodeInstanceLogMutation) SetFlowInstanceDataID(s string)
- func (m *FlowNodeInstanceLogMutation) SetFlowInstanceID(s string)
- func (m *FlowNodeInstanceLogMutation) SetFlowNodeInstanceID(s string)
- func (m *FlowNodeInstanceLogMutation) SetID(id string)
- func (m *FlowNodeInstanceLogMutation) SetNodeKey(s string)
- func (m *FlowNodeInstanceLogMutation) SetStatus(i int8)
- func (m *FlowNodeInstanceLogMutation) SetType(i int8)
- func (m *FlowNodeInstanceLogMutation) SetUpdatedAt(i int64)
- func (m *FlowNodeInstanceLogMutation) Status() (r int8, exists bool)
- func (m FlowNodeInstanceLogMutation) Tx() (*Tx, error)
- func (m *FlowNodeInstanceLogMutation) Type() string
- func (m *FlowNodeInstanceLogMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceLogMutation) Where(ps ...predicate.FlowNodeInstanceLog)
- type FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) All(ctx context.Context) ([]*FlowNodeInstanceLog, error)
- func (fnilq *FlowNodeInstanceLogQuery) AllX(ctx context.Context) []*FlowNodeInstanceLog
- func (fnilq *FlowNodeInstanceLogQuery) Clone() *FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) Count(ctx context.Context) (int, error)
- func (fnilq *FlowNodeInstanceLogQuery) CountX(ctx context.Context) int
- func (fnilq *FlowNodeInstanceLogQuery) Exist(ctx context.Context) (bool, error)
- func (fnilq *FlowNodeInstanceLogQuery) ExistX(ctx context.Context) bool
- func (fnilq *FlowNodeInstanceLogQuery) First(ctx context.Context) (*FlowNodeInstanceLog, error)
- func (fnilq *FlowNodeInstanceLogQuery) FirstID(ctx context.Context) (id string, err error)
- func (fnilq *FlowNodeInstanceLogQuery) FirstIDX(ctx context.Context) string
- func (fnilq *FlowNodeInstanceLogQuery) FirstX(ctx context.Context) *FlowNodeInstanceLog
- func (fnilq *FlowNodeInstanceLogQuery) GroupBy(field string, fields ...string) *FlowNodeInstanceLogGroupBy
- func (fnilq *FlowNodeInstanceLogQuery) IDs(ctx context.Context) ([]string, error)
- func (fnilq *FlowNodeInstanceLogQuery) IDsX(ctx context.Context) []string
- func (fnilq *FlowNodeInstanceLogQuery) Limit(limit int) *FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) Offset(offset int) *FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) Only(ctx context.Context) (*FlowNodeInstanceLog, error)
- func (fnilq *FlowNodeInstanceLogQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fnilq *FlowNodeInstanceLogQuery) OnlyIDX(ctx context.Context) string
- func (fnilq *FlowNodeInstanceLogQuery) OnlyX(ctx context.Context) *FlowNodeInstanceLog
- func (fnilq *FlowNodeInstanceLogQuery) Order(o ...OrderFunc) *FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) Select(fields ...string) *FlowNodeInstanceLogSelect
- func (fnilq *FlowNodeInstanceLogQuery) Unique(unique bool) *FlowNodeInstanceLogQuery
- func (fnilq *FlowNodeInstanceLogQuery) Where(ps ...predicate.FlowNodeInstanceLog) *FlowNodeInstanceLogQuery
- type FlowNodeInstanceLogSelect
- func (s *FlowNodeInstanceLogSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowNodeInstanceLogSelect) BoolX(ctx context.Context) bool
- func (s *FlowNodeInstanceLogSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowNodeInstanceLogSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowNodeInstanceLogSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowNodeInstanceLogSelect) Float64X(ctx context.Context) float64
- func (s *FlowNodeInstanceLogSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowNodeInstanceLogSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowNodeInstanceLogSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowNodeInstanceLogSelect) IntX(ctx context.Context) int
- func (s *FlowNodeInstanceLogSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowNodeInstanceLogSelect) IntsX(ctx context.Context) []int
- func (fnils *FlowNodeInstanceLogSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowNodeInstanceLogSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowNodeInstanceLogSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowNodeInstanceLogSelect) StringX(ctx context.Context) string
- func (s *FlowNodeInstanceLogSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowNodeInstanceLogSelect) StringsX(ctx context.Context) []string
- type FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) AddDeletedAt(i int64) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) AddStatus(i int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) AddType(i int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) AddUpdatedAt(i int64) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) ClearDeletedAt() *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) Exec(ctx context.Context) error
- func (fnilu *FlowNodeInstanceLogUpdate) ExecX(ctx context.Context)
- func (fnilu *FlowNodeInstanceLogUpdate) Mutation() *FlowNodeInstanceLogMutation
- func (fnilu *FlowNodeInstanceLogUpdate) Save(ctx context.Context) (int, error)
- func (fnilu *FlowNodeInstanceLogUpdate) SaveX(ctx context.Context) int
- func (fnilu *FlowNodeInstanceLogUpdate) SetDeletedAt(i int64) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetFlowInstanceID(s string) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetNillableStatus(i *int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetNillableType(i *int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetNodeKey(s string) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetStatus(i int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetType(i int8) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) SetUpdatedAt(i int64) *FlowNodeInstanceLogUpdate
- func (fnilu *FlowNodeInstanceLogUpdate) Where(ps ...predicate.FlowNodeInstanceLog) *FlowNodeInstanceLogUpdate
- type FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) AddDeletedAt(i int64) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) AddStatus(i int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) AddType(i int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) AddUpdatedAt(i int64) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) ClearDeletedAt() *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) Exec(ctx context.Context) error
- func (fniluo *FlowNodeInstanceLogUpdateOne) ExecX(ctx context.Context)
- func (fniluo *FlowNodeInstanceLogUpdateOne) Mutation() *FlowNodeInstanceLogMutation
- func (fniluo *FlowNodeInstanceLogUpdateOne) Save(ctx context.Context) (*FlowNodeInstanceLog, error)
- func (fniluo *FlowNodeInstanceLogUpdateOne) SaveX(ctx context.Context) *FlowNodeInstanceLog
- func (fniluo *FlowNodeInstanceLogUpdateOne) Select(field string, fields ...string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetDeletedAt(i int64) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowInstanceID(s string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableStatus(i *int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableType(i *int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetNodeKey(s string) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetStatus(i int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetType(i int8) *FlowNodeInstanceLogUpdateOne
- func (fniluo *FlowNodeInstanceLogUpdateOne) SetUpdatedAt(i int64) *FlowNodeInstanceLogUpdateOne
- type FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) AddStatus(v int8) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) AddType(v int8) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) ClearDeletedAt() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetNodeKey(v string) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetStatus(v int8) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetType(v int8) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateCreatedAt() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateDeletedAt() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateNodeKey() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateStatus() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateType() *FlowNodeInstanceLogUpsert
- func (u *FlowNodeInstanceLogUpsert) UpdateUpdatedAt() *FlowNodeInstanceLogUpsert
- type FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) AddStatus(v int8) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) AddType(v int8) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) ClearDeletedAt() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) DoNothing() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowNodeInstanceLogUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowNodeInstanceLogUpsertBulk) Ignore() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetNodeKey(v string) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetStatus(v int8) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetType(v int8) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) Update(set func(*FlowNodeInstanceLogUpsert)) *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateCreatedAt() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateDeletedAt() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateNewValues() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateNodeKey() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateStatus() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateType() *FlowNodeInstanceLogUpsertBulk
- func (u *FlowNodeInstanceLogUpsertBulk) UpdateUpdatedAt() *FlowNodeInstanceLogUpsertBulk
- type FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) AddStatus(v int8) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) AddType(v int8) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) ClearDeletedAt() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) DoNothing() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) Exec(ctx context.Context) error
- func (u *FlowNodeInstanceLogUpsertOne) ExecX(ctx context.Context)
- func (u *FlowNodeInstanceLogUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowNodeInstanceLogUpsertOne) IDX(ctx context.Context) string
- func (u *FlowNodeInstanceLogUpsertOne) Ignore() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetNodeKey(v string) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetStatus(v int8) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetType(v int8) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) Update(set func(*FlowNodeInstanceLogUpsert)) *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateCreatedAt() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateDeletedAt() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateNewValues() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateNodeKey() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateStatus() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateType() *FlowNodeInstanceLogUpsertOne
- func (u *FlowNodeInstanceLogUpsertOne) UpdateUpdatedAt() *FlowNodeInstanceLogUpsertOne
- type FlowNodeInstanceLogs
- type FlowNodeInstanceMutation
- func (m *FlowNodeInstanceMutation) AddCreatedAt(i int64)
- func (m *FlowNodeInstanceMutation) AddDeletedAt(i int64)
- func (m *FlowNodeInstanceMutation) AddField(name string, value ent.Value) error
- func (m *FlowNodeInstanceMutation) AddStatus(i int8)
- func (m *FlowNodeInstanceMutation) AddUpdatedAt(i int64)
- func (m *FlowNodeInstanceMutation) AddedCreatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) AddedDeletedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) AddedEdges() []string
- func (m *FlowNodeInstanceMutation) AddedField(name string) (ent.Value, bool)
- func (m *FlowNodeInstanceMutation) AddedFields() []string
- func (m *FlowNodeInstanceMutation) AddedIDs(name string) []ent.Value
- func (m *FlowNodeInstanceMutation) AddedStatus() (r int8, exists bool)
- func (m *FlowNodeInstanceMutation) AddedUpdatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) ClearDeletedAt()
- func (m *FlowNodeInstanceMutation) ClearEdge(name string) error
- func (m *FlowNodeInstanceMutation) ClearField(name string) error
- func (m *FlowNodeInstanceMutation) ClearFlowInstance()
- func (m *FlowNodeInstanceMutation) ClearFlowInstanceDataID()
- func (m *FlowNodeInstanceMutation) ClearSourceFlowNodeInstanceID()
- func (m *FlowNodeInstanceMutation) ClearSourceNodeKey()
- func (m *FlowNodeInstanceMutation) ClearedEdges() []string
- func (m *FlowNodeInstanceMutation) ClearedFields() []string
- func (m FlowNodeInstanceMutation) Client() *Client
- func (m *FlowNodeInstanceMutation) CreatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) DeletedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) DeletedAtCleared() bool
- func (m *FlowNodeInstanceMutation) EdgeCleared(name string) bool
- func (m *FlowNodeInstanceMutation) Field(name string) (ent.Value, bool)
- func (m *FlowNodeInstanceMutation) FieldCleared(name string) bool
- func (m *FlowNodeInstanceMutation) Fields() []string
- func (m *FlowNodeInstanceMutation) FlowInstanceCleared() bool
- func (m *FlowNodeInstanceMutation) FlowInstanceDataID() (r string, exists bool)
- func (m *FlowNodeInstanceMutation) FlowInstanceDataIDCleared() bool
- func (m *FlowNodeInstanceMutation) FlowInstanceID() (r string, exists bool)
- func (m *FlowNodeInstanceMutation) FlowInstanceIDs() (ids []string)
- func (m *FlowNodeInstanceMutation) ID() (id string, exists bool)
- func (m *FlowNodeInstanceMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FlowNodeInstanceMutation) NodeKey() (r string, exists bool)
- func (m *FlowNodeInstanceMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FlowNodeInstanceMutation) OldFlowInstanceDataID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceMutation) OldNodeKey(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceMutation) OldSourceFlowNodeInstanceID(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceMutation) OldSourceNodeKey(ctx context.Context) (v string, err error)
- func (m *FlowNodeInstanceMutation) OldStatus(ctx context.Context) (v int8, err error)
- func (m *FlowNodeInstanceMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
- func (m *FlowNodeInstanceMutation) Op() Op
- func (m *FlowNodeInstanceMutation) RemovedEdges() []string
- func (m *FlowNodeInstanceMutation) RemovedIDs(name string) []ent.Value
- func (m *FlowNodeInstanceMutation) ResetCreatedAt()
- func (m *FlowNodeInstanceMutation) ResetDeletedAt()
- func (m *FlowNodeInstanceMutation) ResetEdge(name string) error
- func (m *FlowNodeInstanceMutation) ResetField(name string) error
- func (m *FlowNodeInstanceMutation) ResetFlowInstance()
- func (m *FlowNodeInstanceMutation) ResetFlowInstanceDataID()
- func (m *FlowNodeInstanceMutation) ResetFlowInstanceID()
- func (m *FlowNodeInstanceMutation) ResetNodeKey()
- func (m *FlowNodeInstanceMutation) ResetSourceFlowNodeInstanceID()
- func (m *FlowNodeInstanceMutation) ResetSourceNodeKey()
- func (m *FlowNodeInstanceMutation) ResetStatus()
- func (m *FlowNodeInstanceMutation) ResetUpdatedAt()
- func (m *FlowNodeInstanceMutation) SetCreatedAt(i int64)
- func (m *FlowNodeInstanceMutation) SetDeletedAt(i int64)
- func (m *FlowNodeInstanceMutation) SetField(name string, value ent.Value) error
- func (m *FlowNodeInstanceMutation) SetFlowInstanceDataID(s string)
- func (m *FlowNodeInstanceMutation) SetFlowInstanceID(s string)
- func (m *FlowNodeInstanceMutation) SetID(id string)
- func (m *FlowNodeInstanceMutation) SetNodeKey(s string)
- func (m *FlowNodeInstanceMutation) SetSourceFlowNodeInstanceID(s string)
- func (m *FlowNodeInstanceMutation) SetSourceNodeKey(s string)
- func (m *FlowNodeInstanceMutation) SetStatus(i int8)
- func (m *FlowNodeInstanceMutation) SetUpdatedAt(i int64)
- func (m *FlowNodeInstanceMutation) SourceFlowNodeInstanceID() (r string, exists bool)
- func (m *FlowNodeInstanceMutation) SourceFlowNodeInstanceIDCleared() bool
- func (m *FlowNodeInstanceMutation) SourceNodeKey() (r string, exists bool)
- func (m *FlowNodeInstanceMutation) SourceNodeKeyCleared() bool
- func (m *FlowNodeInstanceMutation) Status() (r int8, exists bool)
- func (m FlowNodeInstanceMutation) Tx() (*Tx, error)
- func (m *FlowNodeInstanceMutation) Type() string
- func (m *FlowNodeInstanceMutation) UpdatedAt() (r int64, exists bool)
- func (m *FlowNodeInstanceMutation) Where(ps ...predicate.FlowNodeInstance)
- type FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) All(ctx context.Context) ([]*FlowNodeInstance, error)
- func (fniq *FlowNodeInstanceQuery) AllX(ctx context.Context) []*FlowNodeInstance
- func (fniq *FlowNodeInstanceQuery) Clone() *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) Count(ctx context.Context) (int, error)
- func (fniq *FlowNodeInstanceQuery) CountX(ctx context.Context) int
- func (fniq *FlowNodeInstanceQuery) Exist(ctx context.Context) (bool, error)
- func (fniq *FlowNodeInstanceQuery) ExistX(ctx context.Context) bool
- func (fniq *FlowNodeInstanceQuery) First(ctx context.Context) (*FlowNodeInstance, error)
- func (fniq *FlowNodeInstanceQuery) FirstID(ctx context.Context) (id string, err error)
- func (fniq *FlowNodeInstanceQuery) FirstIDX(ctx context.Context) string
- func (fniq *FlowNodeInstanceQuery) FirstX(ctx context.Context) *FlowNodeInstance
- func (fniq *FlowNodeInstanceQuery) GroupBy(field string, fields ...string) *FlowNodeInstanceGroupBy
- func (fniq *FlowNodeInstanceQuery) IDs(ctx context.Context) ([]string, error)
- func (fniq *FlowNodeInstanceQuery) IDsX(ctx context.Context) []string
- func (fniq *FlowNodeInstanceQuery) Limit(limit int) *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) Offset(offset int) *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) Only(ctx context.Context) (*FlowNodeInstance, error)
- func (fniq *FlowNodeInstanceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fniq *FlowNodeInstanceQuery) OnlyIDX(ctx context.Context) string
- func (fniq *FlowNodeInstanceQuery) OnlyX(ctx context.Context) *FlowNodeInstance
- func (fniq *FlowNodeInstanceQuery) Order(o ...OrderFunc) *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) QueryFlowInstance() *FlowInstanceQuery
- func (fniq *FlowNodeInstanceQuery) Select(fields ...string) *FlowNodeInstanceSelect
- func (fniq *FlowNodeInstanceQuery) Unique(unique bool) *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) Where(ps ...predicate.FlowNodeInstance) *FlowNodeInstanceQuery
- func (fniq *FlowNodeInstanceQuery) WithFlowInstance(opts ...func(*FlowInstanceQuery)) *FlowNodeInstanceQuery
- type FlowNodeInstanceSelect
- func (s *FlowNodeInstanceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FlowNodeInstanceSelect) BoolX(ctx context.Context) bool
- func (s *FlowNodeInstanceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FlowNodeInstanceSelect) BoolsX(ctx context.Context) []bool
- func (s *FlowNodeInstanceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FlowNodeInstanceSelect) Float64X(ctx context.Context) float64
- func (s *FlowNodeInstanceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FlowNodeInstanceSelect) Float64sX(ctx context.Context) []float64
- func (s *FlowNodeInstanceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FlowNodeInstanceSelect) IntX(ctx context.Context) int
- func (s *FlowNodeInstanceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FlowNodeInstanceSelect) IntsX(ctx context.Context) []int
- func (fnis *FlowNodeInstanceSelect) Scan(ctx context.Context, v interface{}) error
- func (s *FlowNodeInstanceSelect) ScanX(ctx context.Context, v interface{})
- func (s *FlowNodeInstanceSelect) String(ctx context.Context) (_ string, err error)
- func (s *FlowNodeInstanceSelect) StringX(ctx context.Context) string
- func (s *FlowNodeInstanceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FlowNodeInstanceSelect) StringsX(ctx context.Context) []string
- type FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) AddDeletedAt(i int64) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) AddStatus(i int8) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) AddUpdatedAt(i int64) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) ClearDeletedAt() *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) ClearFlowInstance() *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) ClearFlowInstanceDataID() *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) ClearSourceNodeKey() *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) Exec(ctx context.Context) error
- func (fniu *FlowNodeInstanceUpdate) ExecX(ctx context.Context)
- func (fniu *FlowNodeInstanceUpdate) Mutation() *FlowNodeInstanceMutation
- func (fniu *FlowNodeInstanceUpdate) Save(ctx context.Context) (int, error)
- func (fniu *FlowNodeInstanceUpdate) SaveX(ctx context.Context) int
- func (fniu *FlowNodeInstanceUpdate) SetDeletedAt(i int64) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetFlowInstanceDataID(s string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetFlowInstanceID(s string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNillableStatus(i *int8) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetNodeKey(s string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetSourceNodeKey(s string) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetStatus(i int8) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) SetUpdatedAt(i int64) *FlowNodeInstanceUpdate
- func (fniu *FlowNodeInstanceUpdate) Where(ps ...predicate.FlowNodeInstance) *FlowNodeInstanceUpdate
- type FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) AddDeletedAt(i int64) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) AddStatus(i int8) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) AddUpdatedAt(i int64) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) ClearDeletedAt() *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) ClearFlowInstance() *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) ClearFlowInstanceDataID() *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) ClearSourceNodeKey() *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) Exec(ctx context.Context) error
- func (fniuo *FlowNodeInstanceUpdateOne) ExecX(ctx context.Context)
- func (fniuo *FlowNodeInstanceUpdateOne) Mutation() *FlowNodeInstanceMutation
- func (fniuo *FlowNodeInstanceUpdateOne) Save(ctx context.Context) (*FlowNodeInstance, error)
- func (fniuo *FlowNodeInstanceUpdateOne) SaveX(ctx context.Context) *FlowNodeInstance
- func (fniuo *FlowNodeInstanceUpdateOne) Select(field string, fields ...string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetDeletedAt(i int64) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstanceDataID(s string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstanceID(s string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNillableDeletedAt(i *int64) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNillableStatus(i *int8) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetNodeKey(s string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetSourceNodeKey(s string) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetStatus(i int8) *FlowNodeInstanceUpdateOne
- func (fniuo *FlowNodeInstanceUpdateOne) SetUpdatedAt(i int64) *FlowNodeInstanceUpdateOne
- type FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) AddCreatedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) AddDeletedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) AddStatus(v int8) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) AddUpdatedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) ClearDeletedAt() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) ClearFlowInstanceDataID() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) ClearSourceNodeKey() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetCreatedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetDeletedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetFlowInstanceID(v string) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetNodeKey(v string) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetSourceNodeKey(v string) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetStatus(v int8) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) SetUpdatedAt(v int64) *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateCreatedAt() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateDeletedAt() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateFlowInstanceID() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateNodeKey() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateSourceNodeKey() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateStatus() *FlowNodeInstanceUpsert
- func (u *FlowNodeInstanceUpsert) UpdateUpdatedAt() *FlowNodeInstanceUpsert
- type FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) AddCreatedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) AddDeletedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) AddStatus(v int8) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) AddUpdatedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) ClearDeletedAt() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) ClearFlowInstanceDataID() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) ClearSourceNodeKey() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) DoNothing() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) Exec(ctx context.Context) error
- func (u *FlowNodeInstanceUpsertBulk) ExecX(ctx context.Context)
- func (u *FlowNodeInstanceUpsertBulk) Ignore() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetCreatedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetDeletedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetFlowInstanceID(v string) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetNodeKey(v string) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetSourceNodeKey(v string) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetStatus(v int8) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) SetUpdatedAt(v int64) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) Update(set func(*FlowNodeInstanceUpsert)) *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateCreatedAt() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateDeletedAt() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateFlowInstanceID() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateNewValues() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateNodeKey() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateSourceNodeKey() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateStatus() *FlowNodeInstanceUpsertBulk
- func (u *FlowNodeInstanceUpsertBulk) UpdateUpdatedAt() *FlowNodeInstanceUpsertBulk
- type FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) AddCreatedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) AddDeletedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) AddStatus(v int8) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) AddUpdatedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) ClearDeletedAt() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) ClearFlowInstanceDataID() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) ClearSourceNodeKey() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) DoNothing() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) Exec(ctx context.Context) error
- func (u *FlowNodeInstanceUpsertOne) ExecX(ctx context.Context)
- func (u *FlowNodeInstanceUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FlowNodeInstanceUpsertOne) IDX(ctx context.Context) string
- func (u *FlowNodeInstanceUpsertOne) Ignore() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetCreatedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetDeletedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetFlowInstanceID(v string) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetNodeKey(v string) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetSourceNodeKey(v string) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetStatus(v int8) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) SetUpdatedAt(v int64) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) Update(set func(*FlowNodeInstanceUpsert)) *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateCreatedAt() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateDeletedAt() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateFlowInstanceID() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateNewValues() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateNodeKey() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateSourceNodeKey() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateStatus() *FlowNodeInstanceUpsertOne
- func (u *FlowNodeInstanceUpsertOne) UpdateUpdatedAt() *FlowNodeInstanceUpsertOne
- type FlowNodeInstances
- type GetFlowDefinitionReq
- type GetFlowDeploymentReq
- type GetFlowInstanceDataReq
- type GetFlowInstanceReq
- type GetFlowNodeInstanceLogReq
- type GetFlowNodeInstanceReq
- type Hook
- type IFlowDefinition
- type IFlowDeployment
- type IFlowInstance
- type IFlowInstanceData
- type IFlowNodeInstance
- type IFlowNodeInstanceLog
- type ListFlowDefinitionFilter
- type ListFlowDefinitionReq
- type ListFlowDefinitionRes
- type ListFlowDefinitionSorter
- type ListFlowDeploymentFilter
- type ListFlowDeploymentReq
- type ListFlowDeploymentRes
- type ListFlowDeploymentSorter
- type ListFlowInstanceDataFilter
- type ListFlowInstanceDataReq
- type ListFlowInstanceDataRes
- type ListFlowInstanceDataSorter
- type ListFlowInstanceFilter
- type ListFlowInstanceReq
- type ListFlowInstanceRes
- type ListFlowInstanceSorter
- type ListFlowNodeInstanceFilter
- type ListFlowNodeInstanceLogFilter
- type ListFlowNodeInstanceLogReq
- type ListFlowNodeInstanceLogRes
- type ListFlowNodeInstanceLogSorter
- type ListFlowNodeInstanceReq
- type ListFlowNodeInstanceRes
- type ListFlowNodeInstanceSorter
- type MutateFunc
- type Mutation
- type Mutator
- 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 UpdateFlowDefinitionReq
- type UpdateFlowDeploymentReq
- type UpdateFlowInstanceDataReq
- type UpdateFlowInstanceReq
- type UpdateFlowNodeInstanceLogReq
- type UpdateFlowNodeInstanceReq
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeFlowDefinition = "FlowDefinition" TypeFlowDeployment = "FlowDeployment" TypeFlowInstance = "FlowInstance" TypeFlowInstanceData = "FlowInstanceData" TypeFlowNodeInstance = "FlowNodeInstance" TypeFlowNodeInstanceLog = "FlowNodeInstanceLog" )
Variables ¶
This section is empty.
Functions ¶
func CreateFlowDefinitionController ¶
func CreateFlowDefinitionController(ctx context.Context, req *CreateFlowDefinitionReq) (err error)
func CreateFlowDeploymentController ¶
func CreateFlowDeploymentController(ctx context.Context, req *CreateFlowDeploymentReq) (err error)
func CreateFlowInstanceController ¶
func CreateFlowInstanceController(ctx context.Context, req *CreateFlowInstanceReq) (err error)
func CreateFlowInstanceDataController ¶
func CreateFlowInstanceDataController(ctx context.Context, req *CreateFlowInstanceDataReq) (err error)
func CreateFlowNodeInstanceController ¶
func CreateFlowNodeInstanceController(ctx context.Context, req *CreateFlowNodeInstanceReq) (err error)
func CreateFlowNodeInstanceLogController ¶
func CreateFlowNodeInstanceLogController(ctx context.Context, req *CreateFlowNodeInstanceLogReq) (err error)
func DeleteFlowDefinitionController ¶
func DeleteFlowDefinitionController(ctx context.Context, req *DeleteFlowDefinitionReq) (err error)
func DeleteFlowDeploymentController ¶
func DeleteFlowDeploymentController(ctx context.Context, req *DeleteFlowDeploymentReq) (err error)
func DeleteFlowInstanceController ¶
func DeleteFlowInstanceController(ctx context.Context, req *DeleteFlowInstanceReq) (err error)
func DeleteFlowInstanceDataController ¶
func DeleteFlowInstanceDataController(ctx context.Context, req *DeleteFlowInstanceDataReq) (err error)
func DeleteFlowNodeInstanceController ¶
func DeleteFlowNodeInstanceController(ctx context.Context, req *DeleteFlowNodeInstanceReq) (err error)
func DeleteFlowNodeInstanceLogController ¶
func DeleteFlowNodeInstanceLogController(ctx context.Context, req *DeleteFlowNodeInstanceLogReq) (err error)
func DeleteManyFlowDefinitionController ¶
func DeleteManyFlowDefinitionController(ctx context.Context, req *DeleteManyFlowDefinitionReq) (err error)
func DeleteManyFlowDeploymentController ¶
func DeleteManyFlowDeploymentController(ctx context.Context, req *DeleteManyFlowDeploymentReq) (err error)
func DeleteManyFlowInstanceController ¶
func DeleteManyFlowInstanceController(ctx context.Context, req *DeleteManyFlowInstanceReq) (err error)
func DeleteManyFlowInstanceDataController ¶
func DeleteManyFlowInstanceDataController(ctx context.Context, req *DeleteManyFlowInstanceDataReq) (err error)
func DeleteManyFlowNodeInstanceController ¶
func DeleteManyFlowNodeInstanceController(ctx context.Context, req *DeleteManyFlowNodeInstanceReq) (err error)
func DeleteManyFlowNodeInstanceLogController ¶
func DeleteManyFlowNodeInstanceLogController(ctx context.Context, req *DeleteManyFlowNodeInstanceLogReq) (err error)
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 ListFlowDefinitionView ¶
func ListFlowDeploymentView ¶
func ListFlowInstanceView ¶
func NewContext ¶
NewContext returns a new context with the given Client attached.
func NewTxContext ¶
NewTxContext returns a new context with the given Tx attached.
func UpdateFlowDefinitionController ¶
func UpdateFlowDefinitionController(ctx context.Context, req *UpdateFlowDefinitionReq) (err error)
func UpdateFlowDeploymentController ¶
func UpdateFlowDeploymentController(ctx context.Context, req *UpdateFlowDeploymentReq) (err error)
func UpdateFlowInstanceController ¶
func UpdateFlowInstanceController(ctx context.Context, req *UpdateFlowInstanceReq) (err error)
func UpdateFlowInstanceDataController ¶
func UpdateFlowInstanceDataController(ctx context.Context, req *UpdateFlowInstanceDataReq) (err error)
func UpdateFlowNodeInstanceController ¶
func UpdateFlowNodeInstanceController(ctx context.Context, req *UpdateFlowNodeInstanceReq) (err error)
func UpdateFlowNodeInstanceLogController ¶
func UpdateFlowNodeInstanceLogController(ctx context.Context, req *UpdateFlowNodeInstanceLogReq) (err error)
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 // FlowDefinition is the client for interacting with the FlowDefinition builders. FlowDefinition *FlowDefinitionClient // FlowDeployment is the client for interacting with the FlowDeployment builders. FlowDeployment *FlowDeploymentClient // FlowInstance is the client for interacting with the FlowInstance builders. FlowInstance *FlowInstanceClient // FlowInstanceData is the client for interacting with the FlowInstanceData builders. FlowInstanceData *FlowInstanceDataClient // FlowNodeInstance is the client for interacting with the FlowNodeInstance builders. FlowNodeInstance *FlowNodeInstanceClient // FlowNodeInstanceLog is the client for interacting with the FlowNodeInstanceLog builders. FlowNodeInstanceLog *FlowNodeInstanceLogClient // 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(). FlowDefinition. 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(ctx 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 CreateFlowDefinitionReq ¶
type CreateFlowDefinitionReq struct { }
type CreateFlowDeploymentReq ¶
type CreateFlowDeploymentReq struct { }
type CreateFlowInstanceDataReq ¶
type CreateFlowInstanceDataReq struct { }
type CreateFlowInstanceReq ¶
type CreateFlowInstanceReq struct { }
type CreateFlowNodeInstanceLogReq ¶
type CreateFlowNodeInstanceLogReq struct { }
type CreateFlowNodeInstanceReq ¶
type CreateFlowNodeInstanceReq struct { }
type DeleteFlowDefinitionReq ¶
type DeleteFlowDefinitionReq struct {
ID string `json:"id" v:"required"`
}
type DeleteFlowDeploymentReq ¶
type DeleteFlowDeploymentReq struct {
ID string `json:"id" v:"required"`
}
type DeleteFlowInstanceDataReq ¶
type DeleteFlowInstanceDataReq struct {
ID string `json:"id" v:"required"`
}
type DeleteFlowInstanceReq ¶
type DeleteFlowInstanceReq struct {
ID string `json:"id" v:"required"`
}
type DeleteFlowNodeInstanceLogReq ¶
type DeleteFlowNodeInstanceLogReq struct {
ID string `json:"id" v:"required"`
}
type DeleteFlowNodeInstanceReq ¶
type DeleteFlowNodeInstanceReq struct {
ID string `json:"id" v:"required"`
}
type DeleteManyFlowDefinitionReq ¶
type DeleteManyFlowDefinitionReq struct {
IDs []string `json:"ids" v:"required"`
}
type DeleteManyFlowDeploymentReq ¶
type DeleteManyFlowDeploymentReq struct {
IDs []string `json:"ids" v:"required"`
}
type DeleteManyFlowInstanceDataReq ¶
type DeleteManyFlowInstanceDataReq struct {
IDs []string `json:"ids" v:"required"`
}
type DeleteManyFlowInstanceReq ¶
type DeleteManyFlowInstanceReq struct {
IDs []string `json:"ids" v:"required"`
}
type DeleteManyFlowNodeInstanceLogReq ¶
type DeleteManyFlowNodeInstanceLogReq struct {
IDs []string `json:"ids" v:"required"`
}
type DeleteManyFlowNodeInstanceReq ¶
type DeleteManyFlowNodeInstanceReq struct {
IDs []string `json:"ids" v:"required"`
}
type FlowDefinition ¶
type FlowDefinition struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // Name holds the value of the "name" field. // 流程名称 Name string `json:"name,omitempty"` // Status holds the value of the "status" field. // 状态(1.初始态 1.编辑中 2.已上线) Status int8 `json:"status,omitempty"` // Model holds the value of the "model" field. // 流程模型 Model schema.FlowModel `json:"model,omitempty"` // Remark holds the value of the "remark" field. // 备注 Remark string `json:"remark,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FlowDefinitionQuery when eager-loading is set. Edges FlowDefinitionEdges `json:"edges"` // contains filtered or unexported fields }
FlowDefinition is the model entity for the FlowDefinition schema.
func (*FlowDefinition) QueryFlowDeployments ¶
func (fd *FlowDefinition) QueryFlowDeployments() *FlowDeploymentQuery
QueryFlowDeployments queries the "flow_deployments" edge of the FlowDefinition entity.
func (*FlowDefinition) String ¶
func (fd *FlowDefinition) String() string
String implements the fmt.Stringer.
func (*FlowDefinition) Unwrap ¶
func (fd *FlowDefinition) Unwrap() *FlowDefinition
Unwrap unwraps the FlowDefinition 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 (*FlowDefinition) Update ¶
func (fd *FlowDefinition) Update() *FlowDefinitionUpdateOne
Update returns a builder for updating this FlowDefinition. Note that you need to call FlowDefinition.Unwrap() before calling this method if this FlowDefinition was returned from a transaction, and the transaction was committed or rolled back.
type FlowDefinitionClient ¶
type FlowDefinitionClient struct {
// contains filtered or unexported fields
}
FlowDefinitionClient is a client for the FlowDefinition schema.
func NewFlowDefinitionClient ¶
func NewFlowDefinitionClient(c config) *FlowDefinitionClient
NewFlowDefinitionClient returns a client for the FlowDefinition from the given config.
func (*FlowDefinitionClient) Create ¶
func (c *FlowDefinitionClient) Create() *FlowDefinitionCreate
Create returns a create builder for FlowDefinition.
func (*FlowDefinitionClient) CreateBulk ¶
func (c *FlowDefinitionClient) CreateBulk(builders ...*FlowDefinitionCreate) *FlowDefinitionCreateBulk
CreateBulk returns a builder for creating a bulk of FlowDefinition entities.
func (*FlowDefinitionClient) Delete ¶
func (c *FlowDefinitionClient) Delete() *FlowDefinitionDelete
Delete returns a delete builder for FlowDefinition.
func (*FlowDefinitionClient) DeleteOne ¶
func (c *FlowDefinitionClient) DeleteOne(fd *FlowDefinition) *FlowDefinitionDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowDefinitionClient) DeleteOneID ¶
func (c *FlowDefinitionClient) DeleteOneID(id string) *FlowDefinitionDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowDefinitionClient) Get ¶
func (c *FlowDefinitionClient) Get(ctx context.Context, id string) (*FlowDefinition, error)
Get returns a FlowDefinition entity by its id.
func (*FlowDefinitionClient) GetX ¶
func (c *FlowDefinitionClient) GetX(ctx context.Context, id string) *FlowDefinition
GetX is like Get, but panics if an error occurs.
func (*FlowDefinitionClient) Hooks ¶
func (c *FlowDefinitionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowDefinitionClient) Query ¶
func (c *FlowDefinitionClient) Query() *FlowDefinitionQuery
Query returns a query builder for FlowDefinition.
func (*FlowDefinitionClient) QueryFlowDeployments ¶
func (c *FlowDefinitionClient) QueryFlowDeployments(fd *FlowDefinition) *FlowDeploymentQuery
QueryFlowDeployments queries the flow_deployments edge of a FlowDefinition.
func (*FlowDefinitionClient) Update ¶
func (c *FlowDefinitionClient) Update() *FlowDefinitionUpdate
Update returns an update builder for FlowDefinition.
func (*FlowDefinitionClient) UpdateOne ¶
func (c *FlowDefinitionClient) UpdateOne(fd *FlowDefinition) *FlowDefinitionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowDefinitionClient) UpdateOneID ¶
func (c *FlowDefinitionClient) UpdateOneID(id string) *FlowDefinitionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowDefinitionClient) Use ¶
func (c *FlowDefinitionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flowdefinition.Hooks(f(g(h())))`.
type FlowDefinitionCreate ¶
type FlowDefinitionCreate struct {
// contains filtered or unexported fields
}
FlowDefinitionCreate is the builder for creating a FlowDefinition entity.
func (*FlowDefinitionCreate) AddFlowDeploymentIDs ¶
func (fdc *FlowDefinitionCreate) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionCreate
AddFlowDeploymentIDs adds the "flow_deployments" edge to the FlowDeployment entity by IDs.
func (*FlowDefinitionCreate) AddFlowDeployments ¶
func (fdc *FlowDefinitionCreate) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionCreate
AddFlowDeployments adds the "flow_deployments" edges to the FlowDeployment entity.
func (*FlowDefinitionCreate) Exec ¶
func (fdc *FlowDefinitionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDefinitionCreate) ExecX ¶
func (fdc *FlowDefinitionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionCreate) Mutation ¶
func (fdc *FlowDefinitionCreate) Mutation() *FlowDefinitionMutation
Mutation returns the FlowDefinitionMutation object of the builder.
func (*FlowDefinitionCreate) OnConflict ¶
func (fdc *FlowDefinitionCreate) OnConflict(opts ...sql.ConflictOption) *FlowDefinitionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowDefinition.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowDefinitionUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowDefinitionCreate) OnConflictColumns ¶
func (fdc *FlowDefinitionCreate) OnConflictColumns(columns ...string) *FlowDefinitionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowDefinitionCreate) Save ¶
func (fdc *FlowDefinitionCreate) Save(ctx context.Context) (*FlowDefinition, error)
Save creates the FlowDefinition in the database.
func (*FlowDefinitionCreate) SaveX ¶
func (fdc *FlowDefinitionCreate) SaveX(ctx context.Context) *FlowDefinition
SaveX calls Save and panics if Save returns an error.
func (*FlowDefinitionCreate) SetCreatedAt ¶
func (fdc *FlowDefinitionCreate) SetCreatedAt(i int64) *FlowDefinitionCreate
SetCreatedAt sets the "created_at" field.
func (*FlowDefinitionCreate) SetDeletedAt ¶
func (fdc *FlowDefinitionCreate) SetDeletedAt(i int64) *FlowDefinitionCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionCreate) SetID ¶
func (fdc *FlowDefinitionCreate) SetID(s string) *FlowDefinitionCreate
SetID sets the "id" field.
func (*FlowDefinitionCreate) SetModel ¶
func (fdc *FlowDefinitionCreate) SetModel(sm schema.FlowModel) *FlowDefinitionCreate
SetModel sets the "model" field.
func (*FlowDefinitionCreate) SetName ¶
func (fdc *FlowDefinitionCreate) SetName(s string) *FlowDefinitionCreate
SetName sets the "name" field.
func (*FlowDefinitionCreate) SetNillableCreatedAt ¶
func (fdc *FlowDefinitionCreate) SetNillableCreatedAt(i *int64) *FlowDefinitionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowDefinitionCreate) SetNillableDeletedAt ¶
func (fdc *FlowDefinitionCreate) SetNillableDeletedAt(i *int64) *FlowDefinitionCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDefinitionCreate) SetNillableID ¶
func (fdc *FlowDefinitionCreate) SetNillableID(s *string) *FlowDefinitionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowDefinitionCreate) SetNillableRemark ¶
func (fdc *FlowDefinitionCreate) SetNillableRemark(s *string) *FlowDefinitionCreate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDefinitionCreate) SetNillableStatus ¶
func (fdc *FlowDefinitionCreate) SetNillableStatus(i *int8) *FlowDefinitionCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDefinitionCreate) SetNillableUpdatedAt ¶
func (fdc *FlowDefinitionCreate) SetNillableUpdatedAt(i *int64) *FlowDefinitionCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowDefinitionCreate) SetRemark ¶
func (fdc *FlowDefinitionCreate) SetRemark(s string) *FlowDefinitionCreate
SetRemark sets the "remark" field.
func (*FlowDefinitionCreate) SetStatus ¶
func (fdc *FlowDefinitionCreate) SetStatus(i int8) *FlowDefinitionCreate
SetStatus sets the "status" field.
func (*FlowDefinitionCreate) SetUpdatedAt ¶
func (fdc *FlowDefinitionCreate) SetUpdatedAt(i int64) *FlowDefinitionCreate
SetUpdatedAt sets the "updated_at" field.
type FlowDefinitionCreateBulk ¶
type FlowDefinitionCreateBulk struct {
// contains filtered or unexported fields
}
FlowDefinitionCreateBulk is the builder for creating many FlowDefinition entities in bulk.
func (*FlowDefinitionCreateBulk) Exec ¶
func (fdcb *FlowDefinitionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDefinitionCreateBulk) ExecX ¶
func (fdcb *FlowDefinitionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionCreateBulk) OnConflict ¶
func (fdcb *FlowDefinitionCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowDefinitionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowDefinition.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowDefinitionUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowDefinitionCreateBulk) OnConflictColumns ¶
func (fdcb *FlowDefinitionCreateBulk) OnConflictColumns(columns ...string) *FlowDefinitionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowDefinitionCreateBulk) Save ¶
func (fdcb *FlowDefinitionCreateBulk) Save(ctx context.Context) ([]*FlowDefinition, error)
Save creates the FlowDefinition entities in the database.
func (*FlowDefinitionCreateBulk) SaveX ¶
func (fdcb *FlowDefinitionCreateBulk) SaveX(ctx context.Context) []*FlowDefinition
SaveX is like Save, but panics if an error occurs.
type FlowDefinitionDelete ¶
type FlowDefinitionDelete struct {
// contains filtered or unexported fields
}
FlowDefinitionDelete is the builder for deleting a FlowDefinition entity.
func (*FlowDefinitionDelete) Exec ¶
func (fdd *FlowDefinitionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowDefinitionDelete) ExecX ¶
func (fdd *FlowDefinitionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionDelete) Where ¶
func (fdd *FlowDefinitionDelete) Where(ps ...predicate.FlowDefinition) *FlowDefinitionDelete
Where appends a list predicates to the FlowDefinitionDelete builder.
type FlowDefinitionDeleteOne ¶
type FlowDefinitionDeleteOne struct {
// contains filtered or unexported fields
}
FlowDefinitionDeleteOne is the builder for deleting a single FlowDefinition entity.
func (*FlowDefinitionDeleteOne) Exec ¶
func (fddo *FlowDefinitionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowDefinitionDeleteOne) ExecX ¶
func (fddo *FlowDefinitionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowDefinitionEdges ¶
type FlowDefinitionEdges struct { // FlowDeployments holds the value of the flow_deployments edge. FlowDeployments []*FlowDeployment `json:"flow_deployments,omitempty"` // contains filtered or unexported fields }
FlowDefinitionEdges holds the relations/edges for other nodes in the graph.
func (FlowDefinitionEdges) FlowDeploymentsOrErr ¶
func (e FlowDefinitionEdges) FlowDeploymentsOrErr() ([]*FlowDeployment, error)
FlowDeploymentsOrErr returns the FlowDeployments value or an error if the edge was not loaded in eager-loading.
type FlowDefinitionGroupBy ¶
type FlowDefinitionGroupBy struct {
// contains filtered or unexported fields
}
FlowDefinitionGroupBy is the group-by builder for FlowDefinition entities.
func (*FlowDefinitionGroupBy) Aggregate ¶
func (fdgb *FlowDefinitionGroupBy) Aggregate(fns ...AggregateFunc) *FlowDefinitionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowDefinitionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowDefinitionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionGroupBy) Scan ¶
func (fdgb *FlowDefinitionGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowDefinitionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowDefinitionMutation ¶
type FlowDefinitionMutation struct {
// contains filtered or unexported fields
}
FlowDefinitionMutation represents an operation that mutates the FlowDefinition nodes in the graph.
func (*FlowDefinitionMutation) AddCreatedAt ¶
func (m *FlowDefinitionMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowDefinitionMutation) AddDeletedAt ¶
func (m *FlowDefinitionMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDefinitionMutation) AddField ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) AddFlowDeploymentIDs ¶
func (m *FlowDefinitionMutation) AddFlowDeploymentIDs(ids ...string)
AddFlowDeploymentIDs adds the "flow_deployments" edge to the FlowDeployment entity by ids.
func (*FlowDefinitionMutation) AddStatus ¶
func (m *FlowDefinitionMutation) AddStatus(i int8)
AddStatus adds i to the "status" field.
func (*FlowDefinitionMutation) AddUpdatedAt ¶
func (m *FlowDefinitionMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDefinitionMutation) AddedCreatedAt ¶
func (m *FlowDefinitionMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowDefinitionMutation) AddedDeletedAt ¶
func (m *FlowDefinitionMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowDefinitionMutation) AddedEdges ¶
func (m *FlowDefinitionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowDefinitionMutation) AddedField ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) AddedFields ¶
func (m *FlowDefinitionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowDefinitionMutation) AddedIDs ¶
func (m *FlowDefinitionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowDefinitionMutation) AddedStatus ¶
func (m *FlowDefinitionMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*FlowDefinitionMutation) AddedUpdatedAt ¶
func (m *FlowDefinitionMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowDefinitionMutation) ClearDeletedAt ¶
func (m *FlowDefinitionMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionMutation) ClearEdge ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) ClearField ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) ClearFlowDeployments ¶
func (m *FlowDefinitionMutation) ClearFlowDeployments()
ClearFlowDeployments clears the "flow_deployments" edge to the FlowDeployment entity.
func (*FlowDefinitionMutation) ClearRemark ¶
func (m *FlowDefinitionMutation) ClearRemark()
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionMutation) ClearedEdges ¶
func (m *FlowDefinitionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowDefinitionMutation) ClearedFields ¶
func (m *FlowDefinitionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowDefinitionMutation) Client ¶
func (m FlowDefinitionMutation) 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 (*FlowDefinitionMutation) CreatedAt ¶
func (m *FlowDefinitionMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowDefinitionMutation) DeletedAt ¶
func (m *FlowDefinitionMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowDefinitionMutation) DeletedAtCleared ¶
func (m *FlowDefinitionMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowDefinitionMutation) EdgeCleared ¶
func (m *FlowDefinitionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowDefinitionMutation) Field ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) FieldCleared ¶
func (m *FlowDefinitionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowDefinitionMutation) Fields ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) FlowDeploymentsCleared ¶
func (m *FlowDefinitionMutation) FlowDeploymentsCleared() bool
FlowDeploymentsCleared reports if the "flow_deployments" edge to the FlowDeployment entity was cleared.
func (*FlowDefinitionMutation) FlowDeploymentsIDs ¶
func (m *FlowDefinitionMutation) FlowDeploymentsIDs() (ids []string)
FlowDeploymentsIDs returns the "flow_deployments" edge IDs in the mutation.
func (*FlowDefinitionMutation) ID ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) IDs ¶
func (m *FlowDefinitionMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowDefinitionMutation) Model ¶
func (m *FlowDefinitionMutation) Model() (r schema.FlowModel, exists bool)
Model returns the value of the "model" field in the mutation.
func (*FlowDefinitionMutation) Name ¶
func (m *FlowDefinitionMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FlowDefinitionMutation) OldCreatedAt ¶
func (m *FlowDefinitionMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) OldDeletedAt ¶
func (m *FlowDefinitionMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) 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 (*FlowDefinitionMutation) OldModel ¶
OldModel returns the old "model" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) OldName ¶
func (m *FlowDefinitionMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) OldRemark ¶
func (m *FlowDefinitionMutation) OldRemark(ctx context.Context) (v string, err error)
OldRemark returns the old "remark" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) OldStatus ¶
func (m *FlowDefinitionMutation) OldStatus(ctx context.Context) (v int8, err error)
OldStatus returns the old "status" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) OldUpdatedAt ¶
func (m *FlowDefinitionMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowDefinition entity. If the FlowDefinition 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 (*FlowDefinitionMutation) Op ¶
func (m *FlowDefinitionMutation) Op() Op
Op returns the operation name.
func (*FlowDefinitionMutation) Remark ¶
func (m *FlowDefinitionMutation) Remark() (r string, exists bool)
Remark returns the value of the "remark" field in the mutation.
func (*FlowDefinitionMutation) RemarkCleared ¶
func (m *FlowDefinitionMutation) RemarkCleared() bool
RemarkCleared returns if the "remark" field was cleared in this mutation.
func (*FlowDefinitionMutation) RemoveFlowDeploymentIDs ¶
func (m *FlowDefinitionMutation) RemoveFlowDeploymentIDs(ids ...string)
RemoveFlowDeploymentIDs removes the "flow_deployments" edge to the FlowDeployment entity by IDs.
func (*FlowDefinitionMutation) RemovedEdges ¶
func (m *FlowDefinitionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowDefinitionMutation) RemovedFlowDeploymentsIDs ¶
func (m *FlowDefinitionMutation) RemovedFlowDeploymentsIDs() (ids []string)
RemovedFlowDeployments returns the removed IDs of the "flow_deployments" edge to the FlowDeployment entity.
func (*FlowDefinitionMutation) RemovedIDs ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) ResetCreatedAt ¶
func (m *FlowDefinitionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowDefinitionMutation) ResetDeletedAt ¶
func (m *FlowDefinitionMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowDefinitionMutation) ResetEdge ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) ResetField ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) ResetFlowDeployments ¶
func (m *FlowDefinitionMutation) ResetFlowDeployments()
ResetFlowDeployments resets all changes to the "flow_deployments" edge.
func (*FlowDefinitionMutation) ResetModel ¶
func (m *FlowDefinitionMutation) ResetModel()
ResetModel resets all changes to the "model" field.
func (*FlowDefinitionMutation) ResetName ¶
func (m *FlowDefinitionMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FlowDefinitionMutation) ResetRemark ¶
func (m *FlowDefinitionMutation) ResetRemark()
ResetRemark resets all changes to the "remark" field.
func (*FlowDefinitionMutation) ResetStatus ¶
func (m *FlowDefinitionMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FlowDefinitionMutation) ResetUpdatedAt ¶
func (m *FlowDefinitionMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowDefinitionMutation) SetCreatedAt ¶
func (m *FlowDefinitionMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowDefinitionMutation) SetDeletedAt ¶
func (m *FlowDefinitionMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionMutation) SetField ¶
func (m *FlowDefinitionMutation) 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 (*FlowDefinitionMutation) SetID ¶
func (m *FlowDefinitionMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowDefinition entities.
func (*FlowDefinitionMutation) SetModel ¶
func (m *FlowDefinitionMutation) SetModel(sm schema.FlowModel)
SetModel sets the "model" field.
func (*FlowDefinitionMutation) SetName ¶
func (m *FlowDefinitionMutation) SetName(s string)
SetName sets the "name" field.
func (*FlowDefinitionMutation) SetRemark ¶
func (m *FlowDefinitionMutation) SetRemark(s string)
SetRemark sets the "remark" field.
func (*FlowDefinitionMutation) SetStatus ¶
func (m *FlowDefinitionMutation) SetStatus(i int8)
SetStatus sets the "status" field.
func (*FlowDefinitionMutation) SetUpdatedAt ¶
func (m *FlowDefinitionMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*FlowDefinitionMutation) Status ¶
func (m *FlowDefinitionMutation) Status() (r int8, exists bool)
Status returns the value of the "status" field in the mutation.
func (FlowDefinitionMutation) Tx ¶
func (m FlowDefinitionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowDefinitionMutation) Type ¶
func (m *FlowDefinitionMutation) Type() string
Type returns the node type of this mutation (FlowDefinition).
func (*FlowDefinitionMutation) UpdatedAt ¶
func (m *FlowDefinitionMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowDefinitionMutation) Where ¶
func (m *FlowDefinitionMutation) Where(ps ...predicate.FlowDefinition)
Where appends a list predicates to the FlowDefinitionMutation builder.
type FlowDefinitionQuery ¶
type FlowDefinitionQuery struct {
// contains filtered or unexported fields
}
FlowDefinitionQuery is the builder for querying FlowDefinition entities.
func (*FlowDefinitionQuery) All ¶
func (fdq *FlowDefinitionQuery) All(ctx context.Context) ([]*FlowDefinition, error)
All executes the query and returns a list of FlowDefinitions.
func (*FlowDefinitionQuery) AllX ¶
func (fdq *FlowDefinitionQuery) AllX(ctx context.Context) []*FlowDefinition
AllX is like All, but panics if an error occurs.
func (*FlowDefinitionQuery) Clone ¶
func (fdq *FlowDefinitionQuery) Clone() *FlowDefinitionQuery
Clone returns a duplicate of the FlowDefinitionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowDefinitionQuery) Count ¶
func (fdq *FlowDefinitionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowDefinitionQuery) CountX ¶
func (fdq *FlowDefinitionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowDefinitionQuery) Exist ¶
func (fdq *FlowDefinitionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowDefinitionQuery) ExistX ¶
func (fdq *FlowDefinitionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowDefinitionQuery) First ¶
func (fdq *FlowDefinitionQuery) First(ctx context.Context) (*FlowDefinition, error)
First returns the first FlowDefinition entity from the query. Returns a *NotFoundError when no FlowDefinition was found.
func (*FlowDefinitionQuery) FirstID ¶
func (fdq *FlowDefinitionQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowDefinition ID from the query. Returns a *NotFoundError when no FlowDefinition ID was found.
func (*FlowDefinitionQuery) FirstIDX ¶
func (fdq *FlowDefinitionQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowDefinitionQuery) FirstX ¶
func (fdq *FlowDefinitionQuery) FirstX(ctx context.Context) *FlowDefinition
FirstX is like First, but panics if an error occurs.
func (*FlowDefinitionQuery) GroupBy ¶
func (fdq *FlowDefinitionQuery) GroupBy(field string, fields ...string) *FlowDefinitionGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowDefinition.Query(). GroupBy(flowdefinition.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowDefinitionQuery) IDs ¶
func (fdq *FlowDefinitionQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowDefinition IDs.
func (*FlowDefinitionQuery) IDsX ¶
func (fdq *FlowDefinitionQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowDefinitionQuery) Limit ¶
func (fdq *FlowDefinitionQuery) Limit(limit int) *FlowDefinitionQuery
Limit adds a limit step to the query.
func (*FlowDefinitionQuery) Offset ¶
func (fdq *FlowDefinitionQuery) Offset(offset int) *FlowDefinitionQuery
Offset adds an offset step to the query.
func (*FlowDefinitionQuery) Only ¶
func (fdq *FlowDefinitionQuery) Only(ctx context.Context) (*FlowDefinition, error)
Only returns a single FlowDefinition entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowDefinition entity is found. Returns a *NotFoundError when no FlowDefinition entities are found.
func (*FlowDefinitionQuery) OnlyID ¶
func (fdq *FlowDefinitionQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowDefinition ID in the query. Returns a *NotSingularError when more than one FlowDefinition ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowDefinitionQuery) OnlyIDX ¶
func (fdq *FlowDefinitionQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowDefinitionQuery) OnlyX ¶
func (fdq *FlowDefinitionQuery) OnlyX(ctx context.Context) *FlowDefinition
OnlyX is like Only, but panics if an error occurs.
func (*FlowDefinitionQuery) Order ¶
func (fdq *FlowDefinitionQuery) Order(o ...OrderFunc) *FlowDefinitionQuery
Order adds an order step to the query.
func (*FlowDefinitionQuery) QueryFlowDeployments ¶
func (fdq *FlowDefinitionQuery) QueryFlowDeployments() *FlowDeploymentQuery
QueryFlowDeployments chains the current query on the "flow_deployments" edge.
func (*FlowDefinitionQuery) Select ¶
func (fdq *FlowDefinitionQuery) Select(fields ...string) *FlowDefinitionSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowDefinition.Query(). Select(flowdefinition.FieldCreatedAt). Scan(ctx, &v)
func (*FlowDefinitionQuery) Unique ¶
func (fdq *FlowDefinitionQuery) Unique(unique bool) *FlowDefinitionQuery
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 (*FlowDefinitionQuery) Where ¶
func (fdq *FlowDefinitionQuery) Where(ps ...predicate.FlowDefinition) *FlowDefinitionQuery
Where adds a new predicate for the FlowDefinitionQuery builder.
func (*FlowDefinitionQuery) WithFlowDeployments ¶
func (fdq *FlowDefinitionQuery) WithFlowDeployments(opts ...func(*FlowDeploymentQuery)) *FlowDefinitionQuery
WithFlowDeployments tells the query-builder to eager-load the nodes that are connected to the "flow_deployments" edge. The optional arguments are used to configure the query builder of the edge.
type FlowDefinitionSelect ¶
type FlowDefinitionSelect struct { *FlowDefinitionQuery // contains filtered or unexported fields }
FlowDefinitionSelect is the builder for selecting fields of FlowDefinition entities.
func (*FlowDefinitionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowDefinitionSelect) Scan ¶
func (fds *FlowDefinitionSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowDefinitionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowDefinitionUpdate ¶
type FlowDefinitionUpdate struct {
// contains filtered or unexported fields
}
FlowDefinitionUpdate is the builder for updating FlowDefinition entities.
func (*FlowDefinitionUpdate) AddDeletedAt ¶
func (fdu *FlowDefinitionUpdate) AddDeletedAt(i int64) *FlowDefinitionUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDefinitionUpdate) AddFlowDeploymentIDs ¶
func (fdu *FlowDefinitionUpdate) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdate
AddFlowDeploymentIDs adds the "flow_deployments" edge to the FlowDeployment entity by IDs.
func (*FlowDefinitionUpdate) AddFlowDeployments ¶
func (fdu *FlowDefinitionUpdate) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdate
AddFlowDeployments adds the "flow_deployments" edges to the FlowDeployment entity.
func (*FlowDefinitionUpdate) AddStatus ¶
func (fdu *FlowDefinitionUpdate) AddStatus(i int8) *FlowDefinitionUpdate
AddStatus adds i to the "status" field.
func (*FlowDefinitionUpdate) AddUpdatedAt ¶
func (fdu *FlowDefinitionUpdate) AddUpdatedAt(i int64) *FlowDefinitionUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDefinitionUpdate) ClearDeletedAt ¶
func (fdu *FlowDefinitionUpdate) ClearDeletedAt() *FlowDefinitionUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionUpdate) ClearFlowDeployments ¶
func (fdu *FlowDefinitionUpdate) ClearFlowDeployments() *FlowDefinitionUpdate
ClearFlowDeployments clears all "flow_deployments" edges to the FlowDeployment entity.
func (*FlowDefinitionUpdate) ClearRemark ¶
func (fdu *FlowDefinitionUpdate) ClearRemark() *FlowDefinitionUpdate
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionUpdate) Exec ¶
func (fdu *FlowDefinitionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDefinitionUpdate) ExecX ¶
func (fdu *FlowDefinitionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionUpdate) Mutation ¶
func (fdu *FlowDefinitionUpdate) Mutation() *FlowDefinitionMutation
Mutation returns the FlowDefinitionMutation object of the builder.
func (*FlowDefinitionUpdate) RemoveFlowDeploymentIDs ¶
func (fdu *FlowDefinitionUpdate) RemoveFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdate
RemoveFlowDeploymentIDs removes the "flow_deployments" edge to FlowDeployment entities by IDs.
func (*FlowDefinitionUpdate) RemoveFlowDeployments ¶
func (fdu *FlowDefinitionUpdate) RemoveFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdate
RemoveFlowDeployments removes "flow_deployments" edges to FlowDeployment entities.
func (*FlowDefinitionUpdate) Save ¶
func (fdu *FlowDefinitionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowDefinitionUpdate) SaveX ¶
func (fdu *FlowDefinitionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowDefinitionUpdate) SetDeletedAt ¶
func (fdu *FlowDefinitionUpdate) SetDeletedAt(i int64) *FlowDefinitionUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionUpdate) SetModel ¶
func (fdu *FlowDefinitionUpdate) SetModel(sm schema.FlowModel) *FlowDefinitionUpdate
SetModel sets the "model" field.
func (*FlowDefinitionUpdate) SetName ¶
func (fdu *FlowDefinitionUpdate) SetName(s string) *FlowDefinitionUpdate
SetName sets the "name" field.
func (*FlowDefinitionUpdate) SetNillableDeletedAt ¶
func (fdu *FlowDefinitionUpdate) SetNillableDeletedAt(i *int64) *FlowDefinitionUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDefinitionUpdate) SetNillableRemark ¶
func (fdu *FlowDefinitionUpdate) SetNillableRemark(s *string) *FlowDefinitionUpdate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDefinitionUpdate) SetNillableStatus ¶
func (fdu *FlowDefinitionUpdate) SetNillableStatus(i *int8) *FlowDefinitionUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDefinitionUpdate) SetRemark ¶
func (fdu *FlowDefinitionUpdate) SetRemark(s string) *FlowDefinitionUpdate
SetRemark sets the "remark" field.
func (*FlowDefinitionUpdate) SetStatus ¶
func (fdu *FlowDefinitionUpdate) SetStatus(i int8) *FlowDefinitionUpdate
SetStatus sets the "status" field.
func (*FlowDefinitionUpdate) SetUpdatedAt ¶
func (fdu *FlowDefinitionUpdate) SetUpdatedAt(i int64) *FlowDefinitionUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowDefinitionUpdate) Where ¶
func (fdu *FlowDefinitionUpdate) Where(ps ...predicate.FlowDefinition) *FlowDefinitionUpdate
Where appends a list predicates to the FlowDefinitionUpdate builder.
type FlowDefinitionUpdateOne ¶
type FlowDefinitionUpdateOne struct {
// contains filtered or unexported fields
}
FlowDefinitionUpdateOne is the builder for updating a single FlowDefinition entity.
func (*FlowDefinitionUpdateOne) AddDeletedAt ¶
func (fduo *FlowDefinitionUpdateOne) AddDeletedAt(i int64) *FlowDefinitionUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDefinitionUpdateOne) AddFlowDeploymentIDs ¶
func (fduo *FlowDefinitionUpdateOne) AddFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdateOne
AddFlowDeploymentIDs adds the "flow_deployments" edge to the FlowDeployment entity by IDs.
func (*FlowDefinitionUpdateOne) AddFlowDeployments ¶
func (fduo *FlowDefinitionUpdateOne) AddFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdateOne
AddFlowDeployments adds the "flow_deployments" edges to the FlowDeployment entity.
func (*FlowDefinitionUpdateOne) AddStatus ¶
func (fduo *FlowDefinitionUpdateOne) AddStatus(i int8) *FlowDefinitionUpdateOne
AddStatus adds i to the "status" field.
func (*FlowDefinitionUpdateOne) AddUpdatedAt ¶
func (fduo *FlowDefinitionUpdateOne) AddUpdatedAt(i int64) *FlowDefinitionUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDefinitionUpdateOne) ClearDeletedAt ¶
func (fduo *FlowDefinitionUpdateOne) ClearDeletedAt() *FlowDefinitionUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionUpdateOne) ClearFlowDeployments ¶
func (fduo *FlowDefinitionUpdateOne) ClearFlowDeployments() *FlowDefinitionUpdateOne
ClearFlowDeployments clears all "flow_deployments" edges to the FlowDeployment entity.
func (*FlowDefinitionUpdateOne) ClearRemark ¶
func (fduo *FlowDefinitionUpdateOne) ClearRemark() *FlowDefinitionUpdateOne
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionUpdateOne) Exec ¶
func (fduo *FlowDefinitionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowDefinitionUpdateOne) ExecX ¶
func (fduo *FlowDefinitionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionUpdateOne) Mutation ¶
func (fduo *FlowDefinitionUpdateOne) Mutation() *FlowDefinitionMutation
Mutation returns the FlowDefinitionMutation object of the builder.
func (*FlowDefinitionUpdateOne) RemoveFlowDeploymentIDs ¶
func (fduo *FlowDefinitionUpdateOne) RemoveFlowDeploymentIDs(ids ...string) *FlowDefinitionUpdateOne
RemoveFlowDeploymentIDs removes the "flow_deployments" edge to FlowDeployment entities by IDs.
func (*FlowDefinitionUpdateOne) RemoveFlowDeployments ¶
func (fduo *FlowDefinitionUpdateOne) RemoveFlowDeployments(f ...*FlowDeployment) *FlowDefinitionUpdateOne
RemoveFlowDeployments removes "flow_deployments" edges to FlowDeployment entities.
func (*FlowDefinitionUpdateOne) Save ¶
func (fduo *FlowDefinitionUpdateOne) Save(ctx context.Context) (*FlowDefinition, error)
Save executes the query and returns the updated FlowDefinition entity.
func (*FlowDefinitionUpdateOne) SaveX ¶
func (fduo *FlowDefinitionUpdateOne) SaveX(ctx context.Context) *FlowDefinition
SaveX is like Save, but panics if an error occurs.
func (*FlowDefinitionUpdateOne) Select ¶
func (fduo *FlowDefinitionUpdateOne) Select(field string, fields ...string) *FlowDefinitionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowDefinitionUpdateOne) SetDeletedAt ¶
func (fduo *FlowDefinitionUpdateOne) SetDeletedAt(i int64) *FlowDefinitionUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionUpdateOne) SetModel ¶
func (fduo *FlowDefinitionUpdateOne) SetModel(sm schema.FlowModel) *FlowDefinitionUpdateOne
SetModel sets the "model" field.
func (*FlowDefinitionUpdateOne) SetName ¶
func (fduo *FlowDefinitionUpdateOne) SetName(s string) *FlowDefinitionUpdateOne
SetName sets the "name" field.
func (*FlowDefinitionUpdateOne) SetNillableDeletedAt ¶
func (fduo *FlowDefinitionUpdateOne) SetNillableDeletedAt(i *int64) *FlowDefinitionUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDefinitionUpdateOne) SetNillableRemark ¶
func (fduo *FlowDefinitionUpdateOne) SetNillableRemark(s *string) *FlowDefinitionUpdateOne
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDefinitionUpdateOne) SetNillableStatus ¶
func (fduo *FlowDefinitionUpdateOne) SetNillableStatus(i *int8) *FlowDefinitionUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDefinitionUpdateOne) SetRemark ¶
func (fduo *FlowDefinitionUpdateOne) SetRemark(s string) *FlowDefinitionUpdateOne
SetRemark sets the "remark" field.
func (*FlowDefinitionUpdateOne) SetStatus ¶
func (fduo *FlowDefinitionUpdateOne) SetStatus(i int8) *FlowDefinitionUpdateOne
SetStatus sets the "status" field.
func (*FlowDefinitionUpdateOne) SetUpdatedAt ¶
func (fduo *FlowDefinitionUpdateOne) SetUpdatedAt(i int64) *FlowDefinitionUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowDefinitionUpsert ¶
FlowDefinitionUpsert is the "OnConflict" setter.
func (*FlowDefinitionUpsert) AddCreatedAt ¶
func (u *FlowDefinitionUpsert) AddCreatedAt(v int64) *FlowDefinitionUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowDefinitionUpsert) AddDeletedAt ¶
func (u *FlowDefinitionUpsert) AddDeletedAt(v int64) *FlowDefinitionUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDefinitionUpsert) AddStatus ¶
func (u *FlowDefinitionUpsert) AddStatus(v int8) *FlowDefinitionUpsert
AddStatus adds v to the "status" field.
func (*FlowDefinitionUpsert) AddUpdatedAt ¶
func (u *FlowDefinitionUpsert) AddUpdatedAt(v int64) *FlowDefinitionUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDefinitionUpsert) ClearDeletedAt ¶
func (u *FlowDefinitionUpsert) ClearDeletedAt() *FlowDefinitionUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionUpsert) ClearRemark ¶
func (u *FlowDefinitionUpsert) ClearRemark() *FlowDefinitionUpsert
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionUpsert) SetCreatedAt ¶
func (u *FlowDefinitionUpsert) SetCreatedAt(v int64) *FlowDefinitionUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowDefinitionUpsert) SetDeletedAt ¶
func (u *FlowDefinitionUpsert) SetDeletedAt(v int64) *FlowDefinitionUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionUpsert) SetModel ¶
func (u *FlowDefinitionUpsert) SetModel(v schema.FlowModel) *FlowDefinitionUpsert
SetModel sets the "model" field.
func (*FlowDefinitionUpsert) SetName ¶
func (u *FlowDefinitionUpsert) SetName(v string) *FlowDefinitionUpsert
SetName sets the "name" field.
func (*FlowDefinitionUpsert) SetRemark ¶
func (u *FlowDefinitionUpsert) SetRemark(v string) *FlowDefinitionUpsert
SetRemark sets the "remark" field.
func (*FlowDefinitionUpsert) SetStatus ¶
func (u *FlowDefinitionUpsert) SetStatus(v int8) *FlowDefinitionUpsert
SetStatus sets the "status" field.
func (*FlowDefinitionUpsert) SetUpdatedAt ¶
func (u *FlowDefinitionUpsert) SetUpdatedAt(v int64) *FlowDefinitionUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowDefinitionUpsert) UpdateCreatedAt ¶
func (u *FlowDefinitionUpsert) UpdateCreatedAt() *FlowDefinitionUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateDeletedAt ¶
func (u *FlowDefinitionUpsert) UpdateDeletedAt() *FlowDefinitionUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateModel ¶
func (u *FlowDefinitionUpsert) UpdateModel() *FlowDefinitionUpsert
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateName ¶
func (u *FlowDefinitionUpsert) UpdateName() *FlowDefinitionUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateRemark ¶
func (u *FlowDefinitionUpsert) UpdateRemark() *FlowDefinitionUpsert
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateStatus ¶
func (u *FlowDefinitionUpsert) UpdateStatus() *FlowDefinitionUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDefinitionUpsert) UpdateUpdatedAt ¶
func (u *FlowDefinitionUpsert) UpdateUpdatedAt() *FlowDefinitionUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDefinitionUpsertBulk ¶
type FlowDefinitionUpsertBulk struct {
// contains filtered or unexported fields
}
FlowDefinitionUpsertBulk is the builder for "upsert"-ing a bulk of FlowDefinition nodes.
func (*FlowDefinitionUpsertBulk) AddCreatedAt ¶
func (u *FlowDefinitionUpsertBulk) AddCreatedAt(v int64) *FlowDefinitionUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowDefinitionUpsertBulk) AddDeletedAt ¶
func (u *FlowDefinitionUpsertBulk) AddDeletedAt(v int64) *FlowDefinitionUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDefinitionUpsertBulk) AddStatus ¶
func (u *FlowDefinitionUpsertBulk) AddStatus(v int8) *FlowDefinitionUpsertBulk
AddStatus adds v to the "status" field.
func (*FlowDefinitionUpsertBulk) AddUpdatedAt ¶
func (u *FlowDefinitionUpsertBulk) AddUpdatedAt(v int64) *FlowDefinitionUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDefinitionUpsertBulk) ClearDeletedAt ¶
func (u *FlowDefinitionUpsertBulk) ClearDeletedAt() *FlowDefinitionUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionUpsertBulk) ClearRemark ¶
func (u *FlowDefinitionUpsertBulk) ClearRemark() *FlowDefinitionUpsertBulk
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionUpsertBulk) DoNothing ¶
func (u *FlowDefinitionUpsertBulk) DoNothing() *FlowDefinitionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowDefinitionUpsertBulk) Exec ¶
func (u *FlowDefinitionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDefinitionUpsertBulk) ExecX ¶
func (u *FlowDefinitionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionUpsertBulk) Ignore ¶
func (u *FlowDefinitionUpsertBulk) Ignore() *FlowDefinitionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowDefinitionUpsertBulk) SetCreatedAt ¶
func (u *FlowDefinitionUpsertBulk) SetCreatedAt(v int64) *FlowDefinitionUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowDefinitionUpsertBulk) SetDeletedAt ¶
func (u *FlowDefinitionUpsertBulk) SetDeletedAt(v int64) *FlowDefinitionUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionUpsertBulk) SetModel ¶
func (u *FlowDefinitionUpsertBulk) SetModel(v schema.FlowModel) *FlowDefinitionUpsertBulk
SetModel sets the "model" field.
func (*FlowDefinitionUpsertBulk) SetName ¶
func (u *FlowDefinitionUpsertBulk) SetName(v string) *FlowDefinitionUpsertBulk
SetName sets the "name" field.
func (*FlowDefinitionUpsertBulk) SetRemark ¶
func (u *FlowDefinitionUpsertBulk) SetRemark(v string) *FlowDefinitionUpsertBulk
SetRemark sets the "remark" field.
func (*FlowDefinitionUpsertBulk) SetStatus ¶
func (u *FlowDefinitionUpsertBulk) SetStatus(v int8) *FlowDefinitionUpsertBulk
SetStatus sets the "status" field.
func (*FlowDefinitionUpsertBulk) SetUpdatedAt ¶
func (u *FlowDefinitionUpsertBulk) SetUpdatedAt(v int64) *FlowDefinitionUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowDefinitionUpsertBulk) Update ¶
func (u *FlowDefinitionUpsertBulk) Update(set func(*FlowDefinitionUpsert)) *FlowDefinitionUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowDefinitionCreateBulk.OnConflict documentation for more info.
func (*FlowDefinitionUpsertBulk) UpdateCreatedAt ¶
func (u *FlowDefinitionUpsertBulk) UpdateCreatedAt() *FlowDefinitionUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateDeletedAt ¶
func (u *FlowDefinitionUpsertBulk) UpdateDeletedAt() *FlowDefinitionUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateModel ¶
func (u *FlowDefinitionUpsertBulk) UpdateModel() *FlowDefinitionUpsertBulk
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateName ¶
func (u *FlowDefinitionUpsertBulk) UpdateName() *FlowDefinitionUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateNewValues ¶
func (u *FlowDefinitionUpsertBulk) UpdateNewValues() *FlowDefinitionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowdefinition.FieldID) }), ). Exec(ctx)
func (*FlowDefinitionUpsertBulk) UpdateRemark ¶
func (u *FlowDefinitionUpsertBulk) UpdateRemark() *FlowDefinitionUpsertBulk
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateStatus ¶
func (u *FlowDefinitionUpsertBulk) UpdateStatus() *FlowDefinitionUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDefinitionUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowDefinitionUpsertBulk) UpdateUpdatedAt() *FlowDefinitionUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDefinitionUpsertOne ¶
type FlowDefinitionUpsertOne struct {
// contains filtered or unexported fields
}
FlowDefinitionUpsertOne is the builder for "upsert"-ing
one FlowDefinition node.
func (*FlowDefinitionUpsertOne) AddCreatedAt ¶
func (u *FlowDefinitionUpsertOne) AddCreatedAt(v int64) *FlowDefinitionUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowDefinitionUpsertOne) AddDeletedAt ¶
func (u *FlowDefinitionUpsertOne) AddDeletedAt(v int64) *FlowDefinitionUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDefinitionUpsertOne) AddStatus ¶
func (u *FlowDefinitionUpsertOne) AddStatus(v int8) *FlowDefinitionUpsertOne
AddStatus adds v to the "status" field.
func (*FlowDefinitionUpsertOne) AddUpdatedAt ¶
func (u *FlowDefinitionUpsertOne) AddUpdatedAt(v int64) *FlowDefinitionUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDefinitionUpsertOne) ClearDeletedAt ¶
func (u *FlowDefinitionUpsertOne) ClearDeletedAt() *FlowDefinitionUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDefinitionUpsertOne) ClearRemark ¶
func (u *FlowDefinitionUpsertOne) ClearRemark() *FlowDefinitionUpsertOne
ClearRemark clears the value of the "remark" field.
func (*FlowDefinitionUpsertOne) DoNothing ¶
func (u *FlowDefinitionUpsertOne) DoNothing() *FlowDefinitionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowDefinitionUpsertOne) Exec ¶
func (u *FlowDefinitionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDefinitionUpsertOne) ExecX ¶
func (u *FlowDefinitionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDefinitionUpsertOne) ID ¶
func (u *FlowDefinitionUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowDefinitionUpsertOne) IDX ¶
func (u *FlowDefinitionUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowDefinitionUpsertOne) Ignore ¶
func (u *FlowDefinitionUpsertOne) Ignore() *FlowDefinitionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowDefinitionUpsertOne) SetCreatedAt ¶
func (u *FlowDefinitionUpsertOne) SetCreatedAt(v int64) *FlowDefinitionUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowDefinitionUpsertOne) SetDeletedAt ¶
func (u *FlowDefinitionUpsertOne) SetDeletedAt(v int64) *FlowDefinitionUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowDefinitionUpsertOne) SetModel ¶
func (u *FlowDefinitionUpsertOne) SetModel(v schema.FlowModel) *FlowDefinitionUpsertOne
SetModel sets the "model" field.
func (*FlowDefinitionUpsertOne) SetName ¶
func (u *FlowDefinitionUpsertOne) SetName(v string) *FlowDefinitionUpsertOne
SetName sets the "name" field.
func (*FlowDefinitionUpsertOne) SetRemark ¶
func (u *FlowDefinitionUpsertOne) SetRemark(v string) *FlowDefinitionUpsertOne
SetRemark sets the "remark" field.
func (*FlowDefinitionUpsertOne) SetStatus ¶
func (u *FlowDefinitionUpsertOne) SetStatus(v int8) *FlowDefinitionUpsertOne
SetStatus sets the "status" field.
func (*FlowDefinitionUpsertOne) SetUpdatedAt ¶
func (u *FlowDefinitionUpsertOne) SetUpdatedAt(v int64) *FlowDefinitionUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowDefinitionUpsertOne) Update ¶
func (u *FlowDefinitionUpsertOne) Update(set func(*FlowDefinitionUpsert)) *FlowDefinitionUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowDefinitionCreate.OnConflict documentation for more info.
func (*FlowDefinitionUpsertOne) UpdateCreatedAt ¶
func (u *FlowDefinitionUpsertOne) UpdateCreatedAt() *FlowDefinitionUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateDeletedAt ¶
func (u *FlowDefinitionUpsertOne) UpdateDeletedAt() *FlowDefinitionUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateModel ¶
func (u *FlowDefinitionUpsertOne) UpdateModel() *FlowDefinitionUpsertOne
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateName ¶
func (u *FlowDefinitionUpsertOne) UpdateName() *FlowDefinitionUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateNewValues ¶
func (u *FlowDefinitionUpsertOne) UpdateNewValues() *FlowDefinitionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowDefinition.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowdefinition.FieldID) }), ). Exec(ctx)
func (*FlowDefinitionUpsertOne) UpdateRemark ¶
func (u *FlowDefinitionUpsertOne) UpdateRemark() *FlowDefinitionUpsertOne
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateStatus ¶
func (u *FlowDefinitionUpsertOne) UpdateStatus() *FlowDefinitionUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDefinitionUpsertOne) UpdateUpdatedAt ¶
func (u *FlowDefinitionUpsertOne) UpdateUpdatedAt() *FlowDefinitionUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDefinitions ¶
type FlowDefinitions []*FlowDefinition
FlowDefinitions is a parsable slice of FlowDefinition.
type FlowDeployment ¶
type FlowDeployment struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // FlowDefinitionID holds the value of the "flow_definition_id" field. // 流程定义ID FlowDefinitionID string `json:"flow_definition_id,omitempty"` // Name holds the value of the "name" field. // 流程名称 Name string `json:"name,omitempty"` // Status holds the value of the "status" field. // 状态(1.已部署 2.已下线) Status int8 `json:"status,omitempty"` // Model holds the value of the "model" field. // 流程模型 Model schema.FlowModel `json:"model,omitempty"` // Remark holds the value of the "remark" field. // 备注 Remark string `json:"remark,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FlowDeploymentQuery when eager-loading is set. Edges FlowDeploymentEdges `json:"edges"` // contains filtered or unexported fields }
FlowDeployment is the model entity for the FlowDeployment schema.
func (*FlowDeployment) QueryFlowDefinition ¶
func (fd *FlowDeployment) QueryFlowDefinition() *FlowDefinitionQuery
QueryFlowDefinition queries the "flow_definition" edge of the FlowDeployment entity.
func (*FlowDeployment) QueryFlowInstances ¶
func (fd *FlowDeployment) QueryFlowInstances() *FlowInstanceQuery
QueryFlowInstances queries the "flow_instances" edge of the FlowDeployment entity.
func (*FlowDeployment) String ¶
func (fd *FlowDeployment) String() string
String implements the fmt.Stringer.
func (*FlowDeployment) Unwrap ¶
func (fd *FlowDeployment) Unwrap() *FlowDeployment
Unwrap unwraps the FlowDeployment 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 (*FlowDeployment) Update ¶
func (fd *FlowDeployment) Update() *FlowDeploymentUpdateOne
Update returns a builder for updating this FlowDeployment. Note that you need to call FlowDeployment.Unwrap() before calling this method if this FlowDeployment was returned from a transaction, and the transaction was committed or rolled back.
type FlowDeploymentClient ¶
type FlowDeploymentClient struct {
// contains filtered or unexported fields
}
FlowDeploymentClient is a client for the FlowDeployment schema.
func NewFlowDeploymentClient ¶
func NewFlowDeploymentClient(c config) *FlowDeploymentClient
NewFlowDeploymentClient returns a client for the FlowDeployment from the given config.
func (*FlowDeploymentClient) Create ¶
func (c *FlowDeploymentClient) Create() *FlowDeploymentCreate
Create returns a create builder for FlowDeployment.
func (*FlowDeploymentClient) CreateBulk ¶
func (c *FlowDeploymentClient) CreateBulk(builders ...*FlowDeploymentCreate) *FlowDeploymentCreateBulk
CreateBulk returns a builder for creating a bulk of FlowDeployment entities.
func (*FlowDeploymentClient) Delete ¶
func (c *FlowDeploymentClient) Delete() *FlowDeploymentDelete
Delete returns a delete builder for FlowDeployment.
func (*FlowDeploymentClient) DeleteOne ¶
func (c *FlowDeploymentClient) DeleteOne(fd *FlowDeployment) *FlowDeploymentDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowDeploymentClient) DeleteOneID ¶
func (c *FlowDeploymentClient) DeleteOneID(id string) *FlowDeploymentDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowDeploymentClient) Get ¶
func (c *FlowDeploymentClient) Get(ctx context.Context, id string) (*FlowDeployment, error)
Get returns a FlowDeployment entity by its id.
func (*FlowDeploymentClient) GetX ¶
func (c *FlowDeploymentClient) GetX(ctx context.Context, id string) *FlowDeployment
GetX is like Get, but panics if an error occurs.
func (*FlowDeploymentClient) Hooks ¶
func (c *FlowDeploymentClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowDeploymentClient) Query ¶
func (c *FlowDeploymentClient) Query() *FlowDeploymentQuery
Query returns a query builder for FlowDeployment.
func (*FlowDeploymentClient) QueryFlowDefinition ¶
func (c *FlowDeploymentClient) QueryFlowDefinition(fd *FlowDeployment) *FlowDefinitionQuery
QueryFlowDefinition queries the flow_definition edge of a FlowDeployment.
func (*FlowDeploymentClient) QueryFlowInstances ¶
func (c *FlowDeploymentClient) QueryFlowInstances(fd *FlowDeployment) *FlowInstanceQuery
QueryFlowInstances queries the flow_instances edge of a FlowDeployment.
func (*FlowDeploymentClient) Update ¶
func (c *FlowDeploymentClient) Update() *FlowDeploymentUpdate
Update returns an update builder for FlowDeployment.
func (*FlowDeploymentClient) UpdateOne ¶
func (c *FlowDeploymentClient) UpdateOne(fd *FlowDeployment) *FlowDeploymentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowDeploymentClient) UpdateOneID ¶
func (c *FlowDeploymentClient) UpdateOneID(id string) *FlowDeploymentUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowDeploymentClient) Use ¶
func (c *FlowDeploymentClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flowdeployment.Hooks(f(g(h())))`.
type FlowDeploymentCreate ¶
type FlowDeploymentCreate struct {
// contains filtered or unexported fields
}
FlowDeploymentCreate is the builder for creating a FlowDeployment entity.
func (*FlowDeploymentCreate) AddFlowInstanceIDs ¶
func (fdc *FlowDeploymentCreate) AddFlowInstanceIDs(ids ...string) *FlowDeploymentCreate
AddFlowInstanceIDs adds the "flow_instances" edge to the FlowInstance entity by IDs.
func (*FlowDeploymentCreate) AddFlowInstances ¶
func (fdc *FlowDeploymentCreate) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentCreate
AddFlowInstances adds the "flow_instances" edges to the FlowInstance entity.
func (*FlowDeploymentCreate) Exec ¶
func (fdc *FlowDeploymentCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDeploymentCreate) ExecX ¶
func (fdc *FlowDeploymentCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentCreate) Mutation ¶
func (fdc *FlowDeploymentCreate) Mutation() *FlowDeploymentMutation
Mutation returns the FlowDeploymentMutation object of the builder.
func (*FlowDeploymentCreate) OnConflict ¶
func (fdc *FlowDeploymentCreate) OnConflict(opts ...sql.ConflictOption) *FlowDeploymentUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowDeployment.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowDeploymentUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowDeploymentCreate) OnConflictColumns ¶
func (fdc *FlowDeploymentCreate) OnConflictColumns(columns ...string) *FlowDeploymentUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowDeploymentCreate) Save ¶
func (fdc *FlowDeploymentCreate) Save(ctx context.Context) (*FlowDeployment, error)
Save creates the FlowDeployment in the database.
func (*FlowDeploymentCreate) SaveX ¶
func (fdc *FlowDeploymentCreate) SaveX(ctx context.Context) *FlowDeployment
SaveX calls Save and panics if Save returns an error.
func (*FlowDeploymentCreate) SetCreatedAt ¶
func (fdc *FlowDeploymentCreate) SetCreatedAt(i int64) *FlowDeploymentCreate
SetCreatedAt sets the "created_at" field.
func (*FlowDeploymentCreate) SetDeletedAt ¶
func (fdc *FlowDeploymentCreate) SetDeletedAt(i int64) *FlowDeploymentCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentCreate) SetFlowDefinition ¶
func (fdc *FlowDeploymentCreate) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentCreate
SetFlowDefinition sets the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentCreate) SetFlowDefinitionID ¶
func (fdc *FlowDeploymentCreate) SetFlowDefinitionID(s string) *FlowDeploymentCreate
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentCreate) SetID ¶
func (fdc *FlowDeploymentCreate) SetID(s string) *FlowDeploymentCreate
SetID sets the "id" field.
func (*FlowDeploymentCreate) SetModel ¶
func (fdc *FlowDeploymentCreate) SetModel(sm schema.FlowModel) *FlowDeploymentCreate
SetModel sets the "model" field.
func (*FlowDeploymentCreate) SetName ¶
func (fdc *FlowDeploymentCreate) SetName(s string) *FlowDeploymentCreate
SetName sets the "name" field.
func (*FlowDeploymentCreate) SetNillableCreatedAt ¶
func (fdc *FlowDeploymentCreate) SetNillableCreatedAt(i *int64) *FlowDeploymentCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowDeploymentCreate) SetNillableDeletedAt ¶
func (fdc *FlowDeploymentCreate) SetNillableDeletedAt(i *int64) *FlowDeploymentCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDeploymentCreate) SetNillableID ¶
func (fdc *FlowDeploymentCreate) SetNillableID(s *string) *FlowDeploymentCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowDeploymentCreate) SetNillableRemark ¶
func (fdc *FlowDeploymentCreate) SetNillableRemark(s *string) *FlowDeploymentCreate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDeploymentCreate) SetNillableStatus ¶
func (fdc *FlowDeploymentCreate) SetNillableStatus(i *int8) *FlowDeploymentCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDeploymentCreate) SetNillableUpdatedAt ¶
func (fdc *FlowDeploymentCreate) SetNillableUpdatedAt(i *int64) *FlowDeploymentCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowDeploymentCreate) SetRemark ¶
func (fdc *FlowDeploymentCreate) SetRemark(s string) *FlowDeploymentCreate
SetRemark sets the "remark" field.
func (*FlowDeploymentCreate) SetStatus ¶
func (fdc *FlowDeploymentCreate) SetStatus(i int8) *FlowDeploymentCreate
SetStatus sets the "status" field.
func (*FlowDeploymentCreate) SetUpdatedAt ¶
func (fdc *FlowDeploymentCreate) SetUpdatedAt(i int64) *FlowDeploymentCreate
SetUpdatedAt sets the "updated_at" field.
type FlowDeploymentCreateBulk ¶
type FlowDeploymentCreateBulk struct {
// contains filtered or unexported fields
}
FlowDeploymentCreateBulk is the builder for creating many FlowDeployment entities in bulk.
func (*FlowDeploymentCreateBulk) Exec ¶
func (fdcb *FlowDeploymentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDeploymentCreateBulk) ExecX ¶
func (fdcb *FlowDeploymentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentCreateBulk) OnConflict ¶
func (fdcb *FlowDeploymentCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowDeploymentUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowDeployment.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowDeploymentUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowDeploymentCreateBulk) OnConflictColumns ¶
func (fdcb *FlowDeploymentCreateBulk) OnConflictColumns(columns ...string) *FlowDeploymentUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowDeploymentCreateBulk) Save ¶
func (fdcb *FlowDeploymentCreateBulk) Save(ctx context.Context) ([]*FlowDeployment, error)
Save creates the FlowDeployment entities in the database.
func (*FlowDeploymentCreateBulk) SaveX ¶
func (fdcb *FlowDeploymentCreateBulk) SaveX(ctx context.Context) []*FlowDeployment
SaveX is like Save, but panics if an error occurs.
type FlowDeploymentDelete ¶
type FlowDeploymentDelete struct {
// contains filtered or unexported fields
}
FlowDeploymentDelete is the builder for deleting a FlowDeployment entity.
func (*FlowDeploymentDelete) Exec ¶
func (fdd *FlowDeploymentDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowDeploymentDelete) ExecX ¶
func (fdd *FlowDeploymentDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentDelete) Where ¶
func (fdd *FlowDeploymentDelete) Where(ps ...predicate.FlowDeployment) *FlowDeploymentDelete
Where appends a list predicates to the FlowDeploymentDelete builder.
type FlowDeploymentDeleteOne ¶
type FlowDeploymentDeleteOne struct {
// contains filtered or unexported fields
}
FlowDeploymentDeleteOne is the builder for deleting a single FlowDeployment entity.
func (*FlowDeploymentDeleteOne) Exec ¶
func (fddo *FlowDeploymentDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowDeploymentDeleteOne) ExecX ¶
func (fddo *FlowDeploymentDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowDeploymentEdges ¶
type FlowDeploymentEdges struct { // FlowDefinition holds the value of the flow_definition edge. FlowDefinition *FlowDefinition `json:"flow_definition,omitempty"` // FlowInstances holds the value of the flow_instances edge. FlowInstances []*FlowInstance `json:"flow_instances,omitempty"` // contains filtered or unexported fields }
FlowDeploymentEdges holds the relations/edges for other nodes in the graph.
func (FlowDeploymentEdges) FlowDefinitionOrErr ¶
func (e FlowDeploymentEdges) FlowDefinitionOrErr() (*FlowDefinition, error)
FlowDefinitionOrErr returns the FlowDefinition value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (FlowDeploymentEdges) FlowInstancesOrErr ¶
func (e FlowDeploymentEdges) FlowInstancesOrErr() ([]*FlowInstance, error)
FlowInstancesOrErr returns the FlowInstances value or an error if the edge was not loaded in eager-loading.
type FlowDeploymentGroupBy ¶
type FlowDeploymentGroupBy struct {
// contains filtered or unexported fields
}
FlowDeploymentGroupBy is the group-by builder for FlowDeployment entities.
func (*FlowDeploymentGroupBy) Aggregate ¶
func (fdgb *FlowDeploymentGroupBy) Aggregate(fns ...AggregateFunc) *FlowDeploymentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowDeploymentGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowDeploymentGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentGroupBy) Scan ¶
func (fdgb *FlowDeploymentGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowDeploymentGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowDeploymentMutation ¶
type FlowDeploymentMutation struct {
// contains filtered or unexported fields
}
FlowDeploymentMutation represents an operation that mutates the FlowDeployment nodes in the graph.
func (*FlowDeploymentMutation) AddCreatedAt ¶
func (m *FlowDeploymentMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowDeploymentMutation) AddDeletedAt ¶
func (m *FlowDeploymentMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDeploymentMutation) AddField ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) AddFlowInstanceIDs ¶
func (m *FlowDeploymentMutation) AddFlowInstanceIDs(ids ...string)
AddFlowInstanceIDs adds the "flow_instances" edge to the FlowInstance entity by ids.
func (*FlowDeploymentMutation) AddStatus ¶
func (m *FlowDeploymentMutation) AddStatus(i int8)
AddStatus adds i to the "status" field.
func (*FlowDeploymentMutation) AddUpdatedAt ¶
func (m *FlowDeploymentMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDeploymentMutation) AddedCreatedAt ¶
func (m *FlowDeploymentMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowDeploymentMutation) AddedDeletedAt ¶
func (m *FlowDeploymentMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowDeploymentMutation) AddedEdges ¶
func (m *FlowDeploymentMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowDeploymentMutation) AddedField ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) AddedFields ¶
func (m *FlowDeploymentMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowDeploymentMutation) AddedIDs ¶
func (m *FlowDeploymentMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowDeploymentMutation) AddedStatus ¶
func (m *FlowDeploymentMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*FlowDeploymentMutation) AddedUpdatedAt ¶
func (m *FlowDeploymentMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowDeploymentMutation) ClearDeletedAt ¶
func (m *FlowDeploymentMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentMutation) ClearEdge ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) ClearField ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) ClearFlowDefinition ¶
func (m *FlowDeploymentMutation) ClearFlowDefinition()
ClearFlowDefinition clears the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentMutation) ClearFlowInstances ¶
func (m *FlowDeploymentMutation) ClearFlowInstances()
ClearFlowInstances clears the "flow_instances" edge to the FlowInstance entity.
func (*FlowDeploymentMutation) ClearRemark ¶
func (m *FlowDeploymentMutation) ClearRemark()
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentMutation) ClearedEdges ¶
func (m *FlowDeploymentMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowDeploymentMutation) ClearedFields ¶
func (m *FlowDeploymentMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowDeploymentMutation) Client ¶
func (m FlowDeploymentMutation) 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 (*FlowDeploymentMutation) CreatedAt ¶
func (m *FlowDeploymentMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowDeploymentMutation) DeletedAt ¶
func (m *FlowDeploymentMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowDeploymentMutation) DeletedAtCleared ¶
func (m *FlowDeploymentMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowDeploymentMutation) EdgeCleared ¶
func (m *FlowDeploymentMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowDeploymentMutation) Field ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) FieldCleared ¶
func (m *FlowDeploymentMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowDeploymentMutation) Fields ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) FlowDefinitionCleared ¶
func (m *FlowDeploymentMutation) FlowDefinitionCleared() bool
FlowDefinitionCleared reports if the "flow_definition" edge to the FlowDefinition entity was cleared.
func (*FlowDeploymentMutation) FlowDefinitionID ¶
func (m *FlowDeploymentMutation) FlowDefinitionID() (r string, exists bool)
FlowDefinitionID returns the value of the "flow_definition_id" field in the mutation.
func (*FlowDeploymentMutation) FlowDefinitionIDs ¶
func (m *FlowDeploymentMutation) FlowDefinitionIDs() (ids []string)
FlowDefinitionIDs returns the "flow_definition" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FlowDefinitionID instead. It exists only for internal usage by the builders.
func (*FlowDeploymentMutation) FlowInstancesCleared ¶
func (m *FlowDeploymentMutation) FlowInstancesCleared() bool
FlowInstancesCleared reports if the "flow_instances" edge to the FlowInstance entity was cleared.
func (*FlowDeploymentMutation) FlowInstancesIDs ¶
func (m *FlowDeploymentMutation) FlowInstancesIDs() (ids []string)
FlowInstancesIDs returns the "flow_instances" edge IDs in the mutation.
func (*FlowDeploymentMutation) ID ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) IDs ¶
func (m *FlowDeploymentMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowDeploymentMutation) Model ¶
func (m *FlowDeploymentMutation) Model() (r schema.FlowModel, exists bool)
Model returns the value of the "model" field in the mutation.
func (*FlowDeploymentMutation) Name ¶
func (m *FlowDeploymentMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FlowDeploymentMutation) OldCreatedAt ¶
func (m *FlowDeploymentMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldDeletedAt ¶
func (m *FlowDeploymentMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) 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 (*FlowDeploymentMutation) OldFlowDefinitionID ¶
func (m *FlowDeploymentMutation) OldFlowDefinitionID(ctx context.Context) (v string, err error)
OldFlowDefinitionID returns the old "flow_definition_id" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldModel ¶
OldModel returns the old "model" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldName ¶
func (m *FlowDeploymentMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldRemark ¶
func (m *FlowDeploymentMutation) OldRemark(ctx context.Context) (v string, err error)
OldRemark returns the old "remark" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldStatus ¶
func (m *FlowDeploymentMutation) OldStatus(ctx context.Context) (v int8, err error)
OldStatus returns the old "status" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) OldUpdatedAt ¶
func (m *FlowDeploymentMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowDeployment entity. If the FlowDeployment 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 (*FlowDeploymentMutation) Op ¶
func (m *FlowDeploymentMutation) Op() Op
Op returns the operation name.
func (*FlowDeploymentMutation) Remark ¶
func (m *FlowDeploymentMutation) Remark() (r string, exists bool)
Remark returns the value of the "remark" field in the mutation.
func (*FlowDeploymentMutation) RemarkCleared ¶
func (m *FlowDeploymentMutation) RemarkCleared() bool
RemarkCleared returns if the "remark" field was cleared in this mutation.
func (*FlowDeploymentMutation) RemoveFlowInstanceIDs ¶
func (m *FlowDeploymentMutation) RemoveFlowInstanceIDs(ids ...string)
RemoveFlowInstanceIDs removes the "flow_instances" edge to the FlowInstance entity by IDs.
func (*FlowDeploymentMutation) RemovedEdges ¶
func (m *FlowDeploymentMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowDeploymentMutation) RemovedFlowInstancesIDs ¶
func (m *FlowDeploymentMutation) RemovedFlowInstancesIDs() (ids []string)
RemovedFlowInstances returns the removed IDs of the "flow_instances" edge to the FlowInstance entity.
func (*FlowDeploymentMutation) RemovedIDs ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) ResetCreatedAt ¶
func (m *FlowDeploymentMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowDeploymentMutation) ResetDeletedAt ¶
func (m *FlowDeploymentMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowDeploymentMutation) ResetEdge ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) ResetField ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) ResetFlowDefinition ¶
func (m *FlowDeploymentMutation) ResetFlowDefinition()
ResetFlowDefinition resets all changes to the "flow_definition" edge.
func (*FlowDeploymentMutation) ResetFlowDefinitionID ¶
func (m *FlowDeploymentMutation) ResetFlowDefinitionID()
ResetFlowDefinitionID resets all changes to the "flow_definition_id" field.
func (*FlowDeploymentMutation) ResetFlowInstances ¶
func (m *FlowDeploymentMutation) ResetFlowInstances()
ResetFlowInstances resets all changes to the "flow_instances" edge.
func (*FlowDeploymentMutation) ResetModel ¶
func (m *FlowDeploymentMutation) ResetModel()
ResetModel resets all changes to the "model" field.
func (*FlowDeploymentMutation) ResetName ¶
func (m *FlowDeploymentMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FlowDeploymentMutation) ResetRemark ¶
func (m *FlowDeploymentMutation) ResetRemark()
ResetRemark resets all changes to the "remark" field.
func (*FlowDeploymentMutation) ResetStatus ¶
func (m *FlowDeploymentMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FlowDeploymentMutation) ResetUpdatedAt ¶
func (m *FlowDeploymentMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowDeploymentMutation) SetCreatedAt ¶
func (m *FlowDeploymentMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowDeploymentMutation) SetDeletedAt ¶
func (m *FlowDeploymentMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentMutation) SetField ¶
func (m *FlowDeploymentMutation) 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 (*FlowDeploymentMutation) SetFlowDefinitionID ¶
func (m *FlowDeploymentMutation) SetFlowDefinitionID(s string)
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentMutation) SetID ¶
func (m *FlowDeploymentMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowDeployment entities.
func (*FlowDeploymentMutation) SetModel ¶
func (m *FlowDeploymentMutation) SetModel(sm schema.FlowModel)
SetModel sets the "model" field.
func (*FlowDeploymentMutation) SetName ¶
func (m *FlowDeploymentMutation) SetName(s string)
SetName sets the "name" field.
func (*FlowDeploymentMutation) SetRemark ¶
func (m *FlowDeploymentMutation) SetRemark(s string)
SetRemark sets the "remark" field.
func (*FlowDeploymentMutation) SetStatus ¶
func (m *FlowDeploymentMutation) SetStatus(i int8)
SetStatus sets the "status" field.
func (*FlowDeploymentMutation) SetUpdatedAt ¶
func (m *FlowDeploymentMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*FlowDeploymentMutation) Status ¶
func (m *FlowDeploymentMutation) Status() (r int8, exists bool)
Status returns the value of the "status" field in the mutation.
func (FlowDeploymentMutation) Tx ¶
func (m FlowDeploymentMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowDeploymentMutation) Type ¶
func (m *FlowDeploymentMutation) Type() string
Type returns the node type of this mutation (FlowDeployment).
func (*FlowDeploymentMutation) UpdatedAt ¶
func (m *FlowDeploymentMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowDeploymentMutation) Where ¶
func (m *FlowDeploymentMutation) Where(ps ...predicate.FlowDeployment)
Where appends a list predicates to the FlowDeploymentMutation builder.
type FlowDeploymentQuery ¶
type FlowDeploymentQuery struct {
// contains filtered or unexported fields
}
FlowDeploymentQuery is the builder for querying FlowDeployment entities.
func (*FlowDeploymentQuery) All ¶
func (fdq *FlowDeploymentQuery) All(ctx context.Context) ([]*FlowDeployment, error)
All executes the query and returns a list of FlowDeployments.
func (*FlowDeploymentQuery) AllX ¶
func (fdq *FlowDeploymentQuery) AllX(ctx context.Context) []*FlowDeployment
AllX is like All, but panics if an error occurs.
func (*FlowDeploymentQuery) Clone ¶
func (fdq *FlowDeploymentQuery) Clone() *FlowDeploymentQuery
Clone returns a duplicate of the FlowDeploymentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowDeploymentQuery) Count ¶
func (fdq *FlowDeploymentQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowDeploymentQuery) CountX ¶
func (fdq *FlowDeploymentQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowDeploymentQuery) Exist ¶
func (fdq *FlowDeploymentQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowDeploymentQuery) ExistX ¶
func (fdq *FlowDeploymentQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowDeploymentQuery) First ¶
func (fdq *FlowDeploymentQuery) First(ctx context.Context) (*FlowDeployment, error)
First returns the first FlowDeployment entity from the query. Returns a *NotFoundError when no FlowDeployment was found.
func (*FlowDeploymentQuery) FirstID ¶
func (fdq *FlowDeploymentQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowDeployment ID from the query. Returns a *NotFoundError when no FlowDeployment ID was found.
func (*FlowDeploymentQuery) FirstIDX ¶
func (fdq *FlowDeploymentQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowDeploymentQuery) FirstX ¶
func (fdq *FlowDeploymentQuery) FirstX(ctx context.Context) *FlowDeployment
FirstX is like First, but panics if an error occurs.
func (*FlowDeploymentQuery) GroupBy ¶
func (fdq *FlowDeploymentQuery) GroupBy(field string, fields ...string) *FlowDeploymentGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowDeployment.Query(). GroupBy(flowdeployment.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowDeploymentQuery) IDs ¶
func (fdq *FlowDeploymentQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowDeployment IDs.
func (*FlowDeploymentQuery) IDsX ¶
func (fdq *FlowDeploymentQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowDeploymentQuery) Limit ¶
func (fdq *FlowDeploymentQuery) Limit(limit int) *FlowDeploymentQuery
Limit adds a limit step to the query.
func (*FlowDeploymentQuery) Offset ¶
func (fdq *FlowDeploymentQuery) Offset(offset int) *FlowDeploymentQuery
Offset adds an offset step to the query.
func (*FlowDeploymentQuery) Only ¶
func (fdq *FlowDeploymentQuery) Only(ctx context.Context) (*FlowDeployment, error)
Only returns a single FlowDeployment entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowDeployment entity is found. Returns a *NotFoundError when no FlowDeployment entities are found.
func (*FlowDeploymentQuery) OnlyID ¶
func (fdq *FlowDeploymentQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowDeployment ID in the query. Returns a *NotSingularError when more than one FlowDeployment ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowDeploymentQuery) OnlyIDX ¶
func (fdq *FlowDeploymentQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowDeploymentQuery) OnlyX ¶
func (fdq *FlowDeploymentQuery) OnlyX(ctx context.Context) *FlowDeployment
OnlyX is like Only, but panics if an error occurs.
func (*FlowDeploymentQuery) Order ¶
func (fdq *FlowDeploymentQuery) Order(o ...OrderFunc) *FlowDeploymentQuery
Order adds an order step to the query.
func (*FlowDeploymentQuery) QueryFlowDefinition ¶
func (fdq *FlowDeploymentQuery) QueryFlowDefinition() *FlowDefinitionQuery
QueryFlowDefinition chains the current query on the "flow_definition" edge.
func (*FlowDeploymentQuery) QueryFlowInstances ¶
func (fdq *FlowDeploymentQuery) QueryFlowInstances() *FlowInstanceQuery
QueryFlowInstances chains the current query on the "flow_instances" edge.
func (*FlowDeploymentQuery) Select ¶
func (fdq *FlowDeploymentQuery) Select(fields ...string) *FlowDeploymentSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowDeployment.Query(). Select(flowdeployment.FieldCreatedAt). Scan(ctx, &v)
func (*FlowDeploymentQuery) Unique ¶
func (fdq *FlowDeploymentQuery) Unique(unique bool) *FlowDeploymentQuery
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 (*FlowDeploymentQuery) Where ¶
func (fdq *FlowDeploymentQuery) Where(ps ...predicate.FlowDeployment) *FlowDeploymentQuery
Where adds a new predicate for the FlowDeploymentQuery builder.
func (*FlowDeploymentQuery) WithFlowDefinition ¶
func (fdq *FlowDeploymentQuery) WithFlowDefinition(opts ...func(*FlowDefinitionQuery)) *FlowDeploymentQuery
WithFlowDefinition tells the query-builder to eager-load the nodes that are connected to the "flow_definition" edge. The optional arguments are used to configure the query builder of the edge.
func (*FlowDeploymentQuery) WithFlowInstances ¶
func (fdq *FlowDeploymentQuery) WithFlowInstances(opts ...func(*FlowInstanceQuery)) *FlowDeploymentQuery
WithFlowInstances tells the query-builder to eager-load the nodes that are connected to the "flow_instances" edge. The optional arguments are used to configure the query builder of the edge.
type FlowDeploymentSelect ¶
type FlowDeploymentSelect struct { *FlowDeploymentQuery // contains filtered or unexported fields }
FlowDeploymentSelect is the builder for selecting fields of FlowDeployment entities.
func (*FlowDeploymentSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowDeploymentSelect) Scan ¶
func (fds *FlowDeploymentSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowDeploymentSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowDeploymentUpdate ¶
type FlowDeploymentUpdate struct {
// contains filtered or unexported fields
}
FlowDeploymentUpdate is the builder for updating FlowDeployment entities.
func (*FlowDeploymentUpdate) AddDeletedAt ¶
func (fdu *FlowDeploymentUpdate) AddDeletedAt(i int64) *FlowDeploymentUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDeploymentUpdate) AddFlowInstanceIDs ¶
func (fdu *FlowDeploymentUpdate) AddFlowInstanceIDs(ids ...string) *FlowDeploymentUpdate
AddFlowInstanceIDs adds the "flow_instances" edge to the FlowInstance entity by IDs.
func (*FlowDeploymentUpdate) AddFlowInstances ¶
func (fdu *FlowDeploymentUpdate) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdate
AddFlowInstances adds the "flow_instances" edges to the FlowInstance entity.
func (*FlowDeploymentUpdate) AddStatus ¶
func (fdu *FlowDeploymentUpdate) AddStatus(i int8) *FlowDeploymentUpdate
AddStatus adds i to the "status" field.
func (*FlowDeploymentUpdate) AddUpdatedAt ¶
func (fdu *FlowDeploymentUpdate) AddUpdatedAt(i int64) *FlowDeploymentUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDeploymentUpdate) ClearDeletedAt ¶
func (fdu *FlowDeploymentUpdate) ClearDeletedAt() *FlowDeploymentUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentUpdate) ClearFlowDefinition ¶
func (fdu *FlowDeploymentUpdate) ClearFlowDefinition() *FlowDeploymentUpdate
ClearFlowDefinition clears the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentUpdate) ClearFlowInstances ¶
func (fdu *FlowDeploymentUpdate) ClearFlowInstances() *FlowDeploymentUpdate
ClearFlowInstances clears all "flow_instances" edges to the FlowInstance entity.
func (*FlowDeploymentUpdate) ClearRemark ¶
func (fdu *FlowDeploymentUpdate) ClearRemark() *FlowDeploymentUpdate
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentUpdate) Exec ¶
func (fdu *FlowDeploymentUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDeploymentUpdate) ExecX ¶
func (fdu *FlowDeploymentUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentUpdate) Mutation ¶
func (fdu *FlowDeploymentUpdate) Mutation() *FlowDeploymentMutation
Mutation returns the FlowDeploymentMutation object of the builder.
func (*FlowDeploymentUpdate) RemoveFlowInstanceIDs ¶
func (fdu *FlowDeploymentUpdate) RemoveFlowInstanceIDs(ids ...string) *FlowDeploymentUpdate
RemoveFlowInstanceIDs removes the "flow_instances" edge to FlowInstance entities by IDs.
func (*FlowDeploymentUpdate) RemoveFlowInstances ¶
func (fdu *FlowDeploymentUpdate) RemoveFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdate
RemoveFlowInstances removes "flow_instances" edges to FlowInstance entities.
func (*FlowDeploymentUpdate) Save ¶
func (fdu *FlowDeploymentUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowDeploymentUpdate) SaveX ¶
func (fdu *FlowDeploymentUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowDeploymentUpdate) SetDeletedAt ¶
func (fdu *FlowDeploymentUpdate) SetDeletedAt(i int64) *FlowDeploymentUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentUpdate) SetFlowDefinition ¶
func (fdu *FlowDeploymentUpdate) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentUpdate
SetFlowDefinition sets the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentUpdate) SetFlowDefinitionID ¶
func (fdu *FlowDeploymentUpdate) SetFlowDefinitionID(s string) *FlowDeploymentUpdate
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentUpdate) SetModel ¶
func (fdu *FlowDeploymentUpdate) SetModel(sm schema.FlowModel) *FlowDeploymentUpdate
SetModel sets the "model" field.
func (*FlowDeploymentUpdate) SetName ¶
func (fdu *FlowDeploymentUpdate) SetName(s string) *FlowDeploymentUpdate
SetName sets the "name" field.
func (*FlowDeploymentUpdate) SetNillableDeletedAt ¶
func (fdu *FlowDeploymentUpdate) SetNillableDeletedAt(i *int64) *FlowDeploymentUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDeploymentUpdate) SetNillableRemark ¶
func (fdu *FlowDeploymentUpdate) SetNillableRemark(s *string) *FlowDeploymentUpdate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDeploymentUpdate) SetNillableStatus ¶
func (fdu *FlowDeploymentUpdate) SetNillableStatus(i *int8) *FlowDeploymentUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDeploymentUpdate) SetRemark ¶
func (fdu *FlowDeploymentUpdate) SetRemark(s string) *FlowDeploymentUpdate
SetRemark sets the "remark" field.
func (*FlowDeploymentUpdate) SetStatus ¶
func (fdu *FlowDeploymentUpdate) SetStatus(i int8) *FlowDeploymentUpdate
SetStatus sets the "status" field.
func (*FlowDeploymentUpdate) SetUpdatedAt ¶
func (fdu *FlowDeploymentUpdate) SetUpdatedAt(i int64) *FlowDeploymentUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowDeploymentUpdate) Where ¶
func (fdu *FlowDeploymentUpdate) Where(ps ...predicate.FlowDeployment) *FlowDeploymentUpdate
Where appends a list predicates to the FlowDeploymentUpdate builder.
type FlowDeploymentUpdateOne ¶
type FlowDeploymentUpdateOne struct {
// contains filtered or unexported fields
}
FlowDeploymentUpdateOne is the builder for updating a single FlowDeployment entity.
func (*FlowDeploymentUpdateOne) AddDeletedAt ¶
func (fduo *FlowDeploymentUpdateOne) AddDeletedAt(i int64) *FlowDeploymentUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowDeploymentUpdateOne) AddFlowInstanceIDs ¶
func (fduo *FlowDeploymentUpdateOne) AddFlowInstanceIDs(ids ...string) *FlowDeploymentUpdateOne
AddFlowInstanceIDs adds the "flow_instances" edge to the FlowInstance entity by IDs.
func (*FlowDeploymentUpdateOne) AddFlowInstances ¶
func (fduo *FlowDeploymentUpdateOne) AddFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdateOne
AddFlowInstances adds the "flow_instances" edges to the FlowInstance entity.
func (*FlowDeploymentUpdateOne) AddStatus ¶
func (fduo *FlowDeploymentUpdateOne) AddStatus(i int8) *FlowDeploymentUpdateOne
AddStatus adds i to the "status" field.
func (*FlowDeploymentUpdateOne) AddUpdatedAt ¶
func (fduo *FlowDeploymentUpdateOne) AddUpdatedAt(i int64) *FlowDeploymentUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowDeploymentUpdateOne) ClearDeletedAt ¶
func (fduo *FlowDeploymentUpdateOne) ClearDeletedAt() *FlowDeploymentUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentUpdateOne) ClearFlowDefinition ¶
func (fduo *FlowDeploymentUpdateOne) ClearFlowDefinition() *FlowDeploymentUpdateOne
ClearFlowDefinition clears the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentUpdateOne) ClearFlowInstances ¶
func (fduo *FlowDeploymentUpdateOne) ClearFlowInstances() *FlowDeploymentUpdateOne
ClearFlowInstances clears all "flow_instances" edges to the FlowInstance entity.
func (*FlowDeploymentUpdateOne) ClearRemark ¶
func (fduo *FlowDeploymentUpdateOne) ClearRemark() *FlowDeploymentUpdateOne
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentUpdateOne) Exec ¶
func (fduo *FlowDeploymentUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowDeploymentUpdateOne) ExecX ¶
func (fduo *FlowDeploymentUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentUpdateOne) Mutation ¶
func (fduo *FlowDeploymentUpdateOne) Mutation() *FlowDeploymentMutation
Mutation returns the FlowDeploymentMutation object of the builder.
func (*FlowDeploymentUpdateOne) RemoveFlowInstanceIDs ¶
func (fduo *FlowDeploymentUpdateOne) RemoveFlowInstanceIDs(ids ...string) *FlowDeploymentUpdateOne
RemoveFlowInstanceIDs removes the "flow_instances" edge to FlowInstance entities by IDs.
func (*FlowDeploymentUpdateOne) RemoveFlowInstances ¶
func (fduo *FlowDeploymentUpdateOne) RemoveFlowInstances(f ...*FlowInstance) *FlowDeploymentUpdateOne
RemoveFlowInstances removes "flow_instances" edges to FlowInstance entities.
func (*FlowDeploymentUpdateOne) Save ¶
func (fduo *FlowDeploymentUpdateOne) Save(ctx context.Context) (*FlowDeployment, error)
Save executes the query and returns the updated FlowDeployment entity.
func (*FlowDeploymentUpdateOne) SaveX ¶
func (fduo *FlowDeploymentUpdateOne) SaveX(ctx context.Context) *FlowDeployment
SaveX is like Save, but panics if an error occurs.
func (*FlowDeploymentUpdateOne) Select ¶
func (fduo *FlowDeploymentUpdateOne) Select(field string, fields ...string) *FlowDeploymentUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowDeploymentUpdateOne) SetDeletedAt ¶
func (fduo *FlowDeploymentUpdateOne) SetDeletedAt(i int64) *FlowDeploymentUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentUpdateOne) SetFlowDefinition ¶
func (fduo *FlowDeploymentUpdateOne) SetFlowDefinition(f *FlowDefinition) *FlowDeploymentUpdateOne
SetFlowDefinition sets the "flow_definition" edge to the FlowDefinition entity.
func (*FlowDeploymentUpdateOne) SetFlowDefinitionID ¶
func (fduo *FlowDeploymentUpdateOne) SetFlowDefinitionID(s string) *FlowDeploymentUpdateOne
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentUpdateOne) SetModel ¶
func (fduo *FlowDeploymentUpdateOne) SetModel(sm schema.FlowModel) *FlowDeploymentUpdateOne
SetModel sets the "model" field.
func (*FlowDeploymentUpdateOne) SetName ¶
func (fduo *FlowDeploymentUpdateOne) SetName(s string) *FlowDeploymentUpdateOne
SetName sets the "name" field.
func (*FlowDeploymentUpdateOne) SetNillableDeletedAt ¶
func (fduo *FlowDeploymentUpdateOne) SetNillableDeletedAt(i *int64) *FlowDeploymentUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowDeploymentUpdateOne) SetNillableRemark ¶
func (fduo *FlowDeploymentUpdateOne) SetNillableRemark(s *string) *FlowDeploymentUpdateOne
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*FlowDeploymentUpdateOne) SetNillableStatus ¶
func (fduo *FlowDeploymentUpdateOne) SetNillableStatus(i *int8) *FlowDeploymentUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowDeploymentUpdateOne) SetRemark ¶
func (fduo *FlowDeploymentUpdateOne) SetRemark(s string) *FlowDeploymentUpdateOne
SetRemark sets the "remark" field.
func (*FlowDeploymentUpdateOne) SetStatus ¶
func (fduo *FlowDeploymentUpdateOne) SetStatus(i int8) *FlowDeploymentUpdateOne
SetStatus sets the "status" field.
func (*FlowDeploymentUpdateOne) SetUpdatedAt ¶
func (fduo *FlowDeploymentUpdateOne) SetUpdatedAt(i int64) *FlowDeploymentUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowDeploymentUpsert ¶
FlowDeploymentUpsert is the "OnConflict" setter.
func (*FlowDeploymentUpsert) AddCreatedAt ¶
func (u *FlowDeploymentUpsert) AddCreatedAt(v int64) *FlowDeploymentUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowDeploymentUpsert) AddDeletedAt ¶
func (u *FlowDeploymentUpsert) AddDeletedAt(v int64) *FlowDeploymentUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDeploymentUpsert) AddStatus ¶
func (u *FlowDeploymentUpsert) AddStatus(v int8) *FlowDeploymentUpsert
AddStatus adds v to the "status" field.
func (*FlowDeploymentUpsert) AddUpdatedAt ¶
func (u *FlowDeploymentUpsert) AddUpdatedAt(v int64) *FlowDeploymentUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDeploymentUpsert) ClearDeletedAt ¶
func (u *FlowDeploymentUpsert) ClearDeletedAt() *FlowDeploymentUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentUpsert) ClearRemark ¶
func (u *FlowDeploymentUpsert) ClearRemark() *FlowDeploymentUpsert
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentUpsert) SetCreatedAt ¶
func (u *FlowDeploymentUpsert) SetCreatedAt(v int64) *FlowDeploymentUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowDeploymentUpsert) SetDeletedAt ¶
func (u *FlowDeploymentUpsert) SetDeletedAt(v int64) *FlowDeploymentUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentUpsert) SetFlowDefinitionID ¶
func (u *FlowDeploymentUpsert) SetFlowDefinitionID(v string) *FlowDeploymentUpsert
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentUpsert) SetModel ¶
func (u *FlowDeploymentUpsert) SetModel(v schema.FlowModel) *FlowDeploymentUpsert
SetModel sets the "model" field.
func (*FlowDeploymentUpsert) SetName ¶
func (u *FlowDeploymentUpsert) SetName(v string) *FlowDeploymentUpsert
SetName sets the "name" field.
func (*FlowDeploymentUpsert) SetRemark ¶
func (u *FlowDeploymentUpsert) SetRemark(v string) *FlowDeploymentUpsert
SetRemark sets the "remark" field.
func (*FlowDeploymentUpsert) SetStatus ¶
func (u *FlowDeploymentUpsert) SetStatus(v int8) *FlowDeploymentUpsert
SetStatus sets the "status" field.
func (*FlowDeploymentUpsert) SetUpdatedAt ¶
func (u *FlowDeploymentUpsert) SetUpdatedAt(v int64) *FlowDeploymentUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowDeploymentUpsert) UpdateCreatedAt ¶
func (u *FlowDeploymentUpsert) UpdateCreatedAt() *FlowDeploymentUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateDeletedAt ¶
func (u *FlowDeploymentUpsert) UpdateDeletedAt() *FlowDeploymentUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateFlowDefinitionID ¶
func (u *FlowDeploymentUpsert) UpdateFlowDefinitionID() *FlowDeploymentUpsert
UpdateFlowDefinitionID sets the "flow_definition_id" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateModel ¶
func (u *FlowDeploymentUpsert) UpdateModel() *FlowDeploymentUpsert
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateName ¶
func (u *FlowDeploymentUpsert) UpdateName() *FlowDeploymentUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateRemark ¶
func (u *FlowDeploymentUpsert) UpdateRemark() *FlowDeploymentUpsert
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateStatus ¶
func (u *FlowDeploymentUpsert) UpdateStatus() *FlowDeploymentUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDeploymentUpsert) UpdateUpdatedAt ¶
func (u *FlowDeploymentUpsert) UpdateUpdatedAt() *FlowDeploymentUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDeploymentUpsertBulk ¶
type FlowDeploymentUpsertBulk struct {
// contains filtered or unexported fields
}
FlowDeploymentUpsertBulk is the builder for "upsert"-ing a bulk of FlowDeployment nodes.
func (*FlowDeploymentUpsertBulk) AddCreatedAt ¶
func (u *FlowDeploymentUpsertBulk) AddCreatedAt(v int64) *FlowDeploymentUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowDeploymentUpsertBulk) AddDeletedAt ¶
func (u *FlowDeploymentUpsertBulk) AddDeletedAt(v int64) *FlowDeploymentUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDeploymentUpsertBulk) AddStatus ¶
func (u *FlowDeploymentUpsertBulk) AddStatus(v int8) *FlowDeploymentUpsertBulk
AddStatus adds v to the "status" field.
func (*FlowDeploymentUpsertBulk) AddUpdatedAt ¶
func (u *FlowDeploymentUpsertBulk) AddUpdatedAt(v int64) *FlowDeploymentUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDeploymentUpsertBulk) ClearDeletedAt ¶
func (u *FlowDeploymentUpsertBulk) ClearDeletedAt() *FlowDeploymentUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentUpsertBulk) ClearRemark ¶
func (u *FlowDeploymentUpsertBulk) ClearRemark() *FlowDeploymentUpsertBulk
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentUpsertBulk) DoNothing ¶
func (u *FlowDeploymentUpsertBulk) DoNothing() *FlowDeploymentUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowDeploymentUpsertBulk) Exec ¶
func (u *FlowDeploymentUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDeploymentUpsertBulk) ExecX ¶
func (u *FlowDeploymentUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentUpsertBulk) Ignore ¶
func (u *FlowDeploymentUpsertBulk) Ignore() *FlowDeploymentUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowDeploymentUpsertBulk) SetCreatedAt ¶
func (u *FlowDeploymentUpsertBulk) SetCreatedAt(v int64) *FlowDeploymentUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowDeploymentUpsertBulk) SetDeletedAt ¶
func (u *FlowDeploymentUpsertBulk) SetDeletedAt(v int64) *FlowDeploymentUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentUpsertBulk) SetFlowDefinitionID ¶
func (u *FlowDeploymentUpsertBulk) SetFlowDefinitionID(v string) *FlowDeploymentUpsertBulk
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentUpsertBulk) SetModel ¶
func (u *FlowDeploymentUpsertBulk) SetModel(v schema.FlowModel) *FlowDeploymentUpsertBulk
SetModel sets the "model" field.
func (*FlowDeploymentUpsertBulk) SetName ¶
func (u *FlowDeploymentUpsertBulk) SetName(v string) *FlowDeploymentUpsertBulk
SetName sets the "name" field.
func (*FlowDeploymentUpsertBulk) SetRemark ¶
func (u *FlowDeploymentUpsertBulk) SetRemark(v string) *FlowDeploymentUpsertBulk
SetRemark sets the "remark" field.
func (*FlowDeploymentUpsertBulk) SetStatus ¶
func (u *FlowDeploymentUpsertBulk) SetStatus(v int8) *FlowDeploymentUpsertBulk
SetStatus sets the "status" field.
func (*FlowDeploymentUpsertBulk) SetUpdatedAt ¶
func (u *FlowDeploymentUpsertBulk) SetUpdatedAt(v int64) *FlowDeploymentUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowDeploymentUpsertBulk) Update ¶
func (u *FlowDeploymentUpsertBulk) Update(set func(*FlowDeploymentUpsert)) *FlowDeploymentUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowDeploymentCreateBulk.OnConflict documentation for more info.
func (*FlowDeploymentUpsertBulk) UpdateCreatedAt ¶
func (u *FlowDeploymentUpsertBulk) UpdateCreatedAt() *FlowDeploymentUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateDeletedAt ¶
func (u *FlowDeploymentUpsertBulk) UpdateDeletedAt() *FlowDeploymentUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateFlowDefinitionID ¶
func (u *FlowDeploymentUpsertBulk) UpdateFlowDefinitionID() *FlowDeploymentUpsertBulk
UpdateFlowDefinitionID sets the "flow_definition_id" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateModel ¶
func (u *FlowDeploymentUpsertBulk) UpdateModel() *FlowDeploymentUpsertBulk
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateName ¶
func (u *FlowDeploymentUpsertBulk) UpdateName() *FlowDeploymentUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateNewValues ¶
func (u *FlowDeploymentUpsertBulk) UpdateNewValues() *FlowDeploymentUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowdeployment.FieldID) }), ). Exec(ctx)
func (*FlowDeploymentUpsertBulk) UpdateRemark ¶
func (u *FlowDeploymentUpsertBulk) UpdateRemark() *FlowDeploymentUpsertBulk
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateStatus ¶
func (u *FlowDeploymentUpsertBulk) UpdateStatus() *FlowDeploymentUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDeploymentUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowDeploymentUpsertBulk) UpdateUpdatedAt() *FlowDeploymentUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDeploymentUpsertOne ¶
type FlowDeploymentUpsertOne struct {
// contains filtered or unexported fields
}
FlowDeploymentUpsertOne is the builder for "upsert"-ing
one FlowDeployment node.
func (*FlowDeploymentUpsertOne) AddCreatedAt ¶
func (u *FlowDeploymentUpsertOne) AddCreatedAt(v int64) *FlowDeploymentUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowDeploymentUpsertOne) AddDeletedAt ¶
func (u *FlowDeploymentUpsertOne) AddDeletedAt(v int64) *FlowDeploymentUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowDeploymentUpsertOne) AddStatus ¶
func (u *FlowDeploymentUpsertOne) AddStatus(v int8) *FlowDeploymentUpsertOne
AddStatus adds v to the "status" field.
func (*FlowDeploymentUpsertOne) AddUpdatedAt ¶
func (u *FlowDeploymentUpsertOne) AddUpdatedAt(v int64) *FlowDeploymentUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowDeploymentUpsertOne) ClearDeletedAt ¶
func (u *FlowDeploymentUpsertOne) ClearDeletedAt() *FlowDeploymentUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowDeploymentUpsertOne) ClearRemark ¶
func (u *FlowDeploymentUpsertOne) ClearRemark() *FlowDeploymentUpsertOne
ClearRemark clears the value of the "remark" field.
func (*FlowDeploymentUpsertOne) DoNothing ¶
func (u *FlowDeploymentUpsertOne) DoNothing() *FlowDeploymentUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowDeploymentUpsertOne) Exec ¶
func (u *FlowDeploymentUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowDeploymentUpsertOne) ExecX ¶
func (u *FlowDeploymentUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowDeploymentUpsertOne) ID ¶
func (u *FlowDeploymentUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowDeploymentUpsertOne) IDX ¶
func (u *FlowDeploymentUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowDeploymentUpsertOne) Ignore ¶
func (u *FlowDeploymentUpsertOne) Ignore() *FlowDeploymentUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowDeploymentUpsertOne) SetCreatedAt ¶
func (u *FlowDeploymentUpsertOne) SetCreatedAt(v int64) *FlowDeploymentUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowDeploymentUpsertOne) SetDeletedAt ¶
func (u *FlowDeploymentUpsertOne) SetDeletedAt(v int64) *FlowDeploymentUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowDeploymentUpsertOne) SetFlowDefinitionID ¶
func (u *FlowDeploymentUpsertOne) SetFlowDefinitionID(v string) *FlowDeploymentUpsertOne
SetFlowDefinitionID sets the "flow_definition_id" field.
func (*FlowDeploymentUpsertOne) SetModel ¶
func (u *FlowDeploymentUpsertOne) SetModel(v schema.FlowModel) *FlowDeploymentUpsertOne
SetModel sets the "model" field.
func (*FlowDeploymentUpsertOne) SetName ¶
func (u *FlowDeploymentUpsertOne) SetName(v string) *FlowDeploymentUpsertOne
SetName sets the "name" field.
func (*FlowDeploymentUpsertOne) SetRemark ¶
func (u *FlowDeploymentUpsertOne) SetRemark(v string) *FlowDeploymentUpsertOne
SetRemark sets the "remark" field.
func (*FlowDeploymentUpsertOne) SetStatus ¶
func (u *FlowDeploymentUpsertOne) SetStatus(v int8) *FlowDeploymentUpsertOne
SetStatus sets the "status" field.
func (*FlowDeploymentUpsertOne) SetUpdatedAt ¶
func (u *FlowDeploymentUpsertOne) SetUpdatedAt(v int64) *FlowDeploymentUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowDeploymentUpsertOne) Update ¶
func (u *FlowDeploymentUpsertOne) Update(set func(*FlowDeploymentUpsert)) *FlowDeploymentUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowDeploymentCreate.OnConflict documentation for more info.
func (*FlowDeploymentUpsertOne) UpdateCreatedAt ¶
func (u *FlowDeploymentUpsertOne) UpdateCreatedAt() *FlowDeploymentUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateDeletedAt ¶
func (u *FlowDeploymentUpsertOne) UpdateDeletedAt() *FlowDeploymentUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateFlowDefinitionID ¶
func (u *FlowDeploymentUpsertOne) UpdateFlowDefinitionID() *FlowDeploymentUpsertOne
UpdateFlowDefinitionID sets the "flow_definition_id" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateModel ¶
func (u *FlowDeploymentUpsertOne) UpdateModel() *FlowDeploymentUpsertOne
UpdateModel sets the "model" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateName ¶
func (u *FlowDeploymentUpsertOne) UpdateName() *FlowDeploymentUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateNewValues ¶
func (u *FlowDeploymentUpsertOne) UpdateNewValues() *FlowDeploymentUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowDeployment.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowdeployment.FieldID) }), ). Exec(ctx)
func (*FlowDeploymentUpsertOne) UpdateRemark ¶
func (u *FlowDeploymentUpsertOne) UpdateRemark() *FlowDeploymentUpsertOne
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateStatus ¶
func (u *FlowDeploymentUpsertOne) UpdateStatus() *FlowDeploymentUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowDeploymentUpsertOne) UpdateUpdatedAt ¶
func (u *FlowDeploymentUpsertOne) UpdateUpdatedAt() *FlowDeploymentUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowDeployments ¶
type FlowDeployments []*FlowDeployment
FlowDeployments is a parsable slice of FlowDeployment.
type FlowInstance ¶
type FlowInstance struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // FlowDeploymentID holds the value of the "flow_deployment_id" field. // 部署的流程ID FlowDeploymentID string `json:"flow_deployment_id,omitempty"` // RefID holds the value of the "ref_id" field. // 引用/调用方ID RefID string `json:"ref_id,omitempty"` // Status holds the value of the "status" field. // 流程状态(1.执行完成 2.执行中 3.执行终止(强制终止)) Status int8 `json:"status,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FlowInstanceQuery when eager-loading is set. Edges FlowInstanceEdges `json:"edges"` // contains filtered or unexported fields }
FlowInstance is the model entity for the FlowInstance schema.
func (*FlowInstance) QueryFlowDeployment ¶
func (fi *FlowInstance) QueryFlowDeployment() *FlowDeploymentQuery
QueryFlowDeployment queries the "flow_deployment" edge of the FlowInstance entity.
func (*FlowInstance) QueryFlowNodeInstances ¶
func (fi *FlowInstance) QueryFlowNodeInstances() *FlowNodeInstanceQuery
QueryFlowNodeInstances queries the "flow_node_instances" edge of the FlowInstance entity.
func (*FlowInstance) String ¶
func (fi *FlowInstance) String() string
String implements the fmt.Stringer.
func (*FlowInstance) Unwrap ¶
func (fi *FlowInstance) Unwrap() *FlowInstance
Unwrap unwraps the FlowInstance 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 (*FlowInstance) Update ¶
func (fi *FlowInstance) Update() *FlowInstanceUpdateOne
Update returns a builder for updating this FlowInstance. Note that you need to call FlowInstance.Unwrap() before calling this method if this FlowInstance was returned from a transaction, and the transaction was committed or rolled back.
type FlowInstanceClient ¶
type FlowInstanceClient struct {
// contains filtered or unexported fields
}
FlowInstanceClient is a client for the FlowInstance schema.
func NewFlowInstanceClient ¶
func NewFlowInstanceClient(c config) *FlowInstanceClient
NewFlowInstanceClient returns a client for the FlowInstance from the given config.
func (*FlowInstanceClient) Create ¶
func (c *FlowInstanceClient) Create() *FlowInstanceCreate
Create returns a create builder for FlowInstance.
func (*FlowInstanceClient) CreateBulk ¶
func (c *FlowInstanceClient) CreateBulk(builders ...*FlowInstanceCreate) *FlowInstanceCreateBulk
CreateBulk returns a builder for creating a bulk of FlowInstance entities.
func (*FlowInstanceClient) Delete ¶
func (c *FlowInstanceClient) Delete() *FlowInstanceDelete
Delete returns a delete builder for FlowInstance.
func (*FlowInstanceClient) DeleteOne ¶
func (c *FlowInstanceClient) DeleteOne(fi *FlowInstance) *FlowInstanceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowInstanceClient) DeleteOneID ¶
func (c *FlowInstanceClient) DeleteOneID(id string) *FlowInstanceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowInstanceClient) Get ¶
func (c *FlowInstanceClient) Get(ctx context.Context, id string) (*FlowInstance, error)
Get returns a FlowInstance entity by its id.
func (*FlowInstanceClient) GetX ¶
func (c *FlowInstanceClient) GetX(ctx context.Context, id string) *FlowInstance
GetX is like Get, but panics if an error occurs.
func (*FlowInstanceClient) Hooks ¶
func (c *FlowInstanceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowInstanceClient) Query ¶
func (c *FlowInstanceClient) Query() *FlowInstanceQuery
Query returns a query builder for FlowInstance.
func (*FlowInstanceClient) QueryFlowDeployment ¶
func (c *FlowInstanceClient) QueryFlowDeployment(fi *FlowInstance) *FlowDeploymentQuery
QueryFlowDeployment queries the flow_deployment edge of a FlowInstance.
func (*FlowInstanceClient) QueryFlowNodeInstances ¶
func (c *FlowInstanceClient) QueryFlowNodeInstances(fi *FlowInstance) *FlowNodeInstanceQuery
QueryFlowNodeInstances queries the flow_node_instances edge of a FlowInstance.
func (*FlowInstanceClient) Update ¶
func (c *FlowInstanceClient) Update() *FlowInstanceUpdate
Update returns an update builder for FlowInstance.
func (*FlowInstanceClient) UpdateOne ¶
func (c *FlowInstanceClient) UpdateOne(fi *FlowInstance) *FlowInstanceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowInstanceClient) UpdateOneID ¶
func (c *FlowInstanceClient) UpdateOneID(id string) *FlowInstanceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowInstanceClient) Use ¶
func (c *FlowInstanceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flowinstance.Hooks(f(g(h())))`.
type FlowInstanceCreate ¶
type FlowInstanceCreate struct {
// contains filtered or unexported fields
}
FlowInstanceCreate is the builder for creating a FlowInstance entity.
func (*FlowInstanceCreate) AddFlowNodeInstanceIDs ¶
func (fic *FlowInstanceCreate) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceCreate
AddFlowNodeInstanceIDs adds the "flow_node_instances" edge to the FlowNodeInstance entity by IDs.
func (*FlowInstanceCreate) AddFlowNodeInstances ¶
func (fic *FlowInstanceCreate) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceCreate
AddFlowNodeInstances adds the "flow_node_instances" edges to the FlowNodeInstance entity.
func (*FlowInstanceCreate) Exec ¶
func (fic *FlowInstanceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceCreate) ExecX ¶
func (fic *FlowInstanceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceCreate) Mutation ¶
func (fic *FlowInstanceCreate) Mutation() *FlowInstanceMutation
Mutation returns the FlowInstanceMutation object of the builder.
func (*FlowInstanceCreate) OnConflict ¶
func (fic *FlowInstanceCreate) OnConflict(opts ...sql.ConflictOption) *FlowInstanceUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowInstance.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowInstanceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowInstanceCreate) OnConflictColumns ¶
func (fic *FlowInstanceCreate) OnConflictColumns(columns ...string) *FlowInstanceUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowInstanceCreate) Save ¶
func (fic *FlowInstanceCreate) Save(ctx context.Context) (*FlowInstance, error)
Save creates the FlowInstance in the database.
func (*FlowInstanceCreate) SaveX ¶
func (fic *FlowInstanceCreate) SaveX(ctx context.Context) *FlowInstance
SaveX calls Save and panics if Save returns an error.
func (*FlowInstanceCreate) SetCreatedAt ¶
func (fic *FlowInstanceCreate) SetCreatedAt(i int64) *FlowInstanceCreate
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceCreate) SetDeletedAt ¶
func (fic *FlowInstanceCreate) SetDeletedAt(i int64) *FlowInstanceCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceCreate) SetFlowDeployment ¶
func (fic *FlowInstanceCreate) SetFlowDeployment(f *FlowDeployment) *FlowInstanceCreate
SetFlowDeployment sets the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceCreate) SetFlowDeploymentID ¶
func (fic *FlowInstanceCreate) SetFlowDeploymentID(s string) *FlowInstanceCreate
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceCreate) SetID ¶
func (fic *FlowInstanceCreate) SetID(s string) *FlowInstanceCreate
SetID sets the "id" field.
func (*FlowInstanceCreate) SetNillableCreatedAt ¶
func (fic *FlowInstanceCreate) SetNillableCreatedAt(i *int64) *FlowInstanceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowInstanceCreate) SetNillableDeletedAt ¶
func (fic *FlowInstanceCreate) SetNillableDeletedAt(i *int64) *FlowInstanceCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceCreate) SetNillableID ¶
func (fic *FlowInstanceCreate) SetNillableID(s *string) *FlowInstanceCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowInstanceCreate) SetNillableStatus ¶
func (fic *FlowInstanceCreate) SetNillableStatus(i *int8) *FlowInstanceCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowInstanceCreate) SetNillableUpdatedAt ¶
func (fic *FlowInstanceCreate) SetNillableUpdatedAt(i *int64) *FlowInstanceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowInstanceCreate) SetRefID ¶
func (fic *FlowInstanceCreate) SetRefID(s string) *FlowInstanceCreate
SetRefID sets the "ref_id" field.
func (*FlowInstanceCreate) SetStatus ¶
func (fic *FlowInstanceCreate) SetStatus(i int8) *FlowInstanceCreate
SetStatus sets the "status" field.
func (*FlowInstanceCreate) SetUpdatedAt ¶
func (fic *FlowInstanceCreate) SetUpdatedAt(i int64) *FlowInstanceCreate
SetUpdatedAt sets the "updated_at" field.
type FlowInstanceCreateBulk ¶
type FlowInstanceCreateBulk struct {
// contains filtered or unexported fields
}
FlowInstanceCreateBulk is the builder for creating many FlowInstance entities in bulk.
func (*FlowInstanceCreateBulk) Exec ¶
func (ficb *FlowInstanceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceCreateBulk) ExecX ¶
func (ficb *FlowInstanceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceCreateBulk) OnConflict ¶
func (ficb *FlowInstanceCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowInstanceUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowInstance.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowInstanceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowInstanceCreateBulk) OnConflictColumns ¶
func (ficb *FlowInstanceCreateBulk) OnConflictColumns(columns ...string) *FlowInstanceUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowInstanceCreateBulk) Save ¶
func (ficb *FlowInstanceCreateBulk) Save(ctx context.Context) ([]*FlowInstance, error)
Save creates the FlowInstance entities in the database.
func (*FlowInstanceCreateBulk) SaveX ¶
func (ficb *FlowInstanceCreateBulk) SaveX(ctx context.Context) []*FlowInstance
SaveX is like Save, but panics if an error occurs.
type FlowInstanceData ¶
type FlowInstanceData struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // FlowInstanceID holds the value of the "flow_instance_id" field. // 流程执行实例ID FlowInstanceID string `json:"flow_instance_id,omitempty"` // FlowNodeInstanceID holds the value of the "flow_node_instance_id" field. // 节点执行实例ID FlowNodeInstanceID string `json:"flow_node_instance_id,omitempty"` // NodeKey holds the value of the "node_key" field. // 节点唯一标示 NodeKey string `json:"node_key,omitempty"` // Data holds the value of the "data" field. // 数据列表json Data map[string]interface{} `json:"data,omitempty"` // Type holds the value of the "type" field. // 操作类型(1.实例初始化 2.系统执行 3.系统主动获取 4.上游更新 5.任务提交 6.任务撤回) Type int8 `json:"type,omitempty"` // contains filtered or unexported fields }
FlowInstanceData is the model entity for the FlowInstanceData schema.
func (*FlowInstanceData) String ¶
func (fid *FlowInstanceData) String() string
String implements the fmt.Stringer.
func (*FlowInstanceData) Unwrap ¶
func (fid *FlowInstanceData) Unwrap() *FlowInstanceData
Unwrap unwraps the FlowInstanceData 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 (*FlowInstanceData) Update ¶
func (fid *FlowInstanceData) Update() *FlowInstanceDataUpdateOne
Update returns a builder for updating this FlowInstanceData. Note that you need to call FlowInstanceData.Unwrap() before calling this method if this FlowInstanceData was returned from a transaction, and the transaction was committed or rolled back.
type FlowInstanceDataClient ¶
type FlowInstanceDataClient struct {
// contains filtered or unexported fields
}
FlowInstanceDataClient is a client for the FlowInstanceData schema.
func NewFlowInstanceDataClient ¶
func NewFlowInstanceDataClient(c config) *FlowInstanceDataClient
NewFlowInstanceDataClient returns a client for the FlowInstanceData from the given config.
func (*FlowInstanceDataClient) Create ¶
func (c *FlowInstanceDataClient) Create() *FlowInstanceDataCreate
Create returns a create builder for FlowInstanceData.
func (*FlowInstanceDataClient) CreateBulk ¶
func (c *FlowInstanceDataClient) CreateBulk(builders ...*FlowInstanceDataCreate) *FlowInstanceDataCreateBulk
CreateBulk returns a builder for creating a bulk of FlowInstanceData entities.
func (*FlowInstanceDataClient) Delete ¶
func (c *FlowInstanceDataClient) Delete() *FlowInstanceDataDelete
Delete returns a delete builder for FlowInstanceData.
func (*FlowInstanceDataClient) DeleteOne ¶
func (c *FlowInstanceDataClient) DeleteOne(fid *FlowInstanceData) *FlowInstanceDataDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowInstanceDataClient) DeleteOneID ¶
func (c *FlowInstanceDataClient) DeleteOneID(id string) *FlowInstanceDataDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowInstanceDataClient) Get ¶
func (c *FlowInstanceDataClient) Get(ctx context.Context, id string) (*FlowInstanceData, error)
Get returns a FlowInstanceData entity by its id.
func (*FlowInstanceDataClient) GetX ¶
func (c *FlowInstanceDataClient) GetX(ctx context.Context, id string) *FlowInstanceData
GetX is like Get, but panics if an error occurs.
func (*FlowInstanceDataClient) Hooks ¶
func (c *FlowInstanceDataClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowInstanceDataClient) Query ¶
func (c *FlowInstanceDataClient) Query() *FlowInstanceDataQuery
Query returns a query builder for FlowInstanceData.
func (*FlowInstanceDataClient) Update ¶
func (c *FlowInstanceDataClient) Update() *FlowInstanceDataUpdate
Update returns an update builder for FlowInstanceData.
func (*FlowInstanceDataClient) UpdateOne ¶
func (c *FlowInstanceDataClient) UpdateOne(fid *FlowInstanceData) *FlowInstanceDataUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowInstanceDataClient) UpdateOneID ¶
func (c *FlowInstanceDataClient) UpdateOneID(id string) *FlowInstanceDataUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowInstanceDataClient) Use ¶
func (c *FlowInstanceDataClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flowinstancedata.Hooks(f(g(h())))`.
type FlowInstanceDataCreate ¶
type FlowInstanceDataCreate struct {
// contains filtered or unexported fields
}
FlowInstanceDataCreate is the builder for creating a FlowInstanceData entity.
func (*FlowInstanceDataCreate) Exec ¶
func (fidc *FlowInstanceDataCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceDataCreate) ExecX ¶
func (fidc *FlowInstanceDataCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataCreate) Mutation ¶
func (fidc *FlowInstanceDataCreate) Mutation() *FlowInstanceDataMutation
Mutation returns the FlowInstanceDataMutation object of the builder.
func (*FlowInstanceDataCreate) OnConflict ¶
func (fidc *FlowInstanceDataCreate) OnConflict(opts ...sql.ConflictOption) *FlowInstanceDataUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowInstanceData.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowInstanceDataUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowInstanceDataCreate) OnConflictColumns ¶
func (fidc *FlowInstanceDataCreate) OnConflictColumns(columns ...string) *FlowInstanceDataUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowInstanceDataCreate) Save ¶
func (fidc *FlowInstanceDataCreate) Save(ctx context.Context) (*FlowInstanceData, error)
Save creates the FlowInstanceData in the database.
func (*FlowInstanceDataCreate) SaveX ¶
func (fidc *FlowInstanceDataCreate) SaveX(ctx context.Context) *FlowInstanceData
SaveX calls Save and panics if Save returns an error.
func (*FlowInstanceDataCreate) SetCreatedAt ¶
func (fidc *FlowInstanceDataCreate) SetCreatedAt(i int64) *FlowInstanceDataCreate
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceDataCreate) SetData ¶
func (fidc *FlowInstanceDataCreate) SetData(m map[string]interface{}) *FlowInstanceDataCreate
SetData sets the "data" field.
func (*FlowInstanceDataCreate) SetDeletedAt ¶
func (fidc *FlowInstanceDataCreate) SetDeletedAt(i int64) *FlowInstanceDataCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataCreate) SetFlowInstanceID ¶
func (fidc *FlowInstanceDataCreate) SetFlowInstanceID(s string) *FlowInstanceDataCreate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataCreate) SetFlowNodeInstanceID ¶
func (fidc *FlowInstanceDataCreate) SetFlowNodeInstanceID(s string) *FlowInstanceDataCreate
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataCreate) SetID ¶
func (fidc *FlowInstanceDataCreate) SetID(s string) *FlowInstanceDataCreate
SetID sets the "id" field.
func (*FlowInstanceDataCreate) SetNillableCreatedAt ¶
func (fidc *FlowInstanceDataCreate) SetNillableCreatedAt(i *int64) *FlowInstanceDataCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableDeletedAt ¶
func (fidc *FlowInstanceDataCreate) SetNillableDeletedAt(i *int64) *FlowInstanceDataCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableFlowNodeInstanceID ¶
func (fidc *FlowInstanceDataCreate) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataCreate
SetNillableFlowNodeInstanceID sets the "flow_node_instance_id" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableID ¶
func (fidc *FlowInstanceDataCreate) SetNillableID(s *string) *FlowInstanceDataCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableNodeKey ¶
func (fidc *FlowInstanceDataCreate) SetNillableNodeKey(s *string) *FlowInstanceDataCreate
SetNillableNodeKey sets the "node_key" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableType ¶
func (fidc *FlowInstanceDataCreate) SetNillableType(i *int8) *FlowInstanceDataCreate
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNillableUpdatedAt ¶
func (fidc *FlowInstanceDataCreate) SetNillableUpdatedAt(i *int64) *FlowInstanceDataCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowInstanceDataCreate) SetNodeKey ¶
func (fidc *FlowInstanceDataCreate) SetNodeKey(s string) *FlowInstanceDataCreate
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataCreate) SetType ¶
func (fidc *FlowInstanceDataCreate) SetType(i int8) *FlowInstanceDataCreate
SetType sets the "type" field.
func (*FlowInstanceDataCreate) SetUpdatedAt ¶
func (fidc *FlowInstanceDataCreate) SetUpdatedAt(i int64) *FlowInstanceDataCreate
SetUpdatedAt sets the "updated_at" field.
type FlowInstanceDataCreateBulk ¶
type FlowInstanceDataCreateBulk struct {
// contains filtered or unexported fields
}
FlowInstanceDataCreateBulk is the builder for creating many FlowInstanceData entities in bulk.
func (*FlowInstanceDataCreateBulk) Exec ¶
func (fidcb *FlowInstanceDataCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceDataCreateBulk) ExecX ¶
func (fidcb *FlowInstanceDataCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataCreateBulk) OnConflict ¶
func (fidcb *FlowInstanceDataCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowInstanceDataUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowInstanceData.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowInstanceDataUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowInstanceDataCreateBulk) OnConflictColumns ¶
func (fidcb *FlowInstanceDataCreateBulk) OnConflictColumns(columns ...string) *FlowInstanceDataUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowInstanceDataCreateBulk) Save ¶
func (fidcb *FlowInstanceDataCreateBulk) Save(ctx context.Context) ([]*FlowInstanceData, error)
Save creates the FlowInstanceData entities in the database.
func (*FlowInstanceDataCreateBulk) SaveX ¶
func (fidcb *FlowInstanceDataCreateBulk) SaveX(ctx context.Context) []*FlowInstanceData
SaveX is like Save, but panics if an error occurs.
type FlowInstanceDataDelete ¶
type FlowInstanceDataDelete struct {
// contains filtered or unexported fields
}
FlowInstanceDataDelete is the builder for deleting a FlowInstanceData entity.
func (*FlowInstanceDataDelete) Exec ¶
func (fidd *FlowInstanceDataDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowInstanceDataDelete) ExecX ¶
func (fidd *FlowInstanceDataDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataDelete) Where ¶
func (fidd *FlowInstanceDataDelete) Where(ps ...predicate.FlowInstanceData) *FlowInstanceDataDelete
Where appends a list predicates to the FlowInstanceDataDelete builder.
type FlowInstanceDataDeleteOne ¶
type FlowInstanceDataDeleteOne struct {
// contains filtered or unexported fields
}
FlowInstanceDataDeleteOne is the builder for deleting a single FlowInstanceData entity.
func (*FlowInstanceDataDeleteOne) Exec ¶
func (fiddo *FlowInstanceDataDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowInstanceDataDeleteOne) ExecX ¶
func (fiddo *FlowInstanceDataDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowInstanceDataGroupBy ¶
type FlowInstanceDataGroupBy struct {
// contains filtered or unexported fields
}
FlowInstanceDataGroupBy is the group-by builder for FlowInstanceData entities.
func (*FlowInstanceDataGroupBy) Aggregate ¶
func (fidgb *FlowInstanceDataGroupBy) Aggregate(fns ...AggregateFunc) *FlowInstanceDataGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowInstanceDataGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowInstanceDataGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataGroupBy) Scan ¶
func (fidgb *FlowInstanceDataGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowInstanceDataGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowInstanceDataMutation ¶
type FlowInstanceDataMutation struct {
// contains filtered or unexported fields
}
FlowInstanceDataMutation represents an operation that mutates the FlowInstanceData nodes in the graph.
func (*FlowInstanceDataMutation) AddCreatedAt ¶
func (m *FlowInstanceDataMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowInstanceDataMutation) AddDeletedAt ¶
func (m *FlowInstanceDataMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceDataMutation) AddField ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) AddType ¶
func (m *FlowInstanceDataMutation) AddType(i int8)
AddType adds i to the "type" field.
func (*FlowInstanceDataMutation) AddUpdatedAt ¶
func (m *FlowInstanceDataMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceDataMutation) AddedCreatedAt ¶
func (m *FlowInstanceDataMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowInstanceDataMutation) AddedDeletedAt ¶
func (m *FlowInstanceDataMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowInstanceDataMutation) AddedEdges ¶
func (m *FlowInstanceDataMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowInstanceDataMutation) AddedField ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) AddedFields ¶
func (m *FlowInstanceDataMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowInstanceDataMutation) AddedIDs ¶
func (m *FlowInstanceDataMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowInstanceDataMutation) AddedType ¶
func (m *FlowInstanceDataMutation) AddedType() (r int8, exists bool)
AddedType returns the value that was added to the "type" field in this mutation.
func (*FlowInstanceDataMutation) AddedUpdatedAt ¶
func (m *FlowInstanceDataMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowInstanceDataMutation) ClearData ¶
func (m *FlowInstanceDataMutation) ClearData()
ClearData clears the value of the "data" field.
func (*FlowInstanceDataMutation) ClearDeletedAt ¶
func (m *FlowInstanceDataMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataMutation) ClearEdge ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) ClearField ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) ClearFlowNodeInstanceID ¶
func (m *FlowInstanceDataMutation) ClearFlowNodeInstanceID()
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataMutation) ClearNodeKey ¶
func (m *FlowInstanceDataMutation) ClearNodeKey()
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataMutation) ClearedEdges ¶
func (m *FlowInstanceDataMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowInstanceDataMutation) ClearedFields ¶
func (m *FlowInstanceDataMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowInstanceDataMutation) Client ¶
func (m FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) CreatedAt ¶
func (m *FlowInstanceDataMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowInstanceDataMutation) Data ¶
func (m *FlowInstanceDataMutation) Data() (r map[string]interface{}, exists bool)
Data returns the value of the "data" field in the mutation.
func (*FlowInstanceDataMutation) DataCleared ¶
func (m *FlowInstanceDataMutation) DataCleared() bool
DataCleared returns if the "data" field was cleared in this mutation.
func (*FlowInstanceDataMutation) DeletedAt ¶
func (m *FlowInstanceDataMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowInstanceDataMutation) DeletedAtCleared ¶
func (m *FlowInstanceDataMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowInstanceDataMutation) EdgeCleared ¶
func (m *FlowInstanceDataMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowInstanceDataMutation) Field ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) FieldCleared ¶
func (m *FlowInstanceDataMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowInstanceDataMutation) Fields ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) FlowInstanceID ¶
func (m *FlowInstanceDataMutation) FlowInstanceID() (r string, exists bool)
FlowInstanceID returns the value of the "flow_instance_id" field in the mutation.
func (*FlowInstanceDataMutation) FlowNodeInstanceID ¶
func (m *FlowInstanceDataMutation) FlowNodeInstanceID() (r string, exists bool)
FlowNodeInstanceID returns the value of the "flow_node_instance_id" field in the mutation.
func (*FlowInstanceDataMutation) FlowNodeInstanceIDCleared ¶
func (m *FlowInstanceDataMutation) FlowNodeInstanceIDCleared() bool
FlowNodeInstanceIDCleared returns if the "flow_node_instance_id" field was cleared in this mutation.
func (*FlowInstanceDataMutation) GetType ¶
func (m *FlowInstanceDataMutation) GetType() (r int8, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*FlowInstanceDataMutation) ID ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) IDs ¶
func (m *FlowInstanceDataMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowInstanceDataMutation) NodeKey ¶
func (m *FlowInstanceDataMutation) NodeKey() (r string, exists bool)
NodeKey returns the value of the "node_key" field in the mutation.
func (*FlowInstanceDataMutation) NodeKeyCleared ¶
func (m *FlowInstanceDataMutation) NodeKeyCleared() bool
NodeKeyCleared returns if the "node_key" field was cleared in this mutation.
func (*FlowInstanceDataMutation) OldCreatedAt ¶
func (m *FlowInstanceDataMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldData ¶
func (m *FlowInstanceDataMutation) OldData(ctx context.Context) (v map[string]interface{}, err error)
OldData returns the old "data" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldDeletedAt ¶
func (m *FlowInstanceDataMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) OldFlowInstanceID ¶
func (m *FlowInstanceDataMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
OldFlowInstanceID returns the old "flow_instance_id" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldFlowNodeInstanceID ¶
func (m *FlowInstanceDataMutation) OldFlowNodeInstanceID(ctx context.Context) (v string, err error)
OldFlowNodeInstanceID returns the old "flow_node_instance_id" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldNodeKey ¶
func (m *FlowInstanceDataMutation) OldNodeKey(ctx context.Context) (v string, err error)
OldNodeKey returns the old "node_key" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldType ¶
func (m *FlowInstanceDataMutation) OldType(ctx context.Context) (v int8, err error)
OldType returns the old "type" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) OldUpdatedAt ¶
func (m *FlowInstanceDataMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowInstanceData entity. If the FlowInstanceData 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 (*FlowInstanceDataMutation) Op ¶
func (m *FlowInstanceDataMutation) Op() Op
Op returns the operation name.
func (*FlowInstanceDataMutation) RemovedEdges ¶
func (m *FlowInstanceDataMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowInstanceDataMutation) RemovedIDs ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) ResetCreatedAt ¶
func (m *FlowInstanceDataMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowInstanceDataMutation) ResetData ¶
func (m *FlowInstanceDataMutation) ResetData()
ResetData resets all changes to the "data" field.
func (*FlowInstanceDataMutation) ResetDeletedAt ¶
func (m *FlowInstanceDataMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowInstanceDataMutation) ResetEdge ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) ResetField ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) ResetFlowInstanceID ¶
func (m *FlowInstanceDataMutation) ResetFlowInstanceID()
ResetFlowInstanceID resets all changes to the "flow_instance_id" field.
func (*FlowInstanceDataMutation) ResetFlowNodeInstanceID ¶
func (m *FlowInstanceDataMutation) ResetFlowNodeInstanceID()
ResetFlowNodeInstanceID resets all changes to the "flow_node_instance_id" field.
func (*FlowInstanceDataMutation) ResetNodeKey ¶
func (m *FlowInstanceDataMutation) ResetNodeKey()
ResetNodeKey resets all changes to the "node_key" field.
func (*FlowInstanceDataMutation) ResetType ¶
func (m *FlowInstanceDataMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*FlowInstanceDataMutation) ResetUpdatedAt ¶
func (m *FlowInstanceDataMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowInstanceDataMutation) SetCreatedAt ¶
func (m *FlowInstanceDataMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceDataMutation) SetData ¶
func (m *FlowInstanceDataMutation) SetData(value map[string]interface{})
SetData sets the "data" field.
func (*FlowInstanceDataMutation) SetDeletedAt ¶
func (m *FlowInstanceDataMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataMutation) SetField ¶
func (m *FlowInstanceDataMutation) 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 (*FlowInstanceDataMutation) SetFlowInstanceID ¶
func (m *FlowInstanceDataMutation) SetFlowInstanceID(s string)
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataMutation) SetFlowNodeInstanceID ¶
func (m *FlowInstanceDataMutation) SetFlowNodeInstanceID(s string)
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataMutation) SetID ¶
func (m *FlowInstanceDataMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowInstanceData entities.
func (*FlowInstanceDataMutation) SetNodeKey ¶
func (m *FlowInstanceDataMutation) SetNodeKey(s string)
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataMutation) SetType ¶
func (m *FlowInstanceDataMutation) SetType(i int8)
SetType sets the "type" field.
func (*FlowInstanceDataMutation) SetUpdatedAt ¶
func (m *FlowInstanceDataMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (FlowInstanceDataMutation) Tx ¶
func (m FlowInstanceDataMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowInstanceDataMutation) Type ¶
func (m *FlowInstanceDataMutation) Type() string
Type returns the node type of this mutation (FlowInstanceData).
func (*FlowInstanceDataMutation) UpdatedAt ¶
func (m *FlowInstanceDataMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowInstanceDataMutation) Where ¶
func (m *FlowInstanceDataMutation) Where(ps ...predicate.FlowInstanceData)
Where appends a list predicates to the FlowInstanceDataMutation builder.
type FlowInstanceDataQuery ¶
type FlowInstanceDataQuery struct {
// contains filtered or unexported fields
}
FlowInstanceDataQuery is the builder for querying FlowInstanceData entities.
func (*FlowInstanceDataQuery) All ¶
func (fidq *FlowInstanceDataQuery) All(ctx context.Context) ([]*FlowInstanceData, error)
All executes the query and returns a list of FlowInstanceDataSlice.
func (*FlowInstanceDataQuery) AllX ¶
func (fidq *FlowInstanceDataQuery) AllX(ctx context.Context) []*FlowInstanceData
AllX is like All, but panics if an error occurs.
func (*FlowInstanceDataQuery) Clone ¶
func (fidq *FlowInstanceDataQuery) Clone() *FlowInstanceDataQuery
Clone returns a duplicate of the FlowInstanceDataQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowInstanceDataQuery) Count ¶
func (fidq *FlowInstanceDataQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowInstanceDataQuery) CountX ¶
func (fidq *FlowInstanceDataQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowInstanceDataQuery) Exist ¶
func (fidq *FlowInstanceDataQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowInstanceDataQuery) ExistX ¶
func (fidq *FlowInstanceDataQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowInstanceDataQuery) First ¶
func (fidq *FlowInstanceDataQuery) First(ctx context.Context) (*FlowInstanceData, error)
First returns the first FlowInstanceData entity from the query. Returns a *NotFoundError when no FlowInstanceData was found.
func (*FlowInstanceDataQuery) FirstID ¶
func (fidq *FlowInstanceDataQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowInstanceData ID from the query. Returns a *NotFoundError when no FlowInstanceData ID was found.
func (*FlowInstanceDataQuery) FirstIDX ¶
func (fidq *FlowInstanceDataQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowInstanceDataQuery) FirstX ¶
func (fidq *FlowInstanceDataQuery) FirstX(ctx context.Context) *FlowInstanceData
FirstX is like First, but panics if an error occurs.
func (*FlowInstanceDataQuery) GroupBy ¶
func (fidq *FlowInstanceDataQuery) GroupBy(field string, fields ...string) *FlowInstanceDataGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowInstanceData.Query(). GroupBy(flowinstancedata.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowInstanceDataQuery) IDs ¶
func (fidq *FlowInstanceDataQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowInstanceData IDs.
func (*FlowInstanceDataQuery) IDsX ¶
func (fidq *FlowInstanceDataQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowInstanceDataQuery) Limit ¶
func (fidq *FlowInstanceDataQuery) Limit(limit int) *FlowInstanceDataQuery
Limit adds a limit step to the query.
func (*FlowInstanceDataQuery) Offset ¶
func (fidq *FlowInstanceDataQuery) Offset(offset int) *FlowInstanceDataQuery
Offset adds an offset step to the query.
func (*FlowInstanceDataQuery) Only ¶
func (fidq *FlowInstanceDataQuery) Only(ctx context.Context) (*FlowInstanceData, error)
Only returns a single FlowInstanceData entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowInstanceData entity is found. Returns a *NotFoundError when no FlowInstanceData entities are found.
func (*FlowInstanceDataQuery) OnlyID ¶
func (fidq *FlowInstanceDataQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowInstanceData ID in the query. Returns a *NotSingularError when more than one FlowInstanceData ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowInstanceDataQuery) OnlyIDX ¶
func (fidq *FlowInstanceDataQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowInstanceDataQuery) OnlyX ¶
func (fidq *FlowInstanceDataQuery) OnlyX(ctx context.Context) *FlowInstanceData
OnlyX is like Only, but panics if an error occurs.
func (*FlowInstanceDataQuery) Order ¶
func (fidq *FlowInstanceDataQuery) Order(o ...OrderFunc) *FlowInstanceDataQuery
Order adds an order step to the query.
func (*FlowInstanceDataQuery) Select ¶
func (fidq *FlowInstanceDataQuery) Select(fields ...string) *FlowInstanceDataSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowInstanceData.Query(). Select(flowinstancedata.FieldCreatedAt). Scan(ctx, &v)
func (*FlowInstanceDataQuery) Unique ¶
func (fidq *FlowInstanceDataQuery) Unique(unique bool) *FlowInstanceDataQuery
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 (*FlowInstanceDataQuery) Where ¶
func (fidq *FlowInstanceDataQuery) Where(ps ...predicate.FlowInstanceData) *FlowInstanceDataQuery
Where adds a new predicate for the FlowInstanceDataQuery builder.
type FlowInstanceDataSelect ¶
type FlowInstanceDataSelect struct { *FlowInstanceDataQuery // contains filtered or unexported fields }
FlowInstanceDataSelect is the builder for selecting fields of FlowInstanceData entities.
func (*FlowInstanceDataSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowInstanceDataSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowInstanceDataSelect) Scan ¶
func (fids *FlowInstanceDataSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowInstanceDataSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowInstanceDataSlice ¶
type FlowInstanceDataSlice []*FlowInstanceData
FlowInstanceDataSlice is a parsable slice of FlowInstanceData.
type FlowInstanceDataUpdate ¶
type FlowInstanceDataUpdate struct {
// contains filtered or unexported fields
}
FlowInstanceDataUpdate is the builder for updating FlowInstanceData entities.
func (*FlowInstanceDataUpdate) AddDeletedAt ¶
func (fidu *FlowInstanceDataUpdate) AddDeletedAt(i int64) *FlowInstanceDataUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceDataUpdate) AddType ¶
func (fidu *FlowInstanceDataUpdate) AddType(i int8) *FlowInstanceDataUpdate
AddType adds i to the "type" field.
func (*FlowInstanceDataUpdate) AddUpdatedAt ¶
func (fidu *FlowInstanceDataUpdate) AddUpdatedAt(i int64) *FlowInstanceDataUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceDataUpdate) ClearData ¶
func (fidu *FlowInstanceDataUpdate) ClearData() *FlowInstanceDataUpdate
ClearData clears the value of the "data" field.
func (*FlowInstanceDataUpdate) ClearDeletedAt ¶
func (fidu *FlowInstanceDataUpdate) ClearDeletedAt() *FlowInstanceDataUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataUpdate) ClearFlowNodeInstanceID ¶
func (fidu *FlowInstanceDataUpdate) ClearFlowNodeInstanceID() *FlowInstanceDataUpdate
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataUpdate) ClearNodeKey ¶
func (fidu *FlowInstanceDataUpdate) ClearNodeKey() *FlowInstanceDataUpdate
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataUpdate) Exec ¶
func (fidu *FlowInstanceDataUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceDataUpdate) ExecX ¶
func (fidu *FlowInstanceDataUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataUpdate) Mutation ¶
func (fidu *FlowInstanceDataUpdate) Mutation() *FlowInstanceDataMutation
Mutation returns the FlowInstanceDataMutation object of the builder.
func (*FlowInstanceDataUpdate) Save ¶
func (fidu *FlowInstanceDataUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowInstanceDataUpdate) SaveX ¶
func (fidu *FlowInstanceDataUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowInstanceDataUpdate) SetData ¶
func (fidu *FlowInstanceDataUpdate) SetData(m map[string]interface{}) *FlowInstanceDataUpdate
SetData sets the "data" field.
func (*FlowInstanceDataUpdate) SetDeletedAt ¶
func (fidu *FlowInstanceDataUpdate) SetDeletedAt(i int64) *FlowInstanceDataUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataUpdate) SetFlowInstanceID ¶
func (fidu *FlowInstanceDataUpdate) SetFlowInstanceID(s string) *FlowInstanceDataUpdate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataUpdate) SetFlowNodeInstanceID ¶
func (fidu *FlowInstanceDataUpdate) SetFlowNodeInstanceID(s string) *FlowInstanceDataUpdate
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataUpdate) SetNillableDeletedAt ¶
func (fidu *FlowInstanceDataUpdate) SetNillableDeletedAt(i *int64) *FlowInstanceDataUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceDataUpdate) SetNillableFlowNodeInstanceID ¶
func (fidu *FlowInstanceDataUpdate) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataUpdate
SetNillableFlowNodeInstanceID sets the "flow_node_instance_id" field if the given value is not nil.
func (*FlowInstanceDataUpdate) SetNillableNodeKey ¶
func (fidu *FlowInstanceDataUpdate) SetNillableNodeKey(s *string) *FlowInstanceDataUpdate
SetNillableNodeKey sets the "node_key" field if the given value is not nil.
func (*FlowInstanceDataUpdate) SetNillableType ¶
func (fidu *FlowInstanceDataUpdate) SetNillableType(i *int8) *FlowInstanceDataUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowInstanceDataUpdate) SetNodeKey ¶
func (fidu *FlowInstanceDataUpdate) SetNodeKey(s string) *FlowInstanceDataUpdate
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataUpdate) SetType ¶
func (fidu *FlowInstanceDataUpdate) SetType(i int8) *FlowInstanceDataUpdate
SetType sets the "type" field.
func (*FlowInstanceDataUpdate) SetUpdatedAt ¶
func (fidu *FlowInstanceDataUpdate) SetUpdatedAt(i int64) *FlowInstanceDataUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceDataUpdate) Where ¶
func (fidu *FlowInstanceDataUpdate) Where(ps ...predicate.FlowInstanceData) *FlowInstanceDataUpdate
Where appends a list predicates to the FlowInstanceDataUpdate builder.
type FlowInstanceDataUpdateOne ¶
type FlowInstanceDataUpdateOne struct {
// contains filtered or unexported fields
}
FlowInstanceDataUpdateOne is the builder for updating a single FlowInstanceData entity.
func (*FlowInstanceDataUpdateOne) AddDeletedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) AddDeletedAt(i int64) *FlowInstanceDataUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceDataUpdateOne) AddType ¶
func (fiduo *FlowInstanceDataUpdateOne) AddType(i int8) *FlowInstanceDataUpdateOne
AddType adds i to the "type" field.
func (*FlowInstanceDataUpdateOne) AddUpdatedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) AddUpdatedAt(i int64) *FlowInstanceDataUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceDataUpdateOne) ClearData ¶
func (fiduo *FlowInstanceDataUpdateOne) ClearData() *FlowInstanceDataUpdateOne
ClearData clears the value of the "data" field.
func (*FlowInstanceDataUpdateOne) ClearDeletedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) ClearDeletedAt() *FlowInstanceDataUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataUpdateOne) ClearFlowNodeInstanceID ¶
func (fiduo *FlowInstanceDataUpdateOne) ClearFlowNodeInstanceID() *FlowInstanceDataUpdateOne
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataUpdateOne) ClearNodeKey ¶
func (fiduo *FlowInstanceDataUpdateOne) ClearNodeKey() *FlowInstanceDataUpdateOne
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataUpdateOne) Exec ¶
func (fiduo *FlowInstanceDataUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowInstanceDataUpdateOne) ExecX ¶
func (fiduo *FlowInstanceDataUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataUpdateOne) Mutation ¶
func (fiduo *FlowInstanceDataUpdateOne) Mutation() *FlowInstanceDataMutation
Mutation returns the FlowInstanceDataMutation object of the builder.
func (*FlowInstanceDataUpdateOne) Save ¶
func (fiduo *FlowInstanceDataUpdateOne) Save(ctx context.Context) (*FlowInstanceData, error)
Save executes the query and returns the updated FlowInstanceData entity.
func (*FlowInstanceDataUpdateOne) SaveX ¶
func (fiduo *FlowInstanceDataUpdateOne) SaveX(ctx context.Context) *FlowInstanceData
SaveX is like Save, but panics if an error occurs.
func (*FlowInstanceDataUpdateOne) Select ¶
func (fiduo *FlowInstanceDataUpdateOne) Select(field string, fields ...string) *FlowInstanceDataUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowInstanceDataUpdateOne) SetData ¶
func (fiduo *FlowInstanceDataUpdateOne) SetData(m map[string]interface{}) *FlowInstanceDataUpdateOne
SetData sets the "data" field.
func (*FlowInstanceDataUpdateOne) SetDeletedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) SetDeletedAt(i int64) *FlowInstanceDataUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataUpdateOne) SetFlowInstanceID ¶
func (fiduo *FlowInstanceDataUpdateOne) SetFlowInstanceID(s string) *FlowInstanceDataUpdateOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataUpdateOne) SetFlowNodeInstanceID ¶
func (fiduo *FlowInstanceDataUpdateOne) SetFlowNodeInstanceID(s string) *FlowInstanceDataUpdateOne
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataUpdateOne) SetNillableDeletedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) SetNillableDeletedAt(i *int64) *FlowInstanceDataUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceDataUpdateOne) SetNillableFlowNodeInstanceID ¶
func (fiduo *FlowInstanceDataUpdateOne) SetNillableFlowNodeInstanceID(s *string) *FlowInstanceDataUpdateOne
SetNillableFlowNodeInstanceID sets the "flow_node_instance_id" field if the given value is not nil.
func (*FlowInstanceDataUpdateOne) SetNillableNodeKey ¶
func (fiduo *FlowInstanceDataUpdateOne) SetNillableNodeKey(s *string) *FlowInstanceDataUpdateOne
SetNillableNodeKey sets the "node_key" field if the given value is not nil.
func (*FlowInstanceDataUpdateOne) SetNillableType ¶
func (fiduo *FlowInstanceDataUpdateOne) SetNillableType(i *int8) *FlowInstanceDataUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowInstanceDataUpdateOne) SetNodeKey ¶
func (fiduo *FlowInstanceDataUpdateOne) SetNodeKey(s string) *FlowInstanceDataUpdateOne
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataUpdateOne) SetType ¶
func (fiduo *FlowInstanceDataUpdateOne) SetType(i int8) *FlowInstanceDataUpdateOne
SetType sets the "type" field.
func (*FlowInstanceDataUpdateOne) SetUpdatedAt ¶
func (fiduo *FlowInstanceDataUpdateOne) SetUpdatedAt(i int64) *FlowInstanceDataUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowInstanceDataUpsert ¶
FlowInstanceDataUpsert is the "OnConflict" setter.
func (*FlowInstanceDataUpsert) AddCreatedAt ¶
func (u *FlowInstanceDataUpsert) AddCreatedAt(v int64) *FlowInstanceDataUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceDataUpsert) AddDeletedAt ¶
func (u *FlowInstanceDataUpsert) AddDeletedAt(v int64) *FlowInstanceDataUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceDataUpsert) AddType ¶
func (u *FlowInstanceDataUpsert) AddType(v int8) *FlowInstanceDataUpsert
AddType adds v to the "type" field.
func (*FlowInstanceDataUpsert) AddUpdatedAt ¶
func (u *FlowInstanceDataUpsert) AddUpdatedAt(v int64) *FlowInstanceDataUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceDataUpsert) ClearData ¶
func (u *FlowInstanceDataUpsert) ClearData() *FlowInstanceDataUpsert
ClearData clears the value of the "data" field.
func (*FlowInstanceDataUpsert) ClearDeletedAt ¶
func (u *FlowInstanceDataUpsert) ClearDeletedAt() *FlowInstanceDataUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataUpsert) ClearFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsert) ClearFlowNodeInstanceID() *FlowInstanceDataUpsert
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsert) ClearNodeKey ¶
func (u *FlowInstanceDataUpsert) ClearNodeKey() *FlowInstanceDataUpsert
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataUpsert) SetCreatedAt ¶
func (u *FlowInstanceDataUpsert) SetCreatedAt(v int64) *FlowInstanceDataUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceDataUpsert) SetData ¶
func (u *FlowInstanceDataUpsert) SetData(v map[string]interface{}) *FlowInstanceDataUpsert
SetData sets the "data" field.
func (*FlowInstanceDataUpsert) SetDeletedAt ¶
func (u *FlowInstanceDataUpsert) SetDeletedAt(v int64) *FlowInstanceDataUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataUpsert) SetFlowInstanceID ¶
func (u *FlowInstanceDataUpsert) SetFlowInstanceID(v string) *FlowInstanceDataUpsert
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataUpsert) SetFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsert) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsert
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsert) SetNodeKey ¶
func (u *FlowInstanceDataUpsert) SetNodeKey(v string) *FlowInstanceDataUpsert
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataUpsert) SetType ¶
func (u *FlowInstanceDataUpsert) SetType(v int8) *FlowInstanceDataUpsert
SetType sets the "type" field.
func (*FlowInstanceDataUpsert) SetUpdatedAt ¶
func (u *FlowInstanceDataUpsert) SetUpdatedAt(v int64) *FlowInstanceDataUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceDataUpsert) UpdateCreatedAt ¶
func (u *FlowInstanceDataUpsert) UpdateCreatedAt() *FlowInstanceDataUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateData ¶
func (u *FlowInstanceDataUpsert) UpdateData() *FlowInstanceDataUpsert
UpdateData sets the "data" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateDeletedAt ¶
func (u *FlowInstanceDataUpsert) UpdateDeletedAt() *FlowInstanceDataUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateFlowInstanceID ¶
func (u *FlowInstanceDataUpsert) UpdateFlowInstanceID() *FlowInstanceDataUpsert
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsert) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsert
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateNodeKey ¶
func (u *FlowInstanceDataUpsert) UpdateNodeKey() *FlowInstanceDataUpsert
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateType ¶
func (u *FlowInstanceDataUpsert) UpdateType() *FlowInstanceDataUpsert
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowInstanceDataUpsert) UpdateUpdatedAt ¶
func (u *FlowInstanceDataUpsert) UpdateUpdatedAt() *FlowInstanceDataUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstanceDataUpsertBulk ¶
type FlowInstanceDataUpsertBulk struct {
// contains filtered or unexported fields
}
FlowInstanceDataUpsertBulk is the builder for "upsert"-ing a bulk of FlowInstanceData nodes.
func (*FlowInstanceDataUpsertBulk) AddCreatedAt ¶
func (u *FlowInstanceDataUpsertBulk) AddCreatedAt(v int64) *FlowInstanceDataUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceDataUpsertBulk) AddDeletedAt ¶
func (u *FlowInstanceDataUpsertBulk) AddDeletedAt(v int64) *FlowInstanceDataUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceDataUpsertBulk) AddType ¶
func (u *FlowInstanceDataUpsertBulk) AddType(v int8) *FlowInstanceDataUpsertBulk
AddType adds v to the "type" field.
func (*FlowInstanceDataUpsertBulk) AddUpdatedAt ¶
func (u *FlowInstanceDataUpsertBulk) AddUpdatedAt(v int64) *FlowInstanceDataUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceDataUpsertBulk) ClearData ¶
func (u *FlowInstanceDataUpsertBulk) ClearData() *FlowInstanceDataUpsertBulk
ClearData clears the value of the "data" field.
func (*FlowInstanceDataUpsertBulk) ClearDeletedAt ¶
func (u *FlowInstanceDataUpsertBulk) ClearDeletedAt() *FlowInstanceDataUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataUpsertBulk) ClearFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertBulk) ClearFlowNodeInstanceID() *FlowInstanceDataUpsertBulk
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsertBulk) ClearNodeKey ¶
func (u *FlowInstanceDataUpsertBulk) ClearNodeKey() *FlowInstanceDataUpsertBulk
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataUpsertBulk) DoNothing ¶
func (u *FlowInstanceDataUpsertBulk) DoNothing() *FlowInstanceDataUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowInstanceDataUpsertBulk) Exec ¶
func (u *FlowInstanceDataUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceDataUpsertBulk) ExecX ¶
func (u *FlowInstanceDataUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataUpsertBulk) Ignore ¶
func (u *FlowInstanceDataUpsertBulk) Ignore() *FlowInstanceDataUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowInstanceDataUpsertBulk) SetCreatedAt ¶
func (u *FlowInstanceDataUpsertBulk) SetCreatedAt(v int64) *FlowInstanceDataUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceDataUpsertBulk) SetData ¶
func (u *FlowInstanceDataUpsertBulk) SetData(v map[string]interface{}) *FlowInstanceDataUpsertBulk
SetData sets the "data" field.
func (*FlowInstanceDataUpsertBulk) SetDeletedAt ¶
func (u *FlowInstanceDataUpsertBulk) SetDeletedAt(v int64) *FlowInstanceDataUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataUpsertBulk) SetFlowInstanceID ¶
func (u *FlowInstanceDataUpsertBulk) SetFlowInstanceID(v string) *FlowInstanceDataUpsertBulk
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataUpsertBulk) SetFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertBulk) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsertBulk
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsertBulk) SetNodeKey ¶
func (u *FlowInstanceDataUpsertBulk) SetNodeKey(v string) *FlowInstanceDataUpsertBulk
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataUpsertBulk) SetType ¶
func (u *FlowInstanceDataUpsertBulk) SetType(v int8) *FlowInstanceDataUpsertBulk
SetType sets the "type" field.
func (*FlowInstanceDataUpsertBulk) SetUpdatedAt ¶
func (u *FlowInstanceDataUpsertBulk) SetUpdatedAt(v int64) *FlowInstanceDataUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceDataUpsertBulk) Update ¶
func (u *FlowInstanceDataUpsertBulk) Update(set func(*FlowInstanceDataUpsert)) *FlowInstanceDataUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowInstanceDataCreateBulk.OnConflict documentation for more info.
func (*FlowInstanceDataUpsertBulk) UpdateCreatedAt ¶
func (u *FlowInstanceDataUpsertBulk) UpdateCreatedAt() *FlowInstanceDataUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateData ¶
func (u *FlowInstanceDataUpsertBulk) UpdateData() *FlowInstanceDataUpsertBulk
UpdateData sets the "data" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateDeletedAt ¶
func (u *FlowInstanceDataUpsertBulk) UpdateDeletedAt() *FlowInstanceDataUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateFlowInstanceID ¶
func (u *FlowInstanceDataUpsertBulk) UpdateFlowInstanceID() *FlowInstanceDataUpsertBulk
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertBulk) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsertBulk
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateNewValues ¶
func (u *FlowInstanceDataUpsertBulk) UpdateNewValues() *FlowInstanceDataUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowinstancedata.FieldID) }), ). Exec(ctx)
func (*FlowInstanceDataUpsertBulk) UpdateNodeKey ¶
func (u *FlowInstanceDataUpsertBulk) UpdateNodeKey() *FlowInstanceDataUpsertBulk
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateType ¶
func (u *FlowInstanceDataUpsertBulk) UpdateType() *FlowInstanceDataUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowInstanceDataUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowInstanceDataUpsertBulk) UpdateUpdatedAt() *FlowInstanceDataUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstanceDataUpsertOne ¶
type FlowInstanceDataUpsertOne struct {
// contains filtered or unexported fields
}
FlowInstanceDataUpsertOne is the builder for "upsert"-ing
one FlowInstanceData node.
func (*FlowInstanceDataUpsertOne) AddCreatedAt ¶
func (u *FlowInstanceDataUpsertOne) AddCreatedAt(v int64) *FlowInstanceDataUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceDataUpsertOne) AddDeletedAt ¶
func (u *FlowInstanceDataUpsertOne) AddDeletedAt(v int64) *FlowInstanceDataUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceDataUpsertOne) AddType ¶
func (u *FlowInstanceDataUpsertOne) AddType(v int8) *FlowInstanceDataUpsertOne
AddType adds v to the "type" field.
func (*FlowInstanceDataUpsertOne) AddUpdatedAt ¶
func (u *FlowInstanceDataUpsertOne) AddUpdatedAt(v int64) *FlowInstanceDataUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceDataUpsertOne) ClearData ¶
func (u *FlowInstanceDataUpsertOne) ClearData() *FlowInstanceDataUpsertOne
ClearData clears the value of the "data" field.
func (*FlowInstanceDataUpsertOne) ClearDeletedAt ¶
func (u *FlowInstanceDataUpsertOne) ClearDeletedAt() *FlowInstanceDataUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceDataUpsertOne) ClearFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertOne) ClearFlowNodeInstanceID() *FlowInstanceDataUpsertOne
ClearFlowNodeInstanceID clears the value of the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsertOne) ClearNodeKey ¶
func (u *FlowInstanceDataUpsertOne) ClearNodeKey() *FlowInstanceDataUpsertOne
ClearNodeKey clears the value of the "node_key" field.
func (*FlowInstanceDataUpsertOne) DoNothing ¶
func (u *FlowInstanceDataUpsertOne) DoNothing() *FlowInstanceDataUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowInstanceDataUpsertOne) Exec ¶
func (u *FlowInstanceDataUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceDataUpsertOne) ExecX ¶
func (u *FlowInstanceDataUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDataUpsertOne) ID ¶
func (u *FlowInstanceDataUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowInstanceDataUpsertOne) IDX ¶
func (u *FlowInstanceDataUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowInstanceDataUpsertOne) Ignore ¶
func (u *FlowInstanceDataUpsertOne) Ignore() *FlowInstanceDataUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowInstanceDataUpsertOne) SetCreatedAt ¶
func (u *FlowInstanceDataUpsertOne) SetCreatedAt(v int64) *FlowInstanceDataUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceDataUpsertOne) SetData ¶
func (u *FlowInstanceDataUpsertOne) SetData(v map[string]interface{}) *FlowInstanceDataUpsertOne
SetData sets the "data" field.
func (*FlowInstanceDataUpsertOne) SetDeletedAt ¶
func (u *FlowInstanceDataUpsertOne) SetDeletedAt(v int64) *FlowInstanceDataUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceDataUpsertOne) SetFlowInstanceID ¶
func (u *FlowInstanceDataUpsertOne) SetFlowInstanceID(v string) *FlowInstanceDataUpsertOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowInstanceDataUpsertOne) SetFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertOne) SetFlowNodeInstanceID(v string) *FlowInstanceDataUpsertOne
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowInstanceDataUpsertOne) SetNodeKey ¶
func (u *FlowInstanceDataUpsertOne) SetNodeKey(v string) *FlowInstanceDataUpsertOne
SetNodeKey sets the "node_key" field.
func (*FlowInstanceDataUpsertOne) SetType ¶
func (u *FlowInstanceDataUpsertOne) SetType(v int8) *FlowInstanceDataUpsertOne
SetType sets the "type" field.
func (*FlowInstanceDataUpsertOne) SetUpdatedAt ¶
func (u *FlowInstanceDataUpsertOne) SetUpdatedAt(v int64) *FlowInstanceDataUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceDataUpsertOne) Update ¶
func (u *FlowInstanceDataUpsertOne) Update(set func(*FlowInstanceDataUpsert)) *FlowInstanceDataUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowInstanceDataCreate.OnConflict documentation for more info.
func (*FlowInstanceDataUpsertOne) UpdateCreatedAt ¶
func (u *FlowInstanceDataUpsertOne) UpdateCreatedAt() *FlowInstanceDataUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateData ¶
func (u *FlowInstanceDataUpsertOne) UpdateData() *FlowInstanceDataUpsertOne
UpdateData sets the "data" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateDeletedAt ¶
func (u *FlowInstanceDataUpsertOne) UpdateDeletedAt() *FlowInstanceDataUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateFlowInstanceID ¶
func (u *FlowInstanceDataUpsertOne) UpdateFlowInstanceID() *FlowInstanceDataUpsertOne
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateFlowNodeInstanceID ¶
func (u *FlowInstanceDataUpsertOne) UpdateFlowNodeInstanceID() *FlowInstanceDataUpsertOne
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateNewValues ¶
func (u *FlowInstanceDataUpsertOne) UpdateNewValues() *FlowInstanceDataUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowInstanceData.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowinstancedata.FieldID) }), ). Exec(ctx)
func (*FlowInstanceDataUpsertOne) UpdateNodeKey ¶
func (u *FlowInstanceDataUpsertOne) UpdateNodeKey() *FlowInstanceDataUpsertOne
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateType ¶
func (u *FlowInstanceDataUpsertOne) UpdateType() *FlowInstanceDataUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowInstanceDataUpsertOne) UpdateUpdatedAt ¶
func (u *FlowInstanceDataUpsertOne) UpdateUpdatedAt() *FlowInstanceDataUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstanceDelete ¶
type FlowInstanceDelete struct {
// contains filtered or unexported fields
}
FlowInstanceDelete is the builder for deleting a FlowInstance entity.
func (*FlowInstanceDelete) Exec ¶
func (fid *FlowInstanceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowInstanceDelete) ExecX ¶
func (fid *FlowInstanceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceDelete) Where ¶
func (fid *FlowInstanceDelete) Where(ps ...predicate.FlowInstance) *FlowInstanceDelete
Where appends a list predicates to the FlowInstanceDelete builder.
type FlowInstanceDeleteOne ¶
type FlowInstanceDeleteOne struct {
// contains filtered or unexported fields
}
FlowInstanceDeleteOne is the builder for deleting a single FlowInstance entity.
func (*FlowInstanceDeleteOne) Exec ¶
func (fido *FlowInstanceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowInstanceDeleteOne) ExecX ¶
func (fido *FlowInstanceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowInstanceEdges ¶
type FlowInstanceEdges struct { // FlowDeployment holds the value of the flow_deployment edge. FlowDeployment *FlowDeployment `json:"flow_deployment,omitempty"` // FlowNodeInstances holds the value of the flow_node_instances edge. FlowNodeInstances []*FlowNodeInstance `json:"flow_node_instances,omitempty"` // contains filtered or unexported fields }
FlowInstanceEdges holds the relations/edges for other nodes in the graph.
func (FlowInstanceEdges) FlowDeploymentOrErr ¶
func (e FlowInstanceEdges) FlowDeploymentOrErr() (*FlowDeployment, error)
FlowDeploymentOrErr returns the FlowDeployment value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (FlowInstanceEdges) FlowNodeInstancesOrErr ¶
func (e FlowInstanceEdges) FlowNodeInstancesOrErr() ([]*FlowNodeInstance, error)
FlowNodeInstancesOrErr returns the FlowNodeInstances value or an error if the edge was not loaded in eager-loading.
type FlowInstanceGroupBy ¶
type FlowInstanceGroupBy struct {
// contains filtered or unexported fields
}
FlowInstanceGroupBy is the group-by builder for FlowInstance entities.
func (*FlowInstanceGroupBy) Aggregate ¶
func (figb *FlowInstanceGroupBy) Aggregate(fns ...AggregateFunc) *FlowInstanceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowInstanceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowInstanceGroupBy) Scan ¶
func (figb *FlowInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowInstanceGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowInstanceMutation ¶
type FlowInstanceMutation struct {
// contains filtered or unexported fields
}
FlowInstanceMutation represents an operation that mutates the FlowInstance nodes in the graph.
func (*FlowInstanceMutation) AddCreatedAt ¶
func (m *FlowInstanceMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowInstanceMutation) AddDeletedAt ¶
func (m *FlowInstanceMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceMutation) AddField ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) AddFlowNodeInstanceIDs ¶
func (m *FlowInstanceMutation) AddFlowNodeInstanceIDs(ids ...string)
AddFlowNodeInstanceIDs adds the "flow_node_instances" edge to the FlowNodeInstance entity by ids.
func (*FlowInstanceMutation) AddStatus ¶
func (m *FlowInstanceMutation) AddStatus(i int8)
AddStatus adds i to the "status" field.
func (*FlowInstanceMutation) AddUpdatedAt ¶
func (m *FlowInstanceMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceMutation) AddedCreatedAt ¶
func (m *FlowInstanceMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowInstanceMutation) AddedDeletedAt ¶
func (m *FlowInstanceMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowInstanceMutation) AddedEdges ¶
func (m *FlowInstanceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowInstanceMutation) AddedField ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) AddedFields ¶
func (m *FlowInstanceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowInstanceMutation) AddedIDs ¶
func (m *FlowInstanceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowInstanceMutation) AddedStatus ¶
func (m *FlowInstanceMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*FlowInstanceMutation) AddedUpdatedAt ¶
func (m *FlowInstanceMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowInstanceMutation) ClearDeletedAt ¶
func (m *FlowInstanceMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceMutation) ClearEdge ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) ClearField ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) ClearFlowDeployment ¶
func (m *FlowInstanceMutation) ClearFlowDeployment()
ClearFlowDeployment clears the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceMutation) ClearFlowNodeInstances ¶
func (m *FlowInstanceMutation) ClearFlowNodeInstances()
ClearFlowNodeInstances clears the "flow_node_instances" edge to the FlowNodeInstance entity.
func (*FlowInstanceMutation) ClearedEdges ¶
func (m *FlowInstanceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowInstanceMutation) ClearedFields ¶
func (m *FlowInstanceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowInstanceMutation) Client ¶
func (m FlowInstanceMutation) 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 (*FlowInstanceMutation) CreatedAt ¶
func (m *FlowInstanceMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowInstanceMutation) DeletedAt ¶
func (m *FlowInstanceMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowInstanceMutation) DeletedAtCleared ¶
func (m *FlowInstanceMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowInstanceMutation) EdgeCleared ¶
func (m *FlowInstanceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowInstanceMutation) Field ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) FieldCleared ¶
func (m *FlowInstanceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowInstanceMutation) Fields ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) FlowDeploymentCleared ¶
func (m *FlowInstanceMutation) FlowDeploymentCleared() bool
FlowDeploymentCleared reports if the "flow_deployment" edge to the FlowDeployment entity was cleared.
func (*FlowInstanceMutation) FlowDeploymentID ¶
func (m *FlowInstanceMutation) FlowDeploymentID() (r string, exists bool)
FlowDeploymentID returns the value of the "flow_deployment_id" field in the mutation.
func (*FlowInstanceMutation) FlowDeploymentIDs ¶
func (m *FlowInstanceMutation) FlowDeploymentIDs() (ids []string)
FlowDeploymentIDs returns the "flow_deployment" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FlowDeploymentID instead. It exists only for internal usage by the builders.
func (*FlowInstanceMutation) FlowNodeInstancesCleared ¶
func (m *FlowInstanceMutation) FlowNodeInstancesCleared() bool
FlowNodeInstancesCleared reports if the "flow_node_instances" edge to the FlowNodeInstance entity was cleared.
func (*FlowInstanceMutation) FlowNodeInstancesIDs ¶
func (m *FlowInstanceMutation) FlowNodeInstancesIDs() (ids []string)
FlowNodeInstancesIDs returns the "flow_node_instances" edge IDs in the mutation.
func (*FlowInstanceMutation) ID ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) IDs ¶
func (m *FlowInstanceMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowInstanceMutation) OldCreatedAt ¶
func (m *FlowInstanceMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) OldDeletedAt ¶
func (m *FlowInstanceMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) 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 (*FlowInstanceMutation) OldFlowDeploymentID ¶
func (m *FlowInstanceMutation) OldFlowDeploymentID(ctx context.Context) (v string, err error)
OldFlowDeploymentID returns the old "flow_deployment_id" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) OldRefID ¶
func (m *FlowInstanceMutation) OldRefID(ctx context.Context) (v string, err error)
OldRefID returns the old "ref_id" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) OldStatus ¶
func (m *FlowInstanceMutation) OldStatus(ctx context.Context) (v int8, err error)
OldStatus returns the old "status" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) OldUpdatedAt ¶
func (m *FlowInstanceMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowInstance entity. If the FlowInstance 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 (*FlowInstanceMutation) Op ¶
func (m *FlowInstanceMutation) Op() Op
Op returns the operation name.
func (*FlowInstanceMutation) RefID ¶
func (m *FlowInstanceMutation) RefID() (r string, exists bool)
RefID returns the value of the "ref_id" field in the mutation.
func (*FlowInstanceMutation) RemoveFlowNodeInstanceIDs ¶
func (m *FlowInstanceMutation) RemoveFlowNodeInstanceIDs(ids ...string)
RemoveFlowNodeInstanceIDs removes the "flow_node_instances" edge to the FlowNodeInstance entity by IDs.
func (*FlowInstanceMutation) RemovedEdges ¶
func (m *FlowInstanceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowInstanceMutation) RemovedFlowNodeInstancesIDs ¶
func (m *FlowInstanceMutation) RemovedFlowNodeInstancesIDs() (ids []string)
RemovedFlowNodeInstances returns the removed IDs of the "flow_node_instances" edge to the FlowNodeInstance entity.
func (*FlowInstanceMutation) RemovedIDs ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) ResetCreatedAt ¶
func (m *FlowInstanceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowInstanceMutation) ResetDeletedAt ¶
func (m *FlowInstanceMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowInstanceMutation) ResetEdge ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) ResetField ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) ResetFlowDeployment ¶
func (m *FlowInstanceMutation) ResetFlowDeployment()
ResetFlowDeployment resets all changes to the "flow_deployment" edge.
func (*FlowInstanceMutation) ResetFlowDeploymentID ¶
func (m *FlowInstanceMutation) ResetFlowDeploymentID()
ResetFlowDeploymentID resets all changes to the "flow_deployment_id" field.
func (*FlowInstanceMutation) ResetFlowNodeInstances ¶
func (m *FlowInstanceMutation) ResetFlowNodeInstances()
ResetFlowNodeInstances resets all changes to the "flow_node_instances" edge.
func (*FlowInstanceMutation) ResetRefID ¶
func (m *FlowInstanceMutation) ResetRefID()
ResetRefID resets all changes to the "ref_id" field.
func (*FlowInstanceMutation) ResetStatus ¶
func (m *FlowInstanceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FlowInstanceMutation) ResetUpdatedAt ¶
func (m *FlowInstanceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowInstanceMutation) SetCreatedAt ¶
func (m *FlowInstanceMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceMutation) SetDeletedAt ¶
func (m *FlowInstanceMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceMutation) SetField ¶
func (m *FlowInstanceMutation) 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 (*FlowInstanceMutation) SetFlowDeploymentID ¶
func (m *FlowInstanceMutation) SetFlowDeploymentID(s string)
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceMutation) SetID ¶
func (m *FlowInstanceMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowInstance entities.
func (*FlowInstanceMutation) SetRefID ¶
func (m *FlowInstanceMutation) SetRefID(s string)
SetRefID sets the "ref_id" field.
func (*FlowInstanceMutation) SetStatus ¶
func (m *FlowInstanceMutation) SetStatus(i int8)
SetStatus sets the "status" field.
func (*FlowInstanceMutation) SetUpdatedAt ¶
func (m *FlowInstanceMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceMutation) Status ¶
func (m *FlowInstanceMutation) Status() (r int8, exists bool)
Status returns the value of the "status" field in the mutation.
func (FlowInstanceMutation) Tx ¶
func (m FlowInstanceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowInstanceMutation) Type ¶
func (m *FlowInstanceMutation) Type() string
Type returns the node type of this mutation (FlowInstance).
func (*FlowInstanceMutation) UpdatedAt ¶
func (m *FlowInstanceMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowInstanceMutation) Where ¶
func (m *FlowInstanceMutation) Where(ps ...predicate.FlowInstance)
Where appends a list predicates to the FlowInstanceMutation builder.
type FlowInstanceQuery ¶
type FlowInstanceQuery struct {
// contains filtered or unexported fields
}
FlowInstanceQuery is the builder for querying FlowInstance entities.
func (*FlowInstanceQuery) All ¶
func (fiq *FlowInstanceQuery) All(ctx context.Context) ([]*FlowInstance, error)
All executes the query and returns a list of FlowInstances.
func (*FlowInstanceQuery) AllX ¶
func (fiq *FlowInstanceQuery) AllX(ctx context.Context) []*FlowInstance
AllX is like All, but panics if an error occurs.
func (*FlowInstanceQuery) Clone ¶
func (fiq *FlowInstanceQuery) Clone() *FlowInstanceQuery
Clone returns a duplicate of the FlowInstanceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowInstanceQuery) Count ¶
func (fiq *FlowInstanceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowInstanceQuery) CountX ¶
func (fiq *FlowInstanceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowInstanceQuery) Exist ¶
func (fiq *FlowInstanceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowInstanceQuery) ExistX ¶
func (fiq *FlowInstanceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowInstanceQuery) First ¶
func (fiq *FlowInstanceQuery) First(ctx context.Context) (*FlowInstance, error)
First returns the first FlowInstance entity from the query. Returns a *NotFoundError when no FlowInstance was found.
func (*FlowInstanceQuery) FirstID ¶
func (fiq *FlowInstanceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowInstance ID from the query. Returns a *NotFoundError when no FlowInstance ID was found.
func (*FlowInstanceQuery) FirstIDX ¶
func (fiq *FlowInstanceQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowInstanceQuery) FirstX ¶
func (fiq *FlowInstanceQuery) FirstX(ctx context.Context) *FlowInstance
FirstX is like First, but panics if an error occurs.
func (*FlowInstanceQuery) GroupBy ¶
func (fiq *FlowInstanceQuery) GroupBy(field string, fields ...string) *FlowInstanceGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowInstance.Query(). GroupBy(flowinstance.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowInstanceQuery) IDs ¶
func (fiq *FlowInstanceQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowInstance IDs.
func (*FlowInstanceQuery) IDsX ¶
func (fiq *FlowInstanceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowInstanceQuery) Limit ¶
func (fiq *FlowInstanceQuery) Limit(limit int) *FlowInstanceQuery
Limit adds a limit step to the query.
func (*FlowInstanceQuery) Offset ¶
func (fiq *FlowInstanceQuery) Offset(offset int) *FlowInstanceQuery
Offset adds an offset step to the query.
func (*FlowInstanceQuery) Only ¶
func (fiq *FlowInstanceQuery) Only(ctx context.Context) (*FlowInstance, error)
Only returns a single FlowInstance entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowInstance entity is found. Returns a *NotFoundError when no FlowInstance entities are found.
func (*FlowInstanceQuery) OnlyID ¶
func (fiq *FlowInstanceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowInstance ID in the query. Returns a *NotSingularError when more than one FlowInstance ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowInstanceQuery) OnlyIDX ¶
func (fiq *FlowInstanceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowInstanceQuery) OnlyX ¶
func (fiq *FlowInstanceQuery) OnlyX(ctx context.Context) *FlowInstance
OnlyX is like Only, but panics if an error occurs.
func (*FlowInstanceQuery) Order ¶
func (fiq *FlowInstanceQuery) Order(o ...OrderFunc) *FlowInstanceQuery
Order adds an order step to the query.
func (*FlowInstanceQuery) QueryFlowDeployment ¶
func (fiq *FlowInstanceQuery) QueryFlowDeployment() *FlowDeploymentQuery
QueryFlowDeployment chains the current query on the "flow_deployment" edge.
func (*FlowInstanceQuery) QueryFlowNodeInstances ¶
func (fiq *FlowInstanceQuery) QueryFlowNodeInstances() *FlowNodeInstanceQuery
QueryFlowNodeInstances chains the current query on the "flow_node_instances" edge.
func (*FlowInstanceQuery) Select ¶
func (fiq *FlowInstanceQuery) Select(fields ...string) *FlowInstanceSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowInstance.Query(). Select(flowinstance.FieldCreatedAt). Scan(ctx, &v)
func (*FlowInstanceQuery) Unique ¶
func (fiq *FlowInstanceQuery) Unique(unique bool) *FlowInstanceQuery
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 (*FlowInstanceQuery) Where ¶
func (fiq *FlowInstanceQuery) Where(ps ...predicate.FlowInstance) *FlowInstanceQuery
Where adds a new predicate for the FlowInstanceQuery builder.
func (*FlowInstanceQuery) WithFlowDeployment ¶
func (fiq *FlowInstanceQuery) WithFlowDeployment(opts ...func(*FlowDeploymentQuery)) *FlowInstanceQuery
WithFlowDeployment tells the query-builder to eager-load the nodes that are connected to the "flow_deployment" edge. The optional arguments are used to configure the query builder of the edge.
func (*FlowInstanceQuery) WithFlowNodeInstances ¶
func (fiq *FlowInstanceQuery) WithFlowNodeInstances(opts ...func(*FlowNodeInstanceQuery)) *FlowInstanceQuery
WithFlowNodeInstances tells the query-builder to eager-load the nodes that are connected to the "flow_node_instances" edge. The optional arguments are used to configure the query builder of the edge.
type FlowInstanceSelect ¶
type FlowInstanceSelect struct { *FlowInstanceQuery // contains filtered or unexported fields }
FlowInstanceSelect is the builder for selecting fields of FlowInstance entities.
func (*FlowInstanceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowInstanceSelect) Scan ¶
func (fis *FlowInstanceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowInstanceSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowInstanceUpdate ¶
type FlowInstanceUpdate struct {
// contains filtered or unexported fields
}
FlowInstanceUpdate is the builder for updating FlowInstance entities.
func (*FlowInstanceUpdate) AddDeletedAt ¶
func (fiu *FlowInstanceUpdate) AddDeletedAt(i int64) *FlowInstanceUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceUpdate) AddFlowNodeInstanceIDs ¶
func (fiu *FlowInstanceUpdate) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdate
AddFlowNodeInstanceIDs adds the "flow_node_instances" edge to the FlowNodeInstance entity by IDs.
func (*FlowInstanceUpdate) AddFlowNodeInstances ¶
func (fiu *FlowInstanceUpdate) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdate
AddFlowNodeInstances adds the "flow_node_instances" edges to the FlowNodeInstance entity.
func (*FlowInstanceUpdate) AddStatus ¶
func (fiu *FlowInstanceUpdate) AddStatus(i int8) *FlowInstanceUpdate
AddStatus adds i to the "status" field.
func (*FlowInstanceUpdate) AddUpdatedAt ¶
func (fiu *FlowInstanceUpdate) AddUpdatedAt(i int64) *FlowInstanceUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceUpdate) ClearDeletedAt ¶
func (fiu *FlowInstanceUpdate) ClearDeletedAt() *FlowInstanceUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceUpdate) ClearFlowDeployment ¶
func (fiu *FlowInstanceUpdate) ClearFlowDeployment() *FlowInstanceUpdate
ClearFlowDeployment clears the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceUpdate) ClearFlowNodeInstances ¶
func (fiu *FlowInstanceUpdate) ClearFlowNodeInstances() *FlowInstanceUpdate
ClearFlowNodeInstances clears all "flow_node_instances" edges to the FlowNodeInstance entity.
func (*FlowInstanceUpdate) Exec ¶
func (fiu *FlowInstanceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceUpdate) ExecX ¶
func (fiu *FlowInstanceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceUpdate) Mutation ¶
func (fiu *FlowInstanceUpdate) Mutation() *FlowInstanceMutation
Mutation returns the FlowInstanceMutation object of the builder.
func (*FlowInstanceUpdate) RemoveFlowNodeInstanceIDs ¶
func (fiu *FlowInstanceUpdate) RemoveFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdate
RemoveFlowNodeInstanceIDs removes the "flow_node_instances" edge to FlowNodeInstance entities by IDs.
func (*FlowInstanceUpdate) RemoveFlowNodeInstances ¶
func (fiu *FlowInstanceUpdate) RemoveFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdate
RemoveFlowNodeInstances removes "flow_node_instances" edges to FlowNodeInstance entities.
func (*FlowInstanceUpdate) Save ¶
func (fiu *FlowInstanceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowInstanceUpdate) SaveX ¶
func (fiu *FlowInstanceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowInstanceUpdate) SetDeletedAt ¶
func (fiu *FlowInstanceUpdate) SetDeletedAt(i int64) *FlowInstanceUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceUpdate) SetFlowDeployment ¶
func (fiu *FlowInstanceUpdate) SetFlowDeployment(f *FlowDeployment) *FlowInstanceUpdate
SetFlowDeployment sets the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceUpdate) SetFlowDeploymentID ¶
func (fiu *FlowInstanceUpdate) SetFlowDeploymentID(s string) *FlowInstanceUpdate
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceUpdate) SetNillableDeletedAt ¶
func (fiu *FlowInstanceUpdate) SetNillableDeletedAt(i *int64) *FlowInstanceUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceUpdate) SetNillableStatus ¶
func (fiu *FlowInstanceUpdate) SetNillableStatus(i *int8) *FlowInstanceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowInstanceUpdate) SetRefID ¶
func (fiu *FlowInstanceUpdate) SetRefID(s string) *FlowInstanceUpdate
SetRefID sets the "ref_id" field.
func (*FlowInstanceUpdate) SetStatus ¶
func (fiu *FlowInstanceUpdate) SetStatus(i int8) *FlowInstanceUpdate
SetStatus sets the "status" field.
func (*FlowInstanceUpdate) SetUpdatedAt ¶
func (fiu *FlowInstanceUpdate) SetUpdatedAt(i int64) *FlowInstanceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceUpdate) Where ¶
func (fiu *FlowInstanceUpdate) Where(ps ...predicate.FlowInstance) *FlowInstanceUpdate
Where appends a list predicates to the FlowInstanceUpdate builder.
type FlowInstanceUpdateOne ¶
type FlowInstanceUpdateOne struct {
// contains filtered or unexported fields
}
FlowInstanceUpdateOne is the builder for updating a single FlowInstance entity.
func (*FlowInstanceUpdateOne) AddDeletedAt ¶
func (fiuo *FlowInstanceUpdateOne) AddDeletedAt(i int64) *FlowInstanceUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowInstanceUpdateOne) AddFlowNodeInstanceIDs ¶
func (fiuo *FlowInstanceUpdateOne) AddFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdateOne
AddFlowNodeInstanceIDs adds the "flow_node_instances" edge to the FlowNodeInstance entity by IDs.
func (*FlowInstanceUpdateOne) AddFlowNodeInstances ¶
func (fiuo *FlowInstanceUpdateOne) AddFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdateOne
AddFlowNodeInstances adds the "flow_node_instances" edges to the FlowNodeInstance entity.
func (*FlowInstanceUpdateOne) AddStatus ¶
func (fiuo *FlowInstanceUpdateOne) AddStatus(i int8) *FlowInstanceUpdateOne
AddStatus adds i to the "status" field.
func (*FlowInstanceUpdateOne) AddUpdatedAt ¶
func (fiuo *FlowInstanceUpdateOne) AddUpdatedAt(i int64) *FlowInstanceUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowInstanceUpdateOne) ClearDeletedAt ¶
func (fiuo *FlowInstanceUpdateOne) ClearDeletedAt() *FlowInstanceUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceUpdateOne) ClearFlowDeployment ¶
func (fiuo *FlowInstanceUpdateOne) ClearFlowDeployment() *FlowInstanceUpdateOne
ClearFlowDeployment clears the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceUpdateOne) ClearFlowNodeInstances ¶
func (fiuo *FlowInstanceUpdateOne) ClearFlowNodeInstances() *FlowInstanceUpdateOne
ClearFlowNodeInstances clears all "flow_node_instances" edges to the FlowNodeInstance entity.
func (*FlowInstanceUpdateOne) Exec ¶
func (fiuo *FlowInstanceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowInstanceUpdateOne) ExecX ¶
func (fiuo *FlowInstanceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceUpdateOne) Mutation ¶
func (fiuo *FlowInstanceUpdateOne) Mutation() *FlowInstanceMutation
Mutation returns the FlowInstanceMutation object of the builder.
func (*FlowInstanceUpdateOne) RemoveFlowNodeInstanceIDs ¶
func (fiuo *FlowInstanceUpdateOne) RemoveFlowNodeInstanceIDs(ids ...string) *FlowInstanceUpdateOne
RemoveFlowNodeInstanceIDs removes the "flow_node_instances" edge to FlowNodeInstance entities by IDs.
func (*FlowInstanceUpdateOne) RemoveFlowNodeInstances ¶
func (fiuo *FlowInstanceUpdateOne) RemoveFlowNodeInstances(f ...*FlowNodeInstance) *FlowInstanceUpdateOne
RemoveFlowNodeInstances removes "flow_node_instances" edges to FlowNodeInstance entities.
func (*FlowInstanceUpdateOne) Save ¶
func (fiuo *FlowInstanceUpdateOne) Save(ctx context.Context) (*FlowInstance, error)
Save executes the query and returns the updated FlowInstance entity.
func (*FlowInstanceUpdateOne) SaveX ¶
func (fiuo *FlowInstanceUpdateOne) SaveX(ctx context.Context) *FlowInstance
SaveX is like Save, but panics if an error occurs.
func (*FlowInstanceUpdateOne) Select ¶
func (fiuo *FlowInstanceUpdateOne) Select(field string, fields ...string) *FlowInstanceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowInstanceUpdateOne) SetDeletedAt ¶
func (fiuo *FlowInstanceUpdateOne) SetDeletedAt(i int64) *FlowInstanceUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceUpdateOne) SetFlowDeployment ¶
func (fiuo *FlowInstanceUpdateOne) SetFlowDeployment(f *FlowDeployment) *FlowInstanceUpdateOne
SetFlowDeployment sets the "flow_deployment" edge to the FlowDeployment entity.
func (*FlowInstanceUpdateOne) SetFlowDeploymentID ¶
func (fiuo *FlowInstanceUpdateOne) SetFlowDeploymentID(s string) *FlowInstanceUpdateOne
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceUpdateOne) SetNillableDeletedAt ¶
func (fiuo *FlowInstanceUpdateOne) SetNillableDeletedAt(i *int64) *FlowInstanceUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowInstanceUpdateOne) SetNillableStatus ¶
func (fiuo *FlowInstanceUpdateOne) SetNillableStatus(i *int8) *FlowInstanceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowInstanceUpdateOne) SetRefID ¶
func (fiuo *FlowInstanceUpdateOne) SetRefID(s string) *FlowInstanceUpdateOne
SetRefID sets the "ref_id" field.
func (*FlowInstanceUpdateOne) SetStatus ¶
func (fiuo *FlowInstanceUpdateOne) SetStatus(i int8) *FlowInstanceUpdateOne
SetStatus sets the "status" field.
func (*FlowInstanceUpdateOne) SetUpdatedAt ¶
func (fiuo *FlowInstanceUpdateOne) SetUpdatedAt(i int64) *FlowInstanceUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowInstanceUpsert ¶
FlowInstanceUpsert is the "OnConflict" setter.
func (*FlowInstanceUpsert) AddCreatedAt ¶
func (u *FlowInstanceUpsert) AddCreatedAt(v int64) *FlowInstanceUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceUpsert) AddDeletedAt ¶
func (u *FlowInstanceUpsert) AddDeletedAt(v int64) *FlowInstanceUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceUpsert) AddStatus ¶
func (u *FlowInstanceUpsert) AddStatus(v int8) *FlowInstanceUpsert
AddStatus adds v to the "status" field.
func (*FlowInstanceUpsert) AddUpdatedAt ¶
func (u *FlowInstanceUpsert) AddUpdatedAt(v int64) *FlowInstanceUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceUpsert) ClearDeletedAt ¶
func (u *FlowInstanceUpsert) ClearDeletedAt() *FlowInstanceUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceUpsert) SetCreatedAt ¶
func (u *FlowInstanceUpsert) SetCreatedAt(v int64) *FlowInstanceUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceUpsert) SetDeletedAt ¶
func (u *FlowInstanceUpsert) SetDeletedAt(v int64) *FlowInstanceUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceUpsert) SetFlowDeploymentID ¶
func (u *FlowInstanceUpsert) SetFlowDeploymentID(v string) *FlowInstanceUpsert
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceUpsert) SetRefID ¶
func (u *FlowInstanceUpsert) SetRefID(v string) *FlowInstanceUpsert
SetRefID sets the "ref_id" field.
func (*FlowInstanceUpsert) SetStatus ¶
func (u *FlowInstanceUpsert) SetStatus(v int8) *FlowInstanceUpsert
SetStatus sets the "status" field.
func (*FlowInstanceUpsert) SetUpdatedAt ¶
func (u *FlowInstanceUpsert) SetUpdatedAt(v int64) *FlowInstanceUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceUpsert) UpdateCreatedAt ¶
func (u *FlowInstanceUpsert) UpdateCreatedAt() *FlowInstanceUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceUpsert) UpdateDeletedAt ¶
func (u *FlowInstanceUpsert) UpdateDeletedAt() *FlowInstanceUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceUpsert) UpdateFlowDeploymentID ¶
func (u *FlowInstanceUpsert) UpdateFlowDeploymentID() *FlowInstanceUpsert
UpdateFlowDeploymentID sets the "flow_deployment_id" field to the value that was provided on create.
func (*FlowInstanceUpsert) UpdateRefID ¶
func (u *FlowInstanceUpsert) UpdateRefID() *FlowInstanceUpsert
UpdateRefID sets the "ref_id" field to the value that was provided on create.
func (*FlowInstanceUpsert) UpdateStatus ¶
func (u *FlowInstanceUpsert) UpdateStatus() *FlowInstanceUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowInstanceUpsert) UpdateUpdatedAt ¶
func (u *FlowInstanceUpsert) UpdateUpdatedAt() *FlowInstanceUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstanceUpsertBulk ¶
type FlowInstanceUpsertBulk struct {
// contains filtered or unexported fields
}
FlowInstanceUpsertBulk is the builder for "upsert"-ing a bulk of FlowInstance nodes.
func (*FlowInstanceUpsertBulk) AddCreatedAt ¶
func (u *FlowInstanceUpsertBulk) AddCreatedAt(v int64) *FlowInstanceUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceUpsertBulk) AddDeletedAt ¶
func (u *FlowInstanceUpsertBulk) AddDeletedAt(v int64) *FlowInstanceUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceUpsertBulk) AddStatus ¶
func (u *FlowInstanceUpsertBulk) AddStatus(v int8) *FlowInstanceUpsertBulk
AddStatus adds v to the "status" field.
func (*FlowInstanceUpsertBulk) AddUpdatedAt ¶
func (u *FlowInstanceUpsertBulk) AddUpdatedAt(v int64) *FlowInstanceUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceUpsertBulk) ClearDeletedAt ¶
func (u *FlowInstanceUpsertBulk) ClearDeletedAt() *FlowInstanceUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceUpsertBulk) DoNothing ¶
func (u *FlowInstanceUpsertBulk) DoNothing() *FlowInstanceUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowInstanceUpsertBulk) Exec ¶
func (u *FlowInstanceUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceUpsertBulk) ExecX ¶
func (u *FlowInstanceUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceUpsertBulk) Ignore ¶
func (u *FlowInstanceUpsertBulk) Ignore() *FlowInstanceUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowInstanceUpsertBulk) SetCreatedAt ¶
func (u *FlowInstanceUpsertBulk) SetCreatedAt(v int64) *FlowInstanceUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceUpsertBulk) SetDeletedAt ¶
func (u *FlowInstanceUpsertBulk) SetDeletedAt(v int64) *FlowInstanceUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceUpsertBulk) SetFlowDeploymentID ¶
func (u *FlowInstanceUpsertBulk) SetFlowDeploymentID(v string) *FlowInstanceUpsertBulk
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceUpsertBulk) SetRefID ¶
func (u *FlowInstanceUpsertBulk) SetRefID(v string) *FlowInstanceUpsertBulk
SetRefID sets the "ref_id" field.
func (*FlowInstanceUpsertBulk) SetStatus ¶
func (u *FlowInstanceUpsertBulk) SetStatus(v int8) *FlowInstanceUpsertBulk
SetStatus sets the "status" field.
func (*FlowInstanceUpsertBulk) SetUpdatedAt ¶
func (u *FlowInstanceUpsertBulk) SetUpdatedAt(v int64) *FlowInstanceUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceUpsertBulk) Update ¶
func (u *FlowInstanceUpsertBulk) Update(set func(*FlowInstanceUpsert)) *FlowInstanceUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowInstanceCreateBulk.OnConflict documentation for more info.
func (*FlowInstanceUpsertBulk) UpdateCreatedAt ¶
func (u *FlowInstanceUpsertBulk) UpdateCreatedAt() *FlowInstanceUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceUpsertBulk) UpdateDeletedAt ¶
func (u *FlowInstanceUpsertBulk) UpdateDeletedAt() *FlowInstanceUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceUpsertBulk) UpdateFlowDeploymentID ¶
func (u *FlowInstanceUpsertBulk) UpdateFlowDeploymentID() *FlowInstanceUpsertBulk
UpdateFlowDeploymentID sets the "flow_deployment_id" field to the value that was provided on create.
func (*FlowInstanceUpsertBulk) UpdateNewValues ¶
func (u *FlowInstanceUpsertBulk) UpdateNewValues() *FlowInstanceUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowinstance.FieldID) }), ). Exec(ctx)
func (*FlowInstanceUpsertBulk) UpdateRefID ¶
func (u *FlowInstanceUpsertBulk) UpdateRefID() *FlowInstanceUpsertBulk
UpdateRefID sets the "ref_id" field to the value that was provided on create.
func (*FlowInstanceUpsertBulk) UpdateStatus ¶
func (u *FlowInstanceUpsertBulk) UpdateStatus() *FlowInstanceUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowInstanceUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowInstanceUpsertBulk) UpdateUpdatedAt() *FlowInstanceUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstanceUpsertOne ¶
type FlowInstanceUpsertOne struct {
// contains filtered or unexported fields
}
FlowInstanceUpsertOne is the builder for "upsert"-ing
one FlowInstance node.
func (*FlowInstanceUpsertOne) AddCreatedAt ¶
func (u *FlowInstanceUpsertOne) AddCreatedAt(v int64) *FlowInstanceUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowInstanceUpsertOne) AddDeletedAt ¶
func (u *FlowInstanceUpsertOne) AddDeletedAt(v int64) *FlowInstanceUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowInstanceUpsertOne) AddStatus ¶
func (u *FlowInstanceUpsertOne) AddStatus(v int8) *FlowInstanceUpsertOne
AddStatus adds v to the "status" field.
func (*FlowInstanceUpsertOne) AddUpdatedAt ¶
func (u *FlowInstanceUpsertOne) AddUpdatedAt(v int64) *FlowInstanceUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowInstanceUpsertOne) ClearDeletedAt ¶
func (u *FlowInstanceUpsertOne) ClearDeletedAt() *FlowInstanceUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowInstanceUpsertOne) DoNothing ¶
func (u *FlowInstanceUpsertOne) DoNothing() *FlowInstanceUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowInstanceUpsertOne) Exec ¶
func (u *FlowInstanceUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowInstanceUpsertOne) ExecX ¶
func (u *FlowInstanceUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowInstanceUpsertOne) ID ¶
func (u *FlowInstanceUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowInstanceUpsertOne) IDX ¶
func (u *FlowInstanceUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowInstanceUpsertOne) Ignore ¶
func (u *FlowInstanceUpsertOne) Ignore() *FlowInstanceUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowInstanceUpsertOne) SetCreatedAt ¶
func (u *FlowInstanceUpsertOne) SetCreatedAt(v int64) *FlowInstanceUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowInstanceUpsertOne) SetDeletedAt ¶
func (u *FlowInstanceUpsertOne) SetDeletedAt(v int64) *FlowInstanceUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowInstanceUpsertOne) SetFlowDeploymentID ¶
func (u *FlowInstanceUpsertOne) SetFlowDeploymentID(v string) *FlowInstanceUpsertOne
SetFlowDeploymentID sets the "flow_deployment_id" field.
func (*FlowInstanceUpsertOne) SetRefID ¶
func (u *FlowInstanceUpsertOne) SetRefID(v string) *FlowInstanceUpsertOne
SetRefID sets the "ref_id" field.
func (*FlowInstanceUpsertOne) SetStatus ¶
func (u *FlowInstanceUpsertOne) SetStatus(v int8) *FlowInstanceUpsertOne
SetStatus sets the "status" field.
func (*FlowInstanceUpsertOne) SetUpdatedAt ¶
func (u *FlowInstanceUpsertOne) SetUpdatedAt(v int64) *FlowInstanceUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowInstanceUpsertOne) Update ¶
func (u *FlowInstanceUpsertOne) Update(set func(*FlowInstanceUpsert)) *FlowInstanceUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowInstanceCreate.OnConflict documentation for more info.
func (*FlowInstanceUpsertOne) UpdateCreatedAt ¶
func (u *FlowInstanceUpsertOne) UpdateCreatedAt() *FlowInstanceUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowInstanceUpsertOne) UpdateDeletedAt ¶
func (u *FlowInstanceUpsertOne) UpdateDeletedAt() *FlowInstanceUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowInstanceUpsertOne) UpdateFlowDeploymentID ¶
func (u *FlowInstanceUpsertOne) UpdateFlowDeploymentID() *FlowInstanceUpsertOne
UpdateFlowDeploymentID sets the "flow_deployment_id" field to the value that was provided on create.
func (*FlowInstanceUpsertOne) UpdateNewValues ¶
func (u *FlowInstanceUpsertOne) UpdateNewValues() *FlowInstanceUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowInstance.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flowinstance.FieldID) }), ). Exec(ctx)
func (*FlowInstanceUpsertOne) UpdateRefID ¶
func (u *FlowInstanceUpsertOne) UpdateRefID() *FlowInstanceUpsertOne
UpdateRefID sets the "ref_id" field to the value that was provided on create.
func (*FlowInstanceUpsertOne) UpdateStatus ¶
func (u *FlowInstanceUpsertOne) UpdateStatus() *FlowInstanceUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowInstanceUpsertOne) UpdateUpdatedAt ¶
func (u *FlowInstanceUpsertOne) UpdateUpdatedAt() *FlowInstanceUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowInstances ¶
type FlowInstances []*FlowInstance
FlowInstances is a parsable slice of FlowInstance.
type FlowNodeInstance ¶
type FlowNodeInstance struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // FlowInstanceID holds the value of the "flow_instance_id" field. // 流程执行实例ID FlowInstanceID string `json:"flow_instance_id,omitempty"` // SourceFlowNodeInstanceID holds the value of the "source_flow_node_instance_id" field. // 上一个节点执行实例ID SourceFlowNodeInstanceID string `json:"source_flow_node_instance_id,omitempty"` // FlowInstanceDataID holds the value of the "flow_instance_data_id" field. // 实例数据ID FlowInstanceDataID string `json:"flow_instance_data_id,omitempty"` // NodeKey holds the value of the "node_key" field. // 节点唯一标示 NodeKey string `json:"node_key,omitempty"` // SourceNodeKey holds the value of the "source_node_key" field. // 上一节点唯一标示 SourceNodeKey string `json:"source_node_key,omitempty"` // Status holds the value of the "status" field. // 状态(1.处理成功 2.处理中 3.处理失败 4.处理已撤销) Status int8 `json:"status,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FlowNodeInstanceQuery when eager-loading is set. Edges FlowNodeInstanceEdges `json:"edges"` // contains filtered or unexported fields }
FlowNodeInstance is the model entity for the FlowNodeInstance schema.
func (*FlowNodeInstance) QueryFlowInstance ¶
func (fni *FlowNodeInstance) QueryFlowInstance() *FlowInstanceQuery
QueryFlowInstance queries the "flow_instance" edge of the FlowNodeInstance entity.
func (*FlowNodeInstance) String ¶
func (fni *FlowNodeInstance) String() string
String implements the fmt.Stringer.
func (*FlowNodeInstance) Unwrap ¶
func (fni *FlowNodeInstance) Unwrap() *FlowNodeInstance
Unwrap unwraps the FlowNodeInstance 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 (*FlowNodeInstance) Update ¶
func (fni *FlowNodeInstance) Update() *FlowNodeInstanceUpdateOne
Update returns a builder for updating this FlowNodeInstance. Note that you need to call FlowNodeInstance.Unwrap() before calling this method if this FlowNodeInstance was returned from a transaction, and the transaction was committed or rolled back.
type FlowNodeInstanceClient ¶
type FlowNodeInstanceClient struct {
// contains filtered or unexported fields
}
FlowNodeInstanceClient is a client for the FlowNodeInstance schema.
func NewFlowNodeInstanceClient ¶
func NewFlowNodeInstanceClient(c config) *FlowNodeInstanceClient
NewFlowNodeInstanceClient returns a client for the FlowNodeInstance from the given config.
func (*FlowNodeInstanceClient) Create ¶
func (c *FlowNodeInstanceClient) Create() *FlowNodeInstanceCreate
Create returns a create builder for FlowNodeInstance.
func (*FlowNodeInstanceClient) CreateBulk ¶
func (c *FlowNodeInstanceClient) CreateBulk(builders ...*FlowNodeInstanceCreate) *FlowNodeInstanceCreateBulk
CreateBulk returns a builder for creating a bulk of FlowNodeInstance entities.
func (*FlowNodeInstanceClient) Delete ¶
func (c *FlowNodeInstanceClient) Delete() *FlowNodeInstanceDelete
Delete returns a delete builder for FlowNodeInstance.
func (*FlowNodeInstanceClient) DeleteOne ¶
func (c *FlowNodeInstanceClient) DeleteOne(fni *FlowNodeInstance) *FlowNodeInstanceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowNodeInstanceClient) DeleteOneID ¶
func (c *FlowNodeInstanceClient) DeleteOneID(id string) *FlowNodeInstanceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowNodeInstanceClient) Get ¶
func (c *FlowNodeInstanceClient) Get(ctx context.Context, id string) (*FlowNodeInstance, error)
Get returns a FlowNodeInstance entity by its id.
func (*FlowNodeInstanceClient) GetX ¶
func (c *FlowNodeInstanceClient) GetX(ctx context.Context, id string) *FlowNodeInstance
GetX is like Get, but panics if an error occurs.
func (*FlowNodeInstanceClient) Hooks ¶
func (c *FlowNodeInstanceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowNodeInstanceClient) Query ¶
func (c *FlowNodeInstanceClient) Query() *FlowNodeInstanceQuery
Query returns a query builder for FlowNodeInstance.
func (*FlowNodeInstanceClient) QueryFlowInstance ¶
func (c *FlowNodeInstanceClient) QueryFlowInstance(fni *FlowNodeInstance) *FlowInstanceQuery
QueryFlowInstance queries the flow_instance edge of a FlowNodeInstance.
func (*FlowNodeInstanceClient) Update ¶
func (c *FlowNodeInstanceClient) Update() *FlowNodeInstanceUpdate
Update returns an update builder for FlowNodeInstance.
func (*FlowNodeInstanceClient) UpdateOne ¶
func (c *FlowNodeInstanceClient) UpdateOne(fni *FlowNodeInstance) *FlowNodeInstanceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowNodeInstanceClient) UpdateOneID ¶
func (c *FlowNodeInstanceClient) UpdateOneID(id string) *FlowNodeInstanceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowNodeInstanceClient) Use ¶
func (c *FlowNodeInstanceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flownodeinstance.Hooks(f(g(h())))`.
type FlowNodeInstanceCreate ¶
type FlowNodeInstanceCreate struct {
// contains filtered or unexported fields
}
FlowNodeInstanceCreate is the builder for creating a FlowNodeInstance entity.
func (*FlowNodeInstanceCreate) Exec ¶
func (fnic *FlowNodeInstanceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceCreate) ExecX ¶
func (fnic *FlowNodeInstanceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceCreate) Mutation ¶
func (fnic *FlowNodeInstanceCreate) Mutation() *FlowNodeInstanceMutation
Mutation returns the FlowNodeInstanceMutation object of the builder.
func (*FlowNodeInstanceCreate) OnConflict ¶
func (fnic *FlowNodeInstanceCreate) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowNodeInstance.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowNodeInstanceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowNodeInstanceCreate) OnConflictColumns ¶
func (fnic *FlowNodeInstanceCreate) OnConflictColumns(columns ...string) *FlowNodeInstanceUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowNodeInstanceCreate) Save ¶
func (fnic *FlowNodeInstanceCreate) Save(ctx context.Context) (*FlowNodeInstance, error)
Save creates the FlowNodeInstance in the database.
func (*FlowNodeInstanceCreate) SaveX ¶
func (fnic *FlowNodeInstanceCreate) SaveX(ctx context.Context) *FlowNodeInstance
SaveX calls Save and panics if Save returns an error.
func (*FlowNodeInstanceCreate) SetCreatedAt ¶
func (fnic *FlowNodeInstanceCreate) SetCreatedAt(i int64) *FlowNodeInstanceCreate
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceCreate) SetDeletedAt ¶
func (fnic *FlowNodeInstanceCreate) SetDeletedAt(i int64) *FlowNodeInstanceCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceCreate) SetFlowInstance ¶
func (fnic *FlowNodeInstanceCreate) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceCreate
SetFlowInstance sets the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceCreate) SetFlowInstanceDataID ¶
func (fnic *FlowNodeInstanceCreate) SetFlowInstanceDataID(s string) *FlowNodeInstanceCreate
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceCreate) SetFlowInstanceID ¶
func (fnic *FlowNodeInstanceCreate) SetFlowInstanceID(s string) *FlowNodeInstanceCreate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceCreate) SetID ¶
func (fnic *FlowNodeInstanceCreate) SetID(s string) *FlowNodeInstanceCreate
SetID sets the "id" field.
func (*FlowNodeInstanceCreate) SetNillableCreatedAt ¶
func (fnic *FlowNodeInstanceCreate) SetNillableCreatedAt(i *int64) *FlowNodeInstanceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableDeletedAt ¶
func (fnic *FlowNodeInstanceCreate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableFlowInstanceDataID ¶
func (fnic *FlowNodeInstanceCreate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceCreate
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableID ¶
func (fnic *FlowNodeInstanceCreate) SetNillableID(s *string) *FlowNodeInstanceCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableSourceFlowNodeInstanceID ¶
func (fnic *FlowNodeInstanceCreate) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceCreate
SetNillableSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableSourceNodeKey ¶
func (fnic *FlowNodeInstanceCreate) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceCreate
SetNillableSourceNodeKey sets the "source_node_key" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableStatus ¶
func (fnic *FlowNodeInstanceCreate) SetNillableStatus(i *int8) *FlowNodeInstanceCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNillableUpdatedAt ¶
func (fnic *FlowNodeInstanceCreate) SetNillableUpdatedAt(i *int64) *FlowNodeInstanceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowNodeInstanceCreate) SetNodeKey ¶
func (fnic *FlowNodeInstanceCreate) SetNodeKey(s string) *FlowNodeInstanceCreate
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceCreate) SetSourceFlowNodeInstanceID ¶
func (fnic *FlowNodeInstanceCreate) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceCreate
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceCreate) SetSourceNodeKey ¶
func (fnic *FlowNodeInstanceCreate) SetSourceNodeKey(s string) *FlowNodeInstanceCreate
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceCreate) SetStatus ¶
func (fnic *FlowNodeInstanceCreate) SetStatus(i int8) *FlowNodeInstanceCreate
SetStatus sets the "status" field.
func (*FlowNodeInstanceCreate) SetUpdatedAt ¶
func (fnic *FlowNodeInstanceCreate) SetUpdatedAt(i int64) *FlowNodeInstanceCreate
SetUpdatedAt sets the "updated_at" field.
type FlowNodeInstanceCreateBulk ¶
type FlowNodeInstanceCreateBulk struct {
// contains filtered or unexported fields
}
FlowNodeInstanceCreateBulk is the builder for creating many FlowNodeInstance entities in bulk.
func (*FlowNodeInstanceCreateBulk) Exec ¶
func (fnicb *FlowNodeInstanceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceCreateBulk) ExecX ¶
func (fnicb *FlowNodeInstanceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceCreateBulk) OnConflict ¶
func (fnicb *FlowNodeInstanceCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowNodeInstance.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowNodeInstanceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowNodeInstanceCreateBulk) OnConflictColumns ¶
func (fnicb *FlowNodeInstanceCreateBulk) OnConflictColumns(columns ...string) *FlowNodeInstanceUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowNodeInstanceCreateBulk) Save ¶
func (fnicb *FlowNodeInstanceCreateBulk) Save(ctx context.Context) ([]*FlowNodeInstance, error)
Save creates the FlowNodeInstance entities in the database.
func (*FlowNodeInstanceCreateBulk) SaveX ¶
func (fnicb *FlowNodeInstanceCreateBulk) SaveX(ctx context.Context) []*FlowNodeInstance
SaveX is like Save, but panics if an error occurs.
type FlowNodeInstanceDelete ¶
type FlowNodeInstanceDelete struct {
// contains filtered or unexported fields
}
FlowNodeInstanceDelete is the builder for deleting a FlowNodeInstance entity.
func (*FlowNodeInstanceDelete) Exec ¶
func (fnid *FlowNodeInstanceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowNodeInstanceDelete) ExecX ¶
func (fnid *FlowNodeInstanceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceDelete) Where ¶
func (fnid *FlowNodeInstanceDelete) Where(ps ...predicate.FlowNodeInstance) *FlowNodeInstanceDelete
Where appends a list predicates to the FlowNodeInstanceDelete builder.
type FlowNodeInstanceDeleteOne ¶
type FlowNodeInstanceDeleteOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceDeleteOne is the builder for deleting a single FlowNodeInstance entity.
func (*FlowNodeInstanceDeleteOne) Exec ¶
func (fnido *FlowNodeInstanceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowNodeInstanceDeleteOne) ExecX ¶
func (fnido *FlowNodeInstanceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowNodeInstanceEdges ¶
type FlowNodeInstanceEdges struct { // FlowInstance holds the value of the flow_instance edge. FlowInstance *FlowInstance `json:"flow_instance,omitempty"` // contains filtered or unexported fields }
FlowNodeInstanceEdges holds the relations/edges for other nodes in the graph.
func (FlowNodeInstanceEdges) FlowInstanceOrErr ¶
func (e FlowNodeInstanceEdges) FlowInstanceOrErr() (*FlowInstance, error)
FlowInstanceOrErr returns the FlowInstance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type FlowNodeInstanceGroupBy ¶
type FlowNodeInstanceGroupBy struct {
// contains filtered or unexported fields
}
FlowNodeInstanceGroupBy is the group-by builder for FlowNodeInstance entities.
func (*FlowNodeInstanceGroupBy) Aggregate ¶
func (fnigb *FlowNodeInstanceGroupBy) Aggregate(fns ...AggregateFunc) *FlowNodeInstanceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowNodeInstanceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowNodeInstanceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceGroupBy) Scan ¶
func (fnigb *FlowNodeInstanceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowNodeInstanceGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowNodeInstanceLog ¶
type FlowNodeInstanceLog struct { // ID of the ent. ID string `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt int64 `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt int64 `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt int64 `json:"-"` // FlowInstanceID holds the value of the "flow_instance_id" field. // 流程执行实例ID FlowInstanceID string `json:"flow_instance_id,omitempty"` // FlowNodeInstanceID holds the value of the "flow_node_instance_id" field. // 节点执行实例ID FlowNodeInstanceID string `json:"flow_node_instance_id,omitempty"` // FlowInstanceDataID holds the value of the "flow_instance_data_id" field. // 实例数据ID FlowInstanceDataID string `json:"flow_instance_data_id,omitempty"` // NodeKey holds the value of the "node_key" field. // 节点唯一标示 NodeKey string `json:"node_key,omitempty"` // Type holds the value of the "type" field. // 操作类型(1.系统执行 2.任务提交 3.任务撤销) Type int8 `json:"type,omitempty"` // Status holds the value of the "status" field. // '状态(1.处理成功 2.处理中 3.处理失败 4.处理已撤销) Status int8 `json:"status,omitempty"` // contains filtered or unexported fields }
FlowNodeInstanceLog is the model entity for the FlowNodeInstanceLog schema.
func (*FlowNodeInstanceLog) String ¶
func (fnil *FlowNodeInstanceLog) String() string
String implements the fmt.Stringer.
func (*FlowNodeInstanceLog) Unwrap ¶
func (fnil *FlowNodeInstanceLog) Unwrap() *FlowNodeInstanceLog
Unwrap unwraps the FlowNodeInstanceLog 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 (*FlowNodeInstanceLog) Update ¶
func (fnil *FlowNodeInstanceLog) Update() *FlowNodeInstanceLogUpdateOne
Update returns a builder for updating this FlowNodeInstanceLog. Note that you need to call FlowNodeInstanceLog.Unwrap() before calling this method if this FlowNodeInstanceLog was returned from a transaction, and the transaction was committed or rolled back.
type FlowNodeInstanceLogClient ¶
type FlowNodeInstanceLogClient struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogClient is a client for the FlowNodeInstanceLog schema.
func NewFlowNodeInstanceLogClient ¶
func NewFlowNodeInstanceLogClient(c config) *FlowNodeInstanceLogClient
NewFlowNodeInstanceLogClient returns a client for the FlowNodeInstanceLog from the given config.
func (*FlowNodeInstanceLogClient) Create ¶
func (c *FlowNodeInstanceLogClient) Create() *FlowNodeInstanceLogCreate
Create returns a create builder for FlowNodeInstanceLog.
func (*FlowNodeInstanceLogClient) CreateBulk ¶
func (c *FlowNodeInstanceLogClient) CreateBulk(builders ...*FlowNodeInstanceLogCreate) *FlowNodeInstanceLogCreateBulk
CreateBulk returns a builder for creating a bulk of FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogClient) Delete ¶
func (c *FlowNodeInstanceLogClient) Delete() *FlowNodeInstanceLogDelete
Delete returns a delete builder for FlowNodeInstanceLog.
func (*FlowNodeInstanceLogClient) DeleteOne ¶
func (c *FlowNodeInstanceLogClient) DeleteOne(fnil *FlowNodeInstanceLog) *FlowNodeInstanceLogDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*FlowNodeInstanceLogClient) DeleteOneID ¶
func (c *FlowNodeInstanceLogClient) DeleteOneID(id string) *FlowNodeInstanceLogDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*FlowNodeInstanceLogClient) Get ¶
func (c *FlowNodeInstanceLogClient) Get(ctx context.Context, id string) (*FlowNodeInstanceLog, error)
Get returns a FlowNodeInstanceLog entity by its id.
func (*FlowNodeInstanceLogClient) GetX ¶
func (c *FlowNodeInstanceLogClient) GetX(ctx context.Context, id string) *FlowNodeInstanceLog
GetX is like Get, but panics if an error occurs.
func (*FlowNodeInstanceLogClient) Hooks ¶
func (c *FlowNodeInstanceLogClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FlowNodeInstanceLogClient) Query ¶
func (c *FlowNodeInstanceLogClient) Query() *FlowNodeInstanceLogQuery
Query returns a query builder for FlowNodeInstanceLog.
func (*FlowNodeInstanceLogClient) Update ¶
func (c *FlowNodeInstanceLogClient) Update() *FlowNodeInstanceLogUpdate
Update returns an update builder for FlowNodeInstanceLog.
func (*FlowNodeInstanceLogClient) UpdateOne ¶
func (c *FlowNodeInstanceLogClient) UpdateOne(fnil *FlowNodeInstanceLog) *FlowNodeInstanceLogUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FlowNodeInstanceLogClient) UpdateOneID ¶
func (c *FlowNodeInstanceLogClient) UpdateOneID(id string) *FlowNodeInstanceLogUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FlowNodeInstanceLogClient) Use ¶
func (c *FlowNodeInstanceLogClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `flownodeinstancelog.Hooks(f(g(h())))`.
type FlowNodeInstanceLogCreate ¶
type FlowNodeInstanceLogCreate struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogCreate is the builder for creating a FlowNodeInstanceLog entity.
func (*FlowNodeInstanceLogCreate) Exec ¶
func (fnilc *FlowNodeInstanceLogCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceLogCreate) ExecX ¶
func (fnilc *FlowNodeInstanceLogCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogCreate) Mutation ¶
func (fnilc *FlowNodeInstanceLogCreate) Mutation() *FlowNodeInstanceLogMutation
Mutation returns the FlowNodeInstanceLogMutation object of the builder.
func (*FlowNodeInstanceLogCreate) OnConflict ¶
func (fnilc *FlowNodeInstanceLogCreate) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceLogUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowNodeInstanceLog.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowNodeInstanceLogUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowNodeInstanceLogCreate) OnConflictColumns ¶
func (fnilc *FlowNodeInstanceLogCreate) OnConflictColumns(columns ...string) *FlowNodeInstanceLogUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowNodeInstanceLogCreate) Save ¶
func (fnilc *FlowNodeInstanceLogCreate) Save(ctx context.Context) (*FlowNodeInstanceLog, error)
Save creates the FlowNodeInstanceLog in the database.
func (*FlowNodeInstanceLogCreate) SaveX ¶
func (fnilc *FlowNodeInstanceLogCreate) SaveX(ctx context.Context) *FlowNodeInstanceLog
SaveX calls Save and panics if Save returns an error.
func (*FlowNodeInstanceLogCreate) SetCreatedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetCreatedAt(i int64) *FlowNodeInstanceLogCreate
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceLogCreate) SetDeletedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetDeletedAt(i int64) *FlowNodeInstanceLogCreate
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogCreate) SetFlowInstanceDataID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogCreate
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogCreate) SetFlowInstanceID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetFlowInstanceID(s string) *FlowNodeInstanceLogCreate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogCreate) SetFlowNodeInstanceID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogCreate
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogCreate) SetID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetID(s string) *FlowNodeInstanceLogCreate
SetID sets the "id" field.
func (*FlowNodeInstanceLogCreate) SetNillableCreatedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableCreatedAt(i *int64) *FlowNodeInstanceLogCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableDeletedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableFlowInstanceDataID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogCreate
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableID ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableID(s *string) *FlowNodeInstanceLogCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableStatus ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableStatus(i *int8) *FlowNodeInstanceLogCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableType ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableType(i *int8) *FlowNodeInstanceLogCreate
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNillableUpdatedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNillableUpdatedAt(i *int64) *FlowNodeInstanceLogCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FlowNodeInstanceLogCreate) SetNodeKey ¶
func (fnilc *FlowNodeInstanceLogCreate) SetNodeKey(s string) *FlowNodeInstanceLogCreate
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogCreate) SetStatus ¶
func (fnilc *FlowNodeInstanceLogCreate) SetStatus(i int8) *FlowNodeInstanceLogCreate
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogCreate) SetType ¶
func (fnilc *FlowNodeInstanceLogCreate) SetType(i int8) *FlowNodeInstanceLogCreate
SetType sets the "type" field.
func (*FlowNodeInstanceLogCreate) SetUpdatedAt ¶
func (fnilc *FlowNodeInstanceLogCreate) SetUpdatedAt(i int64) *FlowNodeInstanceLogCreate
SetUpdatedAt sets the "updated_at" field.
type FlowNodeInstanceLogCreateBulk ¶
type FlowNodeInstanceLogCreateBulk struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogCreateBulk is the builder for creating many FlowNodeInstanceLog entities in bulk.
func (*FlowNodeInstanceLogCreateBulk) Exec ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceLogCreateBulk) ExecX ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogCreateBulk) OnConflict ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *FlowNodeInstanceLogUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FlowNodeInstanceLog.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FlowNodeInstanceLogUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*FlowNodeInstanceLogCreateBulk) OnConflictColumns ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) OnConflictColumns(columns ...string) *FlowNodeInstanceLogUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FlowNodeInstanceLogCreateBulk) Save ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) Save(ctx context.Context) ([]*FlowNodeInstanceLog, error)
Save creates the FlowNodeInstanceLog entities in the database.
func (*FlowNodeInstanceLogCreateBulk) SaveX ¶
func (fnilcb *FlowNodeInstanceLogCreateBulk) SaveX(ctx context.Context) []*FlowNodeInstanceLog
SaveX is like Save, but panics if an error occurs.
type FlowNodeInstanceLogDelete ¶
type FlowNodeInstanceLogDelete struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogDelete is the builder for deleting a FlowNodeInstanceLog entity.
func (*FlowNodeInstanceLogDelete) Exec ¶
func (fnild *FlowNodeInstanceLogDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FlowNodeInstanceLogDelete) ExecX ¶
func (fnild *FlowNodeInstanceLogDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogDelete) Where ¶
func (fnild *FlowNodeInstanceLogDelete) Where(ps ...predicate.FlowNodeInstanceLog) *FlowNodeInstanceLogDelete
Where appends a list predicates to the FlowNodeInstanceLogDelete builder.
type FlowNodeInstanceLogDeleteOne ¶
type FlowNodeInstanceLogDeleteOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogDeleteOne is the builder for deleting a single FlowNodeInstanceLog entity.
func (*FlowNodeInstanceLogDeleteOne) Exec ¶
func (fnildo *FlowNodeInstanceLogDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FlowNodeInstanceLogDeleteOne) ExecX ¶
func (fnildo *FlowNodeInstanceLogDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type FlowNodeInstanceLogGroupBy ¶
type FlowNodeInstanceLogGroupBy struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogGroupBy is the group-by builder for FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogGroupBy) Aggregate ¶
func (fnilgb *FlowNodeInstanceLogGroupBy) Aggregate(fns ...AggregateFunc) *FlowNodeInstanceLogGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FlowNodeInstanceLogGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*FlowNodeInstanceLogGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowNodeInstanceLogGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogGroupBy) Scan ¶
func (fnilgb *FlowNodeInstanceLogGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*FlowNodeInstanceLogGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowNodeInstanceLogMutation ¶
type FlowNodeInstanceLogMutation struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogMutation represents an operation that mutates the FlowNodeInstanceLog nodes in the graph.
func (*FlowNodeInstanceLogMutation) AddCreatedAt ¶
func (m *FlowNodeInstanceLogMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowNodeInstanceLogMutation) AddDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceLogMutation) AddField ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) AddStatus ¶
func (m *FlowNodeInstanceLogMutation) AddStatus(i int8)
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceLogMutation) AddType ¶
func (m *FlowNodeInstanceLogMutation) AddType(i int8)
AddType adds i to the "type" field.
func (*FlowNodeInstanceLogMutation) AddUpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceLogMutation) AddedCreatedAt ¶
func (m *FlowNodeInstanceLogMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowNodeInstanceLogMutation) AddedDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowNodeInstanceLogMutation) AddedEdges ¶
func (m *FlowNodeInstanceLogMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowNodeInstanceLogMutation) AddedField ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) AddedFields ¶
func (m *FlowNodeInstanceLogMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowNodeInstanceLogMutation) AddedIDs ¶
func (m *FlowNodeInstanceLogMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowNodeInstanceLogMutation) AddedStatus ¶
func (m *FlowNodeInstanceLogMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*FlowNodeInstanceLogMutation) AddedType ¶
func (m *FlowNodeInstanceLogMutation) AddedType() (r int8, exists bool)
AddedType returns the value that was added to the "type" field in this mutation.
func (*FlowNodeInstanceLogMutation) AddedUpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowNodeInstanceLogMutation) ClearDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogMutation) ClearEdge ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) ClearField ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) ClearFlowInstanceDataID ¶
func (m *FlowNodeInstanceLogMutation) ClearFlowInstanceDataID()
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogMutation) ClearedEdges ¶
func (m *FlowNodeInstanceLogMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowNodeInstanceLogMutation) ClearedFields ¶
func (m *FlowNodeInstanceLogMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowNodeInstanceLogMutation) Client ¶
func (m FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) CreatedAt ¶
func (m *FlowNodeInstanceLogMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowNodeInstanceLogMutation) DeletedAt ¶
func (m *FlowNodeInstanceLogMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowNodeInstanceLogMutation) DeletedAtCleared ¶
func (m *FlowNodeInstanceLogMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowNodeInstanceLogMutation) EdgeCleared ¶
func (m *FlowNodeInstanceLogMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowNodeInstanceLogMutation) Field ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) FieldCleared ¶
func (m *FlowNodeInstanceLogMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowNodeInstanceLogMutation) Fields ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) FlowInstanceDataID ¶
func (m *FlowNodeInstanceLogMutation) FlowInstanceDataID() (r string, exists bool)
FlowInstanceDataID returns the value of the "flow_instance_data_id" field in the mutation.
func (*FlowNodeInstanceLogMutation) FlowInstanceDataIDCleared ¶
func (m *FlowNodeInstanceLogMutation) FlowInstanceDataIDCleared() bool
FlowInstanceDataIDCleared returns if the "flow_instance_data_id" field was cleared in this mutation.
func (*FlowNodeInstanceLogMutation) FlowInstanceID ¶
func (m *FlowNodeInstanceLogMutation) FlowInstanceID() (r string, exists bool)
FlowInstanceID returns the value of the "flow_instance_id" field in the mutation.
func (*FlowNodeInstanceLogMutation) FlowNodeInstanceID ¶
func (m *FlowNodeInstanceLogMutation) FlowNodeInstanceID() (r string, exists bool)
FlowNodeInstanceID returns the value of the "flow_node_instance_id" field in the mutation.
func (*FlowNodeInstanceLogMutation) GetType ¶
func (m *FlowNodeInstanceLogMutation) GetType() (r int8, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*FlowNodeInstanceLogMutation) ID ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) IDs ¶
func (m *FlowNodeInstanceLogMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowNodeInstanceLogMutation) NodeKey ¶
func (m *FlowNodeInstanceLogMutation) NodeKey() (r string, exists bool)
NodeKey returns the value of the "node_key" field in the mutation.
func (*FlowNodeInstanceLogMutation) OldCreatedAt ¶
func (m *FlowNodeInstanceLogMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) OldFlowInstanceDataID ¶
func (m *FlowNodeInstanceLogMutation) OldFlowInstanceDataID(ctx context.Context) (v string, err error)
OldFlowInstanceDataID returns the old "flow_instance_data_id" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldFlowInstanceID ¶
func (m *FlowNodeInstanceLogMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
OldFlowInstanceID returns the old "flow_instance_id" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldFlowNodeInstanceID ¶
func (m *FlowNodeInstanceLogMutation) OldFlowNodeInstanceID(ctx context.Context) (v string, err error)
OldFlowNodeInstanceID returns the old "flow_node_instance_id" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldNodeKey ¶
func (m *FlowNodeInstanceLogMutation) OldNodeKey(ctx context.Context) (v string, err error)
OldNodeKey returns the old "node_key" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldStatus ¶
func (m *FlowNodeInstanceLogMutation) OldStatus(ctx context.Context) (v int8, err error)
OldStatus returns the old "status" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldType ¶
func (m *FlowNodeInstanceLogMutation) OldType(ctx context.Context) (v int8, err error)
OldType returns the old "type" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) OldUpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowNodeInstanceLog entity. If the FlowNodeInstanceLog 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 (*FlowNodeInstanceLogMutation) Op ¶
func (m *FlowNodeInstanceLogMutation) Op() Op
Op returns the operation name.
func (*FlowNodeInstanceLogMutation) RemovedEdges ¶
func (m *FlowNodeInstanceLogMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowNodeInstanceLogMutation) RemovedIDs ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) ResetCreatedAt ¶
func (m *FlowNodeInstanceLogMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowNodeInstanceLogMutation) ResetDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowNodeInstanceLogMutation) ResetEdge ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) ResetField ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) ResetFlowInstanceDataID ¶
func (m *FlowNodeInstanceLogMutation) ResetFlowInstanceDataID()
ResetFlowInstanceDataID resets all changes to the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogMutation) ResetFlowInstanceID ¶
func (m *FlowNodeInstanceLogMutation) ResetFlowInstanceID()
ResetFlowInstanceID resets all changes to the "flow_instance_id" field.
func (*FlowNodeInstanceLogMutation) ResetFlowNodeInstanceID ¶
func (m *FlowNodeInstanceLogMutation) ResetFlowNodeInstanceID()
ResetFlowNodeInstanceID resets all changes to the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogMutation) ResetNodeKey ¶
func (m *FlowNodeInstanceLogMutation) ResetNodeKey()
ResetNodeKey resets all changes to the "node_key" field.
func (*FlowNodeInstanceLogMutation) ResetStatus ¶
func (m *FlowNodeInstanceLogMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FlowNodeInstanceLogMutation) ResetType ¶
func (m *FlowNodeInstanceLogMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*FlowNodeInstanceLogMutation) ResetUpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowNodeInstanceLogMutation) SetCreatedAt ¶
func (m *FlowNodeInstanceLogMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceLogMutation) SetDeletedAt ¶
func (m *FlowNodeInstanceLogMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogMutation) SetField ¶
func (m *FlowNodeInstanceLogMutation) 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 (*FlowNodeInstanceLogMutation) SetFlowInstanceDataID ¶
func (m *FlowNodeInstanceLogMutation) SetFlowInstanceDataID(s string)
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogMutation) SetFlowInstanceID ¶
func (m *FlowNodeInstanceLogMutation) SetFlowInstanceID(s string)
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogMutation) SetFlowNodeInstanceID ¶
func (m *FlowNodeInstanceLogMutation) SetFlowNodeInstanceID(s string)
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogMutation) SetID ¶
func (m *FlowNodeInstanceLogMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogMutation) SetNodeKey ¶
func (m *FlowNodeInstanceLogMutation) SetNodeKey(s string)
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogMutation) SetStatus ¶
func (m *FlowNodeInstanceLogMutation) SetStatus(i int8)
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogMutation) SetType ¶
func (m *FlowNodeInstanceLogMutation) SetType(i int8)
SetType sets the "type" field.
func (*FlowNodeInstanceLogMutation) SetUpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceLogMutation) Status ¶
func (m *FlowNodeInstanceLogMutation) Status() (r int8, exists bool)
Status returns the value of the "status" field in the mutation.
func (FlowNodeInstanceLogMutation) Tx ¶
func (m FlowNodeInstanceLogMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowNodeInstanceLogMutation) Type ¶
func (m *FlowNodeInstanceLogMutation) Type() string
Type returns the node type of this mutation (FlowNodeInstanceLog).
func (*FlowNodeInstanceLogMutation) UpdatedAt ¶
func (m *FlowNodeInstanceLogMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowNodeInstanceLogMutation) Where ¶
func (m *FlowNodeInstanceLogMutation) Where(ps ...predicate.FlowNodeInstanceLog)
Where appends a list predicates to the FlowNodeInstanceLogMutation builder.
type FlowNodeInstanceLogQuery ¶
type FlowNodeInstanceLogQuery struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogQuery is the builder for querying FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogQuery) All ¶
func (fnilq *FlowNodeInstanceLogQuery) All(ctx context.Context) ([]*FlowNodeInstanceLog, error)
All executes the query and returns a list of FlowNodeInstanceLogs.
func (*FlowNodeInstanceLogQuery) AllX ¶
func (fnilq *FlowNodeInstanceLogQuery) AllX(ctx context.Context) []*FlowNodeInstanceLog
AllX is like All, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) Clone ¶
func (fnilq *FlowNodeInstanceLogQuery) Clone() *FlowNodeInstanceLogQuery
Clone returns a duplicate of the FlowNodeInstanceLogQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowNodeInstanceLogQuery) Count ¶
func (fnilq *FlowNodeInstanceLogQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowNodeInstanceLogQuery) CountX ¶
func (fnilq *FlowNodeInstanceLogQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) Exist ¶
func (fnilq *FlowNodeInstanceLogQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowNodeInstanceLogQuery) ExistX ¶
func (fnilq *FlowNodeInstanceLogQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) First ¶
func (fnilq *FlowNodeInstanceLogQuery) First(ctx context.Context) (*FlowNodeInstanceLog, error)
First returns the first FlowNodeInstanceLog entity from the query. Returns a *NotFoundError when no FlowNodeInstanceLog was found.
func (*FlowNodeInstanceLogQuery) FirstID ¶
func (fnilq *FlowNodeInstanceLogQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowNodeInstanceLog ID from the query. Returns a *NotFoundError when no FlowNodeInstanceLog ID was found.
func (*FlowNodeInstanceLogQuery) FirstIDX ¶
func (fnilq *FlowNodeInstanceLogQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) FirstX ¶
func (fnilq *FlowNodeInstanceLogQuery) FirstX(ctx context.Context) *FlowNodeInstanceLog
FirstX is like First, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) GroupBy ¶
func (fnilq *FlowNodeInstanceLogQuery) GroupBy(field string, fields ...string) *FlowNodeInstanceLogGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowNodeInstanceLog.Query(). GroupBy(flownodeinstancelog.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowNodeInstanceLogQuery) IDs ¶
func (fnilq *FlowNodeInstanceLogQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowNodeInstanceLog IDs.
func (*FlowNodeInstanceLogQuery) IDsX ¶
func (fnilq *FlowNodeInstanceLogQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) Limit ¶
func (fnilq *FlowNodeInstanceLogQuery) Limit(limit int) *FlowNodeInstanceLogQuery
Limit adds a limit step to the query.
func (*FlowNodeInstanceLogQuery) Offset ¶
func (fnilq *FlowNodeInstanceLogQuery) Offset(offset int) *FlowNodeInstanceLogQuery
Offset adds an offset step to the query.
func (*FlowNodeInstanceLogQuery) Only ¶
func (fnilq *FlowNodeInstanceLogQuery) Only(ctx context.Context) (*FlowNodeInstanceLog, error)
Only returns a single FlowNodeInstanceLog entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowNodeInstanceLog entity is found. Returns a *NotFoundError when no FlowNodeInstanceLog entities are found.
func (*FlowNodeInstanceLogQuery) OnlyID ¶
func (fnilq *FlowNodeInstanceLogQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowNodeInstanceLog ID in the query. Returns a *NotSingularError when more than one FlowNodeInstanceLog ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowNodeInstanceLogQuery) OnlyIDX ¶
func (fnilq *FlowNodeInstanceLogQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) OnlyX ¶
func (fnilq *FlowNodeInstanceLogQuery) OnlyX(ctx context.Context) *FlowNodeInstanceLog
OnlyX is like Only, but panics if an error occurs.
func (*FlowNodeInstanceLogQuery) Order ¶
func (fnilq *FlowNodeInstanceLogQuery) Order(o ...OrderFunc) *FlowNodeInstanceLogQuery
Order adds an order step to the query.
func (*FlowNodeInstanceLogQuery) Select ¶
func (fnilq *FlowNodeInstanceLogQuery) Select(fields ...string) *FlowNodeInstanceLogSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowNodeInstanceLog.Query(). Select(flownodeinstancelog.FieldCreatedAt). Scan(ctx, &v)
func (*FlowNodeInstanceLogQuery) Unique ¶
func (fnilq *FlowNodeInstanceLogQuery) Unique(unique bool) *FlowNodeInstanceLogQuery
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 (*FlowNodeInstanceLogQuery) Where ¶
func (fnilq *FlowNodeInstanceLogQuery) Where(ps ...predicate.FlowNodeInstanceLog) *FlowNodeInstanceLogQuery
Where adds a new predicate for the FlowNodeInstanceLogQuery builder.
type FlowNodeInstanceLogSelect ¶
type FlowNodeInstanceLogSelect struct { *FlowNodeInstanceLogQuery // contains filtered or unexported fields }
FlowNodeInstanceLogSelect is the builder for selecting fields of FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*FlowNodeInstanceLogSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowNodeInstanceLogSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceLogSelect) Scan ¶
func (fnils *FlowNodeInstanceLogSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowNodeInstanceLogSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowNodeInstanceLogUpdate ¶
type FlowNodeInstanceLogUpdate struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogUpdate is the builder for updating FlowNodeInstanceLog entities.
func (*FlowNodeInstanceLogUpdate) AddDeletedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) AddDeletedAt(i int64) *FlowNodeInstanceLogUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceLogUpdate) AddStatus ¶
func (fnilu *FlowNodeInstanceLogUpdate) AddStatus(i int8) *FlowNodeInstanceLogUpdate
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceLogUpdate) AddType ¶
func (fnilu *FlowNodeInstanceLogUpdate) AddType(i int8) *FlowNodeInstanceLogUpdate
AddType adds i to the "type" field.
func (*FlowNodeInstanceLogUpdate) AddUpdatedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) AddUpdatedAt(i int64) *FlowNodeInstanceLogUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceLogUpdate) ClearDeletedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) ClearDeletedAt() *FlowNodeInstanceLogUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogUpdate) ClearFlowInstanceDataID ¶
func (fnilu *FlowNodeInstanceLogUpdate) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpdate
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpdate) Exec ¶
func (fnilu *FlowNodeInstanceLogUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceLogUpdate) ExecX ¶
func (fnilu *FlowNodeInstanceLogUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogUpdate) Mutation ¶
func (fnilu *FlowNodeInstanceLogUpdate) Mutation() *FlowNodeInstanceLogMutation
Mutation returns the FlowNodeInstanceLogMutation object of the builder.
func (*FlowNodeInstanceLogUpdate) Save ¶
func (fnilu *FlowNodeInstanceLogUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowNodeInstanceLogUpdate) SaveX ¶
func (fnilu *FlowNodeInstanceLogUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowNodeInstanceLogUpdate) SetDeletedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetDeletedAt(i int64) *FlowNodeInstanceLogUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogUpdate) SetFlowInstanceDataID ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogUpdate
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpdate) SetFlowInstanceID ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetFlowInstanceID(s string) *FlowNodeInstanceLogUpdate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogUpdate) SetFlowNodeInstanceID ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogUpdate
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogUpdate) SetNillableDeletedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdate) SetNillableFlowInstanceDataID ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogUpdate
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdate) SetNillableStatus ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetNillableStatus(i *int8) *FlowNodeInstanceLogUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdate) SetNillableType ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetNillableType(i *int8) *FlowNodeInstanceLogUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdate) SetNodeKey ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetNodeKey(s string) *FlowNodeInstanceLogUpdate
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogUpdate) SetStatus ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetStatus(i int8) *FlowNodeInstanceLogUpdate
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogUpdate) SetType ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetType(i int8) *FlowNodeInstanceLogUpdate
SetType sets the "type" field.
func (*FlowNodeInstanceLogUpdate) SetUpdatedAt ¶
func (fnilu *FlowNodeInstanceLogUpdate) SetUpdatedAt(i int64) *FlowNodeInstanceLogUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceLogUpdate) Where ¶
func (fnilu *FlowNodeInstanceLogUpdate) Where(ps ...predicate.FlowNodeInstanceLog) *FlowNodeInstanceLogUpdate
Where appends a list predicates to the FlowNodeInstanceLogUpdate builder.
type FlowNodeInstanceLogUpdateOne ¶
type FlowNodeInstanceLogUpdateOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogUpdateOne is the builder for updating a single FlowNodeInstanceLog entity.
func (*FlowNodeInstanceLogUpdateOne) AddDeletedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) AddDeletedAt(i int64) *FlowNodeInstanceLogUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceLogUpdateOne) AddStatus ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) AddStatus(i int8) *FlowNodeInstanceLogUpdateOne
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceLogUpdateOne) AddType ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) AddType(i int8) *FlowNodeInstanceLogUpdateOne
AddType adds i to the "type" field.
func (*FlowNodeInstanceLogUpdateOne) AddUpdatedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) AddUpdatedAt(i int64) *FlowNodeInstanceLogUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceLogUpdateOne) ClearDeletedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) ClearDeletedAt() *FlowNodeInstanceLogUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogUpdateOne) ClearFlowInstanceDataID ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpdateOne
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpdateOne) Exec ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowNodeInstanceLogUpdateOne) ExecX ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogUpdateOne) Mutation ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) Mutation() *FlowNodeInstanceLogMutation
Mutation returns the FlowNodeInstanceLogMutation object of the builder.
func (*FlowNodeInstanceLogUpdateOne) Save ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) Save(ctx context.Context) (*FlowNodeInstanceLog, error)
Save executes the query and returns the updated FlowNodeInstanceLog entity.
func (*FlowNodeInstanceLogUpdateOne) SaveX ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SaveX(ctx context.Context) *FlowNodeInstanceLog
SaveX is like Save, but panics if an error occurs.
func (*FlowNodeInstanceLogUpdateOne) Select ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) Select(field string, fields ...string) *FlowNodeInstanceLogUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowNodeInstanceLogUpdateOne) SetDeletedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetDeletedAt(i int64) *FlowNodeInstanceLogUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogUpdateOne) SetFlowInstanceDataID ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowInstanceDataID(s string) *FlowNodeInstanceLogUpdateOne
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpdateOne) SetFlowInstanceID ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowInstanceID(s string) *FlowNodeInstanceLogUpdateOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogUpdateOne) SetFlowNodeInstanceID ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetFlowNodeInstanceID(s string) *FlowNodeInstanceLogUpdateOne
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogUpdateOne) SetNillableDeletedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableDeletedAt(i *int64) *FlowNodeInstanceLogUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdateOne) SetNillableFlowInstanceDataID ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceLogUpdateOne
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdateOne) SetNillableStatus ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableStatus(i *int8) *FlowNodeInstanceLogUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdateOne) SetNillableType ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetNillableType(i *int8) *FlowNodeInstanceLogUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*FlowNodeInstanceLogUpdateOne) SetNodeKey ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetNodeKey(s string) *FlowNodeInstanceLogUpdateOne
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogUpdateOne) SetStatus ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetStatus(i int8) *FlowNodeInstanceLogUpdateOne
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogUpdateOne) SetType ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetType(i int8) *FlowNodeInstanceLogUpdateOne
SetType sets the "type" field.
func (*FlowNodeInstanceLogUpdateOne) SetUpdatedAt ¶
func (fniluo *FlowNodeInstanceLogUpdateOne) SetUpdatedAt(i int64) *FlowNodeInstanceLogUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowNodeInstanceLogUpsert ¶
FlowNodeInstanceLogUpsert is the "OnConflict" setter.
func (*FlowNodeInstanceLogUpsert) AddCreatedAt ¶
func (u *FlowNodeInstanceLogUpsert) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceLogUpsert) AddDeletedAt ¶
func (u *FlowNodeInstanceLogUpsert) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceLogUpsert) AddStatus ¶
func (u *FlowNodeInstanceLogUpsert) AddStatus(v int8) *FlowNodeInstanceLogUpsert
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceLogUpsert) AddType ¶
func (u *FlowNodeInstanceLogUpsert) AddType(v int8) *FlowNodeInstanceLogUpsert
AddType adds v to the "type" field.
func (*FlowNodeInstanceLogUpsert) AddUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsert) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceLogUpsert) ClearDeletedAt ¶
func (u *FlowNodeInstanceLogUpsert) ClearDeletedAt() *FlowNodeInstanceLogUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogUpsert) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsert) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsert
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsert) SetCreatedAt ¶
func (u *FlowNodeInstanceLogUpsert) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceLogUpsert) SetDeletedAt ¶
func (u *FlowNodeInstanceLogUpsert) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogUpsert) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsert) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsert
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsert) SetFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsert) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsert
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogUpsert) SetFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsert) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsert
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogUpsert) SetNodeKey ¶
func (u *FlowNodeInstanceLogUpsert) SetNodeKey(v string) *FlowNodeInstanceLogUpsert
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogUpsert) SetStatus ¶
func (u *FlowNodeInstanceLogUpsert) SetStatus(v int8) *FlowNodeInstanceLogUpsert
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogUpsert) SetType ¶
func (u *FlowNodeInstanceLogUpsert) SetType(v int8) *FlowNodeInstanceLogUpsert
SetType sets the "type" field.
func (*FlowNodeInstanceLogUpsert) SetUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsert) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceLogUpsert) UpdateCreatedAt ¶
func (u *FlowNodeInstanceLogUpsert) UpdateCreatedAt() *FlowNodeInstanceLogUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateDeletedAt ¶
func (u *FlowNodeInstanceLogUpsert) UpdateDeletedAt() *FlowNodeInstanceLogUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsert) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsert
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsert) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsert
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsert) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsert
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateNodeKey ¶
func (u *FlowNodeInstanceLogUpsert) UpdateNodeKey() *FlowNodeInstanceLogUpsert
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateStatus ¶
func (u *FlowNodeInstanceLogUpsert) UpdateStatus() *FlowNodeInstanceLogUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateType ¶
func (u *FlowNodeInstanceLogUpsert) UpdateType() *FlowNodeInstanceLogUpsert
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsert) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsert) UpdateUpdatedAt() *FlowNodeInstanceLogUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstanceLogUpsertBulk ¶
type FlowNodeInstanceLogUpsertBulk struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogUpsertBulk is the builder for "upsert"-ing a bulk of FlowNodeInstanceLog nodes.
func (*FlowNodeInstanceLogUpsertBulk) AddCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceLogUpsertBulk) AddDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertBulk) AddStatus ¶
func (u *FlowNodeInstanceLogUpsertBulk) AddStatus(v int8) *FlowNodeInstanceLogUpsertBulk
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceLogUpsertBulk) AddType ¶
func (u *FlowNodeInstanceLogUpsertBulk) AddType(v int8) *FlowNodeInstanceLogUpsertBulk
AddType adds v to the "type" field.
func (*FlowNodeInstanceLogUpsertBulk) AddUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceLogUpsertBulk) ClearDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) ClearDeletedAt() *FlowNodeInstanceLogUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertBulk) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertBulk) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsertBulk
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsertBulk) DoNothing ¶
func (u *FlowNodeInstanceLogUpsertBulk) DoNothing() *FlowNodeInstanceLogUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowNodeInstanceLogUpsertBulk) Exec ¶
func (u *FlowNodeInstanceLogUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceLogUpsertBulk) ExecX ¶
func (u *FlowNodeInstanceLogUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogUpsertBulk) Ignore ¶
func (u *FlowNodeInstanceLogUpsertBulk) Ignore() *FlowNodeInstanceLogUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowNodeInstanceLogUpsertBulk) SetCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceLogUpsertBulk) SetDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertBulk) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsertBulk
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsertBulk) SetFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsertBulk
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogUpsertBulk) SetFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsertBulk
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogUpsertBulk) SetNodeKey ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetNodeKey(v string) *FlowNodeInstanceLogUpsertBulk
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogUpsertBulk) SetStatus ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetStatus(v int8) *FlowNodeInstanceLogUpsertBulk
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogUpsertBulk) SetType ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetType(v int8) *FlowNodeInstanceLogUpsertBulk
SetType sets the "type" field.
func (*FlowNodeInstanceLogUpsertBulk) SetUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceLogUpsertBulk) Update ¶
func (u *FlowNodeInstanceLogUpsertBulk) Update(set func(*FlowNodeInstanceLogUpsert)) *FlowNodeInstanceLogUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceLogCreateBulk.OnConflict documentation for more info.
func (*FlowNodeInstanceLogUpsertBulk) UpdateCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateCreatedAt() *FlowNodeInstanceLogUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateDeletedAt() *FlowNodeInstanceLogUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsertBulk
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsertBulk
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsertBulk
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateNewValues ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateNewValues() *FlowNodeInstanceLogUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flownodeinstancelog.FieldID) }), ). Exec(ctx)
func (*FlowNodeInstanceLogUpsertBulk) UpdateNodeKey ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateNodeKey() *FlowNodeInstanceLogUpsertBulk
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateStatus ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateStatus() *FlowNodeInstanceLogUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateType ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateType() *FlowNodeInstanceLogUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertBulk) UpdateUpdatedAt() *FlowNodeInstanceLogUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstanceLogUpsertOne ¶
type FlowNodeInstanceLogUpsertOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceLogUpsertOne is the builder for "upsert"-ing
one FlowNodeInstanceLog node.
func (*FlowNodeInstanceLogUpsertOne) AddCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) AddCreatedAt(v int64) *FlowNodeInstanceLogUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceLogUpsertOne) AddDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) AddDeletedAt(v int64) *FlowNodeInstanceLogUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertOne) AddStatus ¶
func (u *FlowNodeInstanceLogUpsertOne) AddStatus(v int8) *FlowNodeInstanceLogUpsertOne
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceLogUpsertOne) AddType ¶
func (u *FlowNodeInstanceLogUpsertOne) AddType(v int8) *FlowNodeInstanceLogUpsertOne
AddType adds v to the "type" field.
func (*FlowNodeInstanceLogUpsertOne) AddUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) AddUpdatedAt(v int64) *FlowNodeInstanceLogUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceLogUpsertOne) ClearDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) ClearDeletedAt() *FlowNodeInstanceLogUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertOne) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertOne) ClearFlowInstanceDataID() *FlowNodeInstanceLogUpsertOne
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsertOne) DoNothing ¶
func (u *FlowNodeInstanceLogUpsertOne) DoNothing() *FlowNodeInstanceLogUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowNodeInstanceLogUpsertOne) Exec ¶
func (u *FlowNodeInstanceLogUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceLogUpsertOne) ExecX ¶
func (u *FlowNodeInstanceLogUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceLogUpsertOne) ID ¶
func (u *FlowNodeInstanceLogUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowNodeInstanceLogUpsertOne) IDX ¶
func (u *FlowNodeInstanceLogUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowNodeInstanceLogUpsertOne) Ignore ¶
func (u *FlowNodeInstanceLogUpsertOne) Ignore() *FlowNodeInstanceLogUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowNodeInstanceLogUpsertOne) SetCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) SetCreatedAt(v int64) *FlowNodeInstanceLogUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceLogUpsertOne) SetDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) SetDeletedAt(v int64) *FlowNodeInstanceLogUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceLogUpsertOne) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertOne) SetFlowInstanceDataID(v string) *FlowNodeInstanceLogUpsertOne
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceLogUpsertOne) SetFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsertOne) SetFlowInstanceID(v string) *FlowNodeInstanceLogUpsertOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceLogUpsertOne) SetFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsertOne) SetFlowNodeInstanceID(v string) *FlowNodeInstanceLogUpsertOne
SetFlowNodeInstanceID sets the "flow_node_instance_id" field.
func (*FlowNodeInstanceLogUpsertOne) SetNodeKey ¶
func (u *FlowNodeInstanceLogUpsertOne) SetNodeKey(v string) *FlowNodeInstanceLogUpsertOne
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceLogUpsertOne) SetStatus ¶
func (u *FlowNodeInstanceLogUpsertOne) SetStatus(v int8) *FlowNodeInstanceLogUpsertOne
SetStatus sets the "status" field.
func (*FlowNodeInstanceLogUpsertOne) SetType ¶
func (u *FlowNodeInstanceLogUpsertOne) SetType(v int8) *FlowNodeInstanceLogUpsertOne
SetType sets the "type" field.
func (*FlowNodeInstanceLogUpsertOne) SetUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) SetUpdatedAt(v int64) *FlowNodeInstanceLogUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceLogUpsertOne) Update ¶
func (u *FlowNodeInstanceLogUpsertOne) Update(set func(*FlowNodeInstanceLogUpsert)) *FlowNodeInstanceLogUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceLogCreate.OnConflict documentation for more info.
func (*FlowNodeInstanceLogUpsertOne) UpdateCreatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateCreatedAt() *FlowNodeInstanceLogUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateDeletedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateDeletedAt() *FlowNodeInstanceLogUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceDataID() *FlowNodeInstanceLogUpsertOne
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowInstanceID() *FlowNodeInstanceLogUpsertOne
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateFlowNodeInstanceID ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateFlowNodeInstanceID() *FlowNodeInstanceLogUpsertOne
UpdateFlowNodeInstanceID sets the "flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateNewValues ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateNewValues() *FlowNodeInstanceLogUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowNodeInstanceLog.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flownodeinstancelog.FieldID) }), ). Exec(ctx)
func (*FlowNodeInstanceLogUpsertOne) UpdateNodeKey ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateNodeKey() *FlowNodeInstanceLogUpsertOne
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateStatus ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateStatus() *FlowNodeInstanceLogUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateType ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateType() *FlowNodeInstanceLogUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*FlowNodeInstanceLogUpsertOne) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceLogUpsertOne) UpdateUpdatedAt() *FlowNodeInstanceLogUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstanceLogs ¶
type FlowNodeInstanceLogs []*FlowNodeInstanceLog
FlowNodeInstanceLogs is a parsable slice of FlowNodeInstanceLog.
type FlowNodeInstanceMutation ¶
type FlowNodeInstanceMutation struct {
// contains filtered or unexported fields
}
FlowNodeInstanceMutation represents an operation that mutates the FlowNodeInstance nodes in the graph.
func (*FlowNodeInstanceMutation) AddCreatedAt ¶
func (m *FlowNodeInstanceMutation) AddCreatedAt(i int64)
AddCreatedAt adds i to the "created_at" field.
func (*FlowNodeInstanceMutation) AddDeletedAt ¶
func (m *FlowNodeInstanceMutation) AddDeletedAt(i int64)
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceMutation) AddField ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) AddStatus ¶
func (m *FlowNodeInstanceMutation) AddStatus(i int8)
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceMutation) AddUpdatedAt ¶
func (m *FlowNodeInstanceMutation) AddUpdatedAt(i int64)
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceMutation) AddedCreatedAt ¶
func (m *FlowNodeInstanceMutation) AddedCreatedAt() (r int64, exists bool)
AddedCreatedAt returns the value that was added to the "created_at" field in this mutation.
func (*FlowNodeInstanceMutation) AddedDeletedAt ¶
func (m *FlowNodeInstanceMutation) AddedDeletedAt() (r int64, exists bool)
AddedDeletedAt returns the value that was added to the "deleted_at" field in this mutation.
func (*FlowNodeInstanceMutation) AddedEdges ¶
func (m *FlowNodeInstanceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FlowNodeInstanceMutation) AddedField ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) AddedFields ¶
func (m *FlowNodeInstanceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FlowNodeInstanceMutation) AddedIDs ¶
func (m *FlowNodeInstanceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FlowNodeInstanceMutation) AddedStatus ¶
func (m *FlowNodeInstanceMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*FlowNodeInstanceMutation) AddedUpdatedAt ¶
func (m *FlowNodeInstanceMutation) AddedUpdatedAt() (r int64, exists bool)
AddedUpdatedAt returns the value that was added to the "updated_at" field in this mutation.
func (*FlowNodeInstanceMutation) ClearDeletedAt ¶
func (m *FlowNodeInstanceMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceMutation) ClearEdge ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) ClearField ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) ClearFlowInstance ¶
func (m *FlowNodeInstanceMutation) ClearFlowInstance()
ClearFlowInstance clears the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceMutation) ClearFlowInstanceDataID ¶
func (m *FlowNodeInstanceMutation) ClearFlowInstanceDataID()
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceMutation) ClearSourceFlowNodeInstanceID ¶
func (m *FlowNodeInstanceMutation) ClearSourceFlowNodeInstanceID()
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceMutation) ClearSourceNodeKey ¶
func (m *FlowNodeInstanceMutation) ClearSourceNodeKey()
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceMutation) ClearedEdges ¶
func (m *FlowNodeInstanceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FlowNodeInstanceMutation) ClearedFields ¶
func (m *FlowNodeInstanceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FlowNodeInstanceMutation) Client ¶
func (m FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) CreatedAt ¶
func (m *FlowNodeInstanceMutation) CreatedAt() (r int64, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FlowNodeInstanceMutation) DeletedAt ¶
func (m *FlowNodeInstanceMutation) DeletedAt() (r int64, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FlowNodeInstanceMutation) DeletedAtCleared ¶
func (m *FlowNodeInstanceMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FlowNodeInstanceMutation) EdgeCleared ¶
func (m *FlowNodeInstanceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FlowNodeInstanceMutation) Field ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) FieldCleared ¶
func (m *FlowNodeInstanceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FlowNodeInstanceMutation) Fields ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) FlowInstanceCleared ¶
func (m *FlowNodeInstanceMutation) FlowInstanceCleared() bool
FlowInstanceCleared reports if the "flow_instance" edge to the FlowInstance entity was cleared.
func (*FlowNodeInstanceMutation) FlowInstanceDataID ¶
func (m *FlowNodeInstanceMutation) FlowInstanceDataID() (r string, exists bool)
FlowInstanceDataID returns the value of the "flow_instance_data_id" field in the mutation.
func (*FlowNodeInstanceMutation) FlowInstanceDataIDCleared ¶
func (m *FlowNodeInstanceMutation) FlowInstanceDataIDCleared() bool
FlowInstanceDataIDCleared returns if the "flow_instance_data_id" field was cleared in this mutation.
func (*FlowNodeInstanceMutation) FlowInstanceID ¶
func (m *FlowNodeInstanceMutation) FlowInstanceID() (r string, exists bool)
FlowInstanceID returns the value of the "flow_instance_id" field in the mutation.
func (*FlowNodeInstanceMutation) FlowInstanceIDs ¶
func (m *FlowNodeInstanceMutation) FlowInstanceIDs() (ids []string)
FlowInstanceIDs returns the "flow_instance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FlowInstanceID instead. It exists only for internal usage by the builders.
func (*FlowNodeInstanceMutation) ID ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) IDs ¶
func (m *FlowNodeInstanceMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FlowNodeInstanceMutation) NodeKey ¶
func (m *FlowNodeInstanceMutation) NodeKey() (r string, exists bool)
NodeKey returns the value of the "node_key" field in the mutation.
func (*FlowNodeInstanceMutation) OldCreatedAt ¶
func (m *FlowNodeInstanceMutation) OldCreatedAt(ctx context.Context) (v int64, err error)
OldCreatedAt returns the old "created_at" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldDeletedAt ¶
func (m *FlowNodeInstanceMutation) OldDeletedAt(ctx context.Context) (v int64, err error)
OldDeletedAt returns the old "deleted_at" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) OldFlowInstanceDataID ¶
func (m *FlowNodeInstanceMutation) OldFlowInstanceDataID(ctx context.Context) (v string, err error)
OldFlowInstanceDataID returns the old "flow_instance_data_id" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldFlowInstanceID ¶
func (m *FlowNodeInstanceMutation) OldFlowInstanceID(ctx context.Context) (v string, err error)
OldFlowInstanceID returns the old "flow_instance_id" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldNodeKey ¶
func (m *FlowNodeInstanceMutation) OldNodeKey(ctx context.Context) (v string, err error)
OldNodeKey returns the old "node_key" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldSourceFlowNodeInstanceID ¶
func (m *FlowNodeInstanceMutation) OldSourceFlowNodeInstanceID(ctx context.Context) (v string, err error)
OldSourceFlowNodeInstanceID returns the old "source_flow_node_instance_id" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldSourceNodeKey ¶
func (m *FlowNodeInstanceMutation) OldSourceNodeKey(ctx context.Context) (v string, err error)
OldSourceNodeKey returns the old "source_node_key" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldStatus ¶
func (m *FlowNodeInstanceMutation) OldStatus(ctx context.Context) (v int8, err error)
OldStatus returns the old "status" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) OldUpdatedAt ¶
func (m *FlowNodeInstanceMutation) OldUpdatedAt(ctx context.Context) (v int64, err error)
OldUpdatedAt returns the old "updated_at" field's value of the FlowNodeInstance entity. If the FlowNodeInstance 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 (*FlowNodeInstanceMutation) Op ¶
func (m *FlowNodeInstanceMutation) Op() Op
Op returns the operation name.
func (*FlowNodeInstanceMutation) RemovedEdges ¶
func (m *FlowNodeInstanceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FlowNodeInstanceMutation) RemovedIDs ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) ResetCreatedAt ¶
func (m *FlowNodeInstanceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FlowNodeInstanceMutation) ResetDeletedAt ¶
func (m *FlowNodeInstanceMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FlowNodeInstanceMutation) ResetEdge ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) ResetField ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) ResetFlowInstance ¶
func (m *FlowNodeInstanceMutation) ResetFlowInstance()
ResetFlowInstance resets all changes to the "flow_instance" edge.
func (*FlowNodeInstanceMutation) ResetFlowInstanceDataID ¶
func (m *FlowNodeInstanceMutation) ResetFlowInstanceDataID()
ResetFlowInstanceDataID resets all changes to the "flow_instance_data_id" field.
func (*FlowNodeInstanceMutation) ResetFlowInstanceID ¶
func (m *FlowNodeInstanceMutation) ResetFlowInstanceID()
ResetFlowInstanceID resets all changes to the "flow_instance_id" field.
func (*FlowNodeInstanceMutation) ResetNodeKey ¶
func (m *FlowNodeInstanceMutation) ResetNodeKey()
ResetNodeKey resets all changes to the "node_key" field.
func (*FlowNodeInstanceMutation) ResetSourceFlowNodeInstanceID ¶
func (m *FlowNodeInstanceMutation) ResetSourceFlowNodeInstanceID()
ResetSourceFlowNodeInstanceID resets all changes to the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceMutation) ResetSourceNodeKey ¶
func (m *FlowNodeInstanceMutation) ResetSourceNodeKey()
ResetSourceNodeKey resets all changes to the "source_node_key" field.
func (*FlowNodeInstanceMutation) ResetStatus ¶
func (m *FlowNodeInstanceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FlowNodeInstanceMutation) ResetUpdatedAt ¶
func (m *FlowNodeInstanceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FlowNodeInstanceMutation) SetCreatedAt ¶
func (m *FlowNodeInstanceMutation) SetCreatedAt(i int64)
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceMutation) SetDeletedAt ¶
func (m *FlowNodeInstanceMutation) SetDeletedAt(i int64)
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceMutation) SetField ¶
func (m *FlowNodeInstanceMutation) 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 (*FlowNodeInstanceMutation) SetFlowInstanceDataID ¶
func (m *FlowNodeInstanceMutation) SetFlowInstanceDataID(s string)
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceMutation) SetFlowInstanceID ¶
func (m *FlowNodeInstanceMutation) SetFlowInstanceID(s string)
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceMutation) SetID ¶
func (m *FlowNodeInstanceMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FlowNodeInstance entities.
func (*FlowNodeInstanceMutation) SetNodeKey ¶
func (m *FlowNodeInstanceMutation) SetNodeKey(s string)
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceMutation) SetSourceFlowNodeInstanceID ¶
func (m *FlowNodeInstanceMutation) SetSourceFlowNodeInstanceID(s string)
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceMutation) SetSourceNodeKey ¶
func (m *FlowNodeInstanceMutation) SetSourceNodeKey(s string)
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceMutation) SetStatus ¶
func (m *FlowNodeInstanceMutation) SetStatus(i int8)
SetStatus sets the "status" field.
func (*FlowNodeInstanceMutation) SetUpdatedAt ¶
func (m *FlowNodeInstanceMutation) SetUpdatedAt(i int64)
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceMutation) SourceFlowNodeInstanceID ¶
func (m *FlowNodeInstanceMutation) SourceFlowNodeInstanceID() (r string, exists bool)
SourceFlowNodeInstanceID returns the value of the "source_flow_node_instance_id" field in the mutation.
func (*FlowNodeInstanceMutation) SourceFlowNodeInstanceIDCleared ¶
func (m *FlowNodeInstanceMutation) SourceFlowNodeInstanceIDCleared() bool
SourceFlowNodeInstanceIDCleared returns if the "source_flow_node_instance_id" field was cleared in this mutation.
func (*FlowNodeInstanceMutation) SourceNodeKey ¶
func (m *FlowNodeInstanceMutation) SourceNodeKey() (r string, exists bool)
SourceNodeKey returns the value of the "source_node_key" field in the mutation.
func (*FlowNodeInstanceMutation) SourceNodeKeyCleared ¶
func (m *FlowNodeInstanceMutation) SourceNodeKeyCleared() bool
SourceNodeKeyCleared returns if the "source_node_key" field was cleared in this mutation.
func (*FlowNodeInstanceMutation) Status ¶
func (m *FlowNodeInstanceMutation) Status() (r int8, exists bool)
Status returns the value of the "status" field in the mutation.
func (FlowNodeInstanceMutation) Tx ¶
func (m FlowNodeInstanceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FlowNodeInstanceMutation) Type ¶
func (m *FlowNodeInstanceMutation) Type() string
Type returns the node type of this mutation (FlowNodeInstance).
func (*FlowNodeInstanceMutation) UpdatedAt ¶
func (m *FlowNodeInstanceMutation) UpdatedAt() (r int64, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FlowNodeInstanceMutation) Where ¶
func (m *FlowNodeInstanceMutation) Where(ps ...predicate.FlowNodeInstance)
Where appends a list predicates to the FlowNodeInstanceMutation builder.
type FlowNodeInstanceQuery ¶
type FlowNodeInstanceQuery struct {
// contains filtered or unexported fields
}
FlowNodeInstanceQuery is the builder for querying FlowNodeInstance entities.
func (*FlowNodeInstanceQuery) All ¶
func (fniq *FlowNodeInstanceQuery) All(ctx context.Context) ([]*FlowNodeInstance, error)
All executes the query and returns a list of FlowNodeInstances.
func (*FlowNodeInstanceQuery) AllX ¶
func (fniq *FlowNodeInstanceQuery) AllX(ctx context.Context) []*FlowNodeInstance
AllX is like All, but panics if an error occurs.
func (*FlowNodeInstanceQuery) Clone ¶
func (fniq *FlowNodeInstanceQuery) Clone() *FlowNodeInstanceQuery
Clone returns a duplicate of the FlowNodeInstanceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FlowNodeInstanceQuery) Count ¶
func (fniq *FlowNodeInstanceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FlowNodeInstanceQuery) CountX ¶
func (fniq *FlowNodeInstanceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FlowNodeInstanceQuery) Exist ¶
func (fniq *FlowNodeInstanceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FlowNodeInstanceQuery) ExistX ¶
func (fniq *FlowNodeInstanceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FlowNodeInstanceQuery) First ¶
func (fniq *FlowNodeInstanceQuery) First(ctx context.Context) (*FlowNodeInstance, error)
First returns the first FlowNodeInstance entity from the query. Returns a *NotFoundError when no FlowNodeInstance was found.
func (*FlowNodeInstanceQuery) FirstID ¶
func (fniq *FlowNodeInstanceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first FlowNodeInstance ID from the query. Returns a *NotFoundError when no FlowNodeInstance ID was found.
func (*FlowNodeInstanceQuery) FirstIDX ¶
func (fniq *FlowNodeInstanceQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FlowNodeInstanceQuery) FirstX ¶
func (fniq *FlowNodeInstanceQuery) FirstX(ctx context.Context) *FlowNodeInstance
FirstX is like First, but panics if an error occurs.
func (*FlowNodeInstanceQuery) GroupBy ¶
func (fniq *FlowNodeInstanceQuery) GroupBy(field string, fields ...string) *FlowNodeInstanceGroupBy
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 { CreatedAt int64 `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.FlowNodeInstance.Query(). GroupBy(flownodeinstance.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FlowNodeInstanceQuery) IDs ¶
func (fniq *FlowNodeInstanceQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of FlowNodeInstance IDs.
func (*FlowNodeInstanceQuery) IDsX ¶
func (fniq *FlowNodeInstanceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FlowNodeInstanceQuery) Limit ¶
func (fniq *FlowNodeInstanceQuery) Limit(limit int) *FlowNodeInstanceQuery
Limit adds a limit step to the query.
func (*FlowNodeInstanceQuery) Offset ¶
func (fniq *FlowNodeInstanceQuery) Offset(offset int) *FlowNodeInstanceQuery
Offset adds an offset step to the query.
func (*FlowNodeInstanceQuery) Only ¶
func (fniq *FlowNodeInstanceQuery) Only(ctx context.Context) (*FlowNodeInstance, error)
Only returns a single FlowNodeInstance entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FlowNodeInstance entity is found. Returns a *NotFoundError when no FlowNodeInstance entities are found.
func (*FlowNodeInstanceQuery) OnlyID ¶
func (fniq *FlowNodeInstanceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only FlowNodeInstance ID in the query. Returns a *NotSingularError when more than one FlowNodeInstance ID is found. Returns a *NotFoundError when no entities are found.
func (*FlowNodeInstanceQuery) OnlyIDX ¶
func (fniq *FlowNodeInstanceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FlowNodeInstanceQuery) OnlyX ¶
func (fniq *FlowNodeInstanceQuery) OnlyX(ctx context.Context) *FlowNodeInstance
OnlyX is like Only, but panics if an error occurs.
func (*FlowNodeInstanceQuery) Order ¶
func (fniq *FlowNodeInstanceQuery) Order(o ...OrderFunc) *FlowNodeInstanceQuery
Order adds an order step to the query.
func (*FlowNodeInstanceQuery) QueryFlowInstance ¶
func (fniq *FlowNodeInstanceQuery) QueryFlowInstance() *FlowInstanceQuery
QueryFlowInstance chains the current query on the "flow_instance" edge.
func (*FlowNodeInstanceQuery) Select ¶
func (fniq *FlowNodeInstanceQuery) Select(fields ...string) *FlowNodeInstanceSelect
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 { CreatedAt int64 `json:"created_at,omitempty"` } client.FlowNodeInstance.Query(). Select(flownodeinstance.FieldCreatedAt). Scan(ctx, &v)
func (*FlowNodeInstanceQuery) Unique ¶
func (fniq *FlowNodeInstanceQuery) Unique(unique bool) *FlowNodeInstanceQuery
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 (*FlowNodeInstanceQuery) Where ¶
func (fniq *FlowNodeInstanceQuery) Where(ps ...predicate.FlowNodeInstance) *FlowNodeInstanceQuery
Where adds a new predicate for the FlowNodeInstanceQuery builder.
func (*FlowNodeInstanceQuery) WithFlowInstance ¶
func (fniq *FlowNodeInstanceQuery) WithFlowInstance(opts ...func(*FlowInstanceQuery)) *FlowNodeInstanceQuery
WithFlowInstance tells the query-builder to eager-load the nodes that are connected to the "flow_instance" edge. The optional arguments are used to configure the query builder of the edge.
type FlowNodeInstanceSelect ¶
type FlowNodeInstanceSelect struct { *FlowNodeInstanceQuery // contains filtered or unexported fields }
FlowNodeInstanceSelect is the builder for selecting fields of FlowNodeInstance entities.
func (*FlowNodeInstanceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FlowNodeInstanceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FlowNodeInstanceSelect) Scan ¶
func (fnis *FlowNodeInstanceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*FlowNodeInstanceSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FlowNodeInstanceUpdate ¶
type FlowNodeInstanceUpdate struct {
// contains filtered or unexported fields
}
FlowNodeInstanceUpdate is the builder for updating FlowNodeInstance entities.
func (*FlowNodeInstanceUpdate) AddDeletedAt ¶
func (fniu *FlowNodeInstanceUpdate) AddDeletedAt(i int64) *FlowNodeInstanceUpdate
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceUpdate) AddStatus ¶
func (fniu *FlowNodeInstanceUpdate) AddStatus(i int8) *FlowNodeInstanceUpdate
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceUpdate) AddUpdatedAt ¶
func (fniu *FlowNodeInstanceUpdate) AddUpdatedAt(i int64) *FlowNodeInstanceUpdate
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceUpdate) ClearDeletedAt ¶
func (fniu *FlowNodeInstanceUpdate) ClearDeletedAt() *FlowNodeInstanceUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceUpdate) ClearFlowInstance ¶
func (fniu *FlowNodeInstanceUpdate) ClearFlowInstance() *FlowNodeInstanceUpdate
ClearFlowInstance clears the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceUpdate) ClearFlowInstanceDataID ¶
func (fniu *FlowNodeInstanceUpdate) ClearFlowInstanceDataID() *FlowNodeInstanceUpdate
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpdate) ClearSourceFlowNodeInstanceID ¶
func (fniu *FlowNodeInstanceUpdate) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpdate
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpdate) ClearSourceNodeKey ¶
func (fniu *FlowNodeInstanceUpdate) ClearSourceNodeKey() *FlowNodeInstanceUpdate
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceUpdate) Exec ¶
func (fniu *FlowNodeInstanceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceUpdate) ExecX ¶
func (fniu *FlowNodeInstanceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceUpdate) Mutation ¶
func (fniu *FlowNodeInstanceUpdate) Mutation() *FlowNodeInstanceMutation
Mutation returns the FlowNodeInstanceMutation object of the builder.
func (*FlowNodeInstanceUpdate) Save ¶
func (fniu *FlowNodeInstanceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FlowNodeInstanceUpdate) SaveX ¶
func (fniu *FlowNodeInstanceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FlowNodeInstanceUpdate) SetDeletedAt ¶
func (fniu *FlowNodeInstanceUpdate) SetDeletedAt(i int64) *FlowNodeInstanceUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceUpdate) SetFlowInstance ¶
func (fniu *FlowNodeInstanceUpdate) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceUpdate
SetFlowInstance sets the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceUpdate) SetFlowInstanceDataID ¶
func (fniu *FlowNodeInstanceUpdate) SetFlowInstanceDataID(s string) *FlowNodeInstanceUpdate
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpdate) SetFlowInstanceID ¶
func (fniu *FlowNodeInstanceUpdate) SetFlowInstanceID(s string) *FlowNodeInstanceUpdate
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceUpdate) SetNillableDeletedAt ¶
func (fniu *FlowNodeInstanceUpdate) SetNillableDeletedAt(i *int64) *FlowNodeInstanceUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceUpdate) SetNillableFlowInstanceDataID ¶
func (fniu *FlowNodeInstanceUpdate) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceUpdate
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceUpdate) SetNillableSourceFlowNodeInstanceID ¶
func (fniu *FlowNodeInstanceUpdate) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceUpdate
SetNillableSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field if the given value is not nil.
func (*FlowNodeInstanceUpdate) SetNillableSourceNodeKey ¶
func (fniu *FlowNodeInstanceUpdate) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceUpdate
SetNillableSourceNodeKey sets the "source_node_key" field if the given value is not nil.
func (*FlowNodeInstanceUpdate) SetNillableStatus ¶
func (fniu *FlowNodeInstanceUpdate) SetNillableStatus(i *int8) *FlowNodeInstanceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceUpdate) SetNodeKey ¶
func (fniu *FlowNodeInstanceUpdate) SetNodeKey(s string) *FlowNodeInstanceUpdate
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceUpdate) SetSourceFlowNodeInstanceID ¶
func (fniu *FlowNodeInstanceUpdate) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceUpdate
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpdate) SetSourceNodeKey ¶
func (fniu *FlowNodeInstanceUpdate) SetSourceNodeKey(s string) *FlowNodeInstanceUpdate
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceUpdate) SetStatus ¶
func (fniu *FlowNodeInstanceUpdate) SetStatus(i int8) *FlowNodeInstanceUpdate
SetStatus sets the "status" field.
func (*FlowNodeInstanceUpdate) SetUpdatedAt ¶
func (fniu *FlowNodeInstanceUpdate) SetUpdatedAt(i int64) *FlowNodeInstanceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceUpdate) Where ¶
func (fniu *FlowNodeInstanceUpdate) Where(ps ...predicate.FlowNodeInstance) *FlowNodeInstanceUpdate
Where appends a list predicates to the FlowNodeInstanceUpdate builder.
type FlowNodeInstanceUpdateOne ¶
type FlowNodeInstanceUpdateOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceUpdateOne is the builder for updating a single FlowNodeInstance entity.
func (*FlowNodeInstanceUpdateOne) AddDeletedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) AddDeletedAt(i int64) *FlowNodeInstanceUpdateOne
AddDeletedAt adds i to the "deleted_at" field.
func (*FlowNodeInstanceUpdateOne) AddStatus ¶
func (fniuo *FlowNodeInstanceUpdateOne) AddStatus(i int8) *FlowNodeInstanceUpdateOne
AddStatus adds i to the "status" field.
func (*FlowNodeInstanceUpdateOne) AddUpdatedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) AddUpdatedAt(i int64) *FlowNodeInstanceUpdateOne
AddUpdatedAt adds i to the "updated_at" field.
func (*FlowNodeInstanceUpdateOne) ClearDeletedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) ClearDeletedAt() *FlowNodeInstanceUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceUpdateOne) ClearFlowInstance ¶
func (fniuo *FlowNodeInstanceUpdateOne) ClearFlowInstance() *FlowNodeInstanceUpdateOne
ClearFlowInstance clears the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceUpdateOne) ClearFlowInstanceDataID ¶
func (fniuo *FlowNodeInstanceUpdateOne) ClearFlowInstanceDataID() *FlowNodeInstanceUpdateOne
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpdateOne) ClearSourceFlowNodeInstanceID ¶
func (fniuo *FlowNodeInstanceUpdateOne) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpdateOne
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpdateOne) ClearSourceNodeKey ¶
func (fniuo *FlowNodeInstanceUpdateOne) ClearSourceNodeKey() *FlowNodeInstanceUpdateOne
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceUpdateOne) Exec ¶
func (fniuo *FlowNodeInstanceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FlowNodeInstanceUpdateOne) ExecX ¶
func (fniuo *FlowNodeInstanceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceUpdateOne) Mutation ¶
func (fniuo *FlowNodeInstanceUpdateOne) Mutation() *FlowNodeInstanceMutation
Mutation returns the FlowNodeInstanceMutation object of the builder.
func (*FlowNodeInstanceUpdateOne) Save ¶
func (fniuo *FlowNodeInstanceUpdateOne) Save(ctx context.Context) (*FlowNodeInstance, error)
Save executes the query and returns the updated FlowNodeInstance entity.
func (*FlowNodeInstanceUpdateOne) SaveX ¶
func (fniuo *FlowNodeInstanceUpdateOne) SaveX(ctx context.Context) *FlowNodeInstance
SaveX is like Save, but panics if an error occurs.
func (*FlowNodeInstanceUpdateOne) Select ¶
func (fniuo *FlowNodeInstanceUpdateOne) Select(field string, fields ...string) *FlowNodeInstanceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FlowNodeInstanceUpdateOne) SetDeletedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetDeletedAt(i int64) *FlowNodeInstanceUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceUpdateOne) SetFlowInstance ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstance(f *FlowInstance) *FlowNodeInstanceUpdateOne
SetFlowInstance sets the "flow_instance" edge to the FlowInstance entity.
func (*FlowNodeInstanceUpdateOne) SetFlowInstanceDataID ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstanceDataID(s string) *FlowNodeInstanceUpdateOne
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpdateOne) SetFlowInstanceID ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetFlowInstanceID(s string) *FlowNodeInstanceUpdateOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceUpdateOne) SetNillableDeletedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNillableDeletedAt(i *int64) *FlowNodeInstanceUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FlowNodeInstanceUpdateOne) SetNillableFlowInstanceDataID ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNillableFlowInstanceDataID(s *string) *FlowNodeInstanceUpdateOne
SetNillableFlowInstanceDataID sets the "flow_instance_data_id" field if the given value is not nil.
func (*FlowNodeInstanceUpdateOne) SetNillableSourceFlowNodeInstanceID ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNillableSourceFlowNodeInstanceID(s *string) *FlowNodeInstanceUpdateOne
SetNillableSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field if the given value is not nil.
func (*FlowNodeInstanceUpdateOne) SetNillableSourceNodeKey ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNillableSourceNodeKey(s *string) *FlowNodeInstanceUpdateOne
SetNillableSourceNodeKey sets the "source_node_key" field if the given value is not nil.
func (*FlowNodeInstanceUpdateOne) SetNillableStatus ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNillableStatus(i *int8) *FlowNodeInstanceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FlowNodeInstanceUpdateOne) SetNodeKey ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetNodeKey(s string) *FlowNodeInstanceUpdateOne
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceUpdateOne) SetSourceFlowNodeInstanceID ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetSourceFlowNodeInstanceID(s string) *FlowNodeInstanceUpdateOne
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpdateOne) SetSourceNodeKey ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetSourceNodeKey(s string) *FlowNodeInstanceUpdateOne
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceUpdateOne) SetStatus ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetStatus(i int8) *FlowNodeInstanceUpdateOne
SetStatus sets the "status" field.
func (*FlowNodeInstanceUpdateOne) SetUpdatedAt ¶
func (fniuo *FlowNodeInstanceUpdateOne) SetUpdatedAt(i int64) *FlowNodeInstanceUpdateOne
SetUpdatedAt sets the "updated_at" field.
type FlowNodeInstanceUpsert ¶
FlowNodeInstanceUpsert is the "OnConflict" setter.
func (*FlowNodeInstanceUpsert) AddCreatedAt ¶
func (u *FlowNodeInstanceUpsert) AddCreatedAt(v int64) *FlowNodeInstanceUpsert
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceUpsert) AddDeletedAt ¶
func (u *FlowNodeInstanceUpsert) AddDeletedAt(v int64) *FlowNodeInstanceUpsert
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceUpsert) AddStatus ¶
func (u *FlowNodeInstanceUpsert) AddStatus(v int8) *FlowNodeInstanceUpsert
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceUpsert) AddUpdatedAt ¶
func (u *FlowNodeInstanceUpsert) AddUpdatedAt(v int64) *FlowNodeInstanceUpsert
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceUpsert) ClearDeletedAt ¶
func (u *FlowNodeInstanceUpsert) ClearDeletedAt() *FlowNodeInstanceUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceUpsert) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsert) ClearFlowInstanceDataID() *FlowNodeInstanceUpsert
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsert) ClearSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsert) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsert
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsert) ClearSourceNodeKey ¶
func (u *FlowNodeInstanceUpsert) ClearSourceNodeKey() *FlowNodeInstanceUpsert
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceUpsert) SetCreatedAt ¶
func (u *FlowNodeInstanceUpsert) SetCreatedAt(v int64) *FlowNodeInstanceUpsert
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceUpsert) SetDeletedAt ¶
func (u *FlowNodeInstanceUpsert) SetDeletedAt(v int64) *FlowNodeInstanceUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceUpsert) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsert) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsert
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsert) SetFlowInstanceID ¶
func (u *FlowNodeInstanceUpsert) SetFlowInstanceID(v string) *FlowNodeInstanceUpsert
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceUpsert) SetNodeKey ¶
func (u *FlowNodeInstanceUpsert) SetNodeKey(v string) *FlowNodeInstanceUpsert
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceUpsert) SetSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsert) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsert
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsert) SetSourceNodeKey ¶
func (u *FlowNodeInstanceUpsert) SetSourceNodeKey(v string) *FlowNodeInstanceUpsert
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceUpsert) SetStatus ¶
func (u *FlowNodeInstanceUpsert) SetStatus(v int8) *FlowNodeInstanceUpsert
SetStatus sets the "status" field.
func (*FlowNodeInstanceUpsert) SetUpdatedAt ¶
func (u *FlowNodeInstanceUpsert) SetUpdatedAt(v int64) *FlowNodeInstanceUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceUpsert) UpdateCreatedAt ¶
func (u *FlowNodeInstanceUpsert) UpdateCreatedAt() *FlowNodeInstanceUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateDeletedAt ¶
func (u *FlowNodeInstanceUpsert) UpdateDeletedAt() *FlowNodeInstanceUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsert) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsert
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceUpsert) UpdateFlowInstanceID() *FlowNodeInstanceUpsert
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateNodeKey ¶
func (u *FlowNodeInstanceUpsert) UpdateNodeKey() *FlowNodeInstanceUpsert
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsert) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsert
UpdateSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateSourceNodeKey ¶
func (u *FlowNodeInstanceUpsert) UpdateSourceNodeKey() *FlowNodeInstanceUpsert
UpdateSourceNodeKey sets the "source_node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateStatus ¶
func (u *FlowNodeInstanceUpsert) UpdateStatus() *FlowNodeInstanceUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceUpsert) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceUpsert) UpdateUpdatedAt() *FlowNodeInstanceUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstanceUpsertBulk ¶
type FlowNodeInstanceUpsertBulk struct {
// contains filtered or unexported fields
}
FlowNodeInstanceUpsertBulk is the builder for "upsert"-ing a bulk of FlowNodeInstance nodes.
func (*FlowNodeInstanceUpsertBulk) AddCreatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) AddCreatedAt(v int64) *FlowNodeInstanceUpsertBulk
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceUpsertBulk) AddDeletedAt ¶
func (u *FlowNodeInstanceUpsertBulk) AddDeletedAt(v int64) *FlowNodeInstanceUpsertBulk
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceUpsertBulk) AddStatus ¶
func (u *FlowNodeInstanceUpsertBulk) AddStatus(v int8) *FlowNodeInstanceUpsertBulk
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceUpsertBulk) AddUpdatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) AddUpdatedAt(v int64) *FlowNodeInstanceUpsertBulk
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceUpsertBulk) ClearDeletedAt ¶
func (u *FlowNodeInstanceUpsertBulk) ClearDeletedAt() *FlowNodeInstanceUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceUpsertBulk) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertBulk) ClearFlowInstanceDataID() *FlowNodeInstanceUpsertBulk
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsertBulk) ClearSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertBulk) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertBulk
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsertBulk) ClearSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertBulk) ClearSourceNodeKey() *FlowNodeInstanceUpsertBulk
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceUpsertBulk) DoNothing ¶
func (u *FlowNodeInstanceUpsertBulk) DoNothing() *FlowNodeInstanceUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowNodeInstanceUpsertBulk) Exec ¶
func (u *FlowNodeInstanceUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceUpsertBulk) ExecX ¶
func (u *FlowNodeInstanceUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceUpsertBulk) Ignore ¶
func (u *FlowNodeInstanceUpsertBulk) Ignore() *FlowNodeInstanceUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowNodeInstanceUpsertBulk) SetCreatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) SetCreatedAt(v int64) *FlowNodeInstanceUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceUpsertBulk) SetDeletedAt ¶
func (u *FlowNodeInstanceUpsertBulk) SetDeletedAt(v int64) *FlowNodeInstanceUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceUpsertBulk) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertBulk) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsertBulk
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsertBulk) SetFlowInstanceID ¶
func (u *FlowNodeInstanceUpsertBulk) SetFlowInstanceID(v string) *FlowNodeInstanceUpsertBulk
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceUpsertBulk) SetNodeKey ¶
func (u *FlowNodeInstanceUpsertBulk) SetNodeKey(v string) *FlowNodeInstanceUpsertBulk
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceUpsertBulk) SetSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertBulk) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsertBulk
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsertBulk) SetSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertBulk) SetSourceNodeKey(v string) *FlowNodeInstanceUpsertBulk
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceUpsertBulk) SetStatus ¶
func (u *FlowNodeInstanceUpsertBulk) SetStatus(v int8) *FlowNodeInstanceUpsertBulk
SetStatus sets the "status" field.
func (*FlowNodeInstanceUpsertBulk) SetUpdatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) SetUpdatedAt(v int64) *FlowNodeInstanceUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceUpsertBulk) Update ¶
func (u *FlowNodeInstanceUpsertBulk) Update(set func(*FlowNodeInstanceUpsert)) *FlowNodeInstanceUpsertBulk
Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceCreateBulk.OnConflict documentation for more info.
func (*FlowNodeInstanceUpsertBulk) UpdateCreatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateCreatedAt() *FlowNodeInstanceUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateDeletedAt ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateDeletedAt() *FlowNodeInstanceUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsertBulk
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateFlowInstanceID() *FlowNodeInstanceUpsertBulk
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateNewValues ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateNewValues() *FlowNodeInstanceUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flownodeinstance.FieldID) }), ). Exec(ctx)
func (*FlowNodeInstanceUpsertBulk) UpdateNodeKey ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateNodeKey() *FlowNodeInstanceUpsertBulk
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertBulk
UpdateSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateSourceNodeKey() *FlowNodeInstanceUpsertBulk
UpdateSourceNodeKey sets the "source_node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateStatus ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateStatus() *FlowNodeInstanceUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertBulk) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceUpsertBulk) UpdateUpdatedAt() *FlowNodeInstanceUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstanceUpsertOne ¶
type FlowNodeInstanceUpsertOne struct {
// contains filtered or unexported fields
}
FlowNodeInstanceUpsertOne is the builder for "upsert"-ing
one FlowNodeInstance node.
func (*FlowNodeInstanceUpsertOne) AddCreatedAt ¶
func (u *FlowNodeInstanceUpsertOne) AddCreatedAt(v int64) *FlowNodeInstanceUpsertOne
AddCreatedAt adds v to the "created_at" field.
func (*FlowNodeInstanceUpsertOne) AddDeletedAt ¶
func (u *FlowNodeInstanceUpsertOne) AddDeletedAt(v int64) *FlowNodeInstanceUpsertOne
AddDeletedAt adds v to the "deleted_at" field.
func (*FlowNodeInstanceUpsertOne) AddStatus ¶
func (u *FlowNodeInstanceUpsertOne) AddStatus(v int8) *FlowNodeInstanceUpsertOne
AddStatus adds v to the "status" field.
func (*FlowNodeInstanceUpsertOne) AddUpdatedAt ¶
func (u *FlowNodeInstanceUpsertOne) AddUpdatedAt(v int64) *FlowNodeInstanceUpsertOne
AddUpdatedAt adds v to the "updated_at" field.
func (*FlowNodeInstanceUpsertOne) ClearDeletedAt ¶
func (u *FlowNodeInstanceUpsertOne) ClearDeletedAt() *FlowNodeInstanceUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FlowNodeInstanceUpsertOne) ClearFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertOne) ClearFlowInstanceDataID() *FlowNodeInstanceUpsertOne
ClearFlowInstanceDataID clears the value of the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsertOne) ClearSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertOne) ClearSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertOne
ClearSourceFlowNodeInstanceID clears the value of the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsertOne) ClearSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertOne) ClearSourceNodeKey() *FlowNodeInstanceUpsertOne
ClearSourceNodeKey clears the value of the "source_node_key" field.
func (*FlowNodeInstanceUpsertOne) DoNothing ¶
func (u *FlowNodeInstanceUpsertOne) DoNothing() *FlowNodeInstanceUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FlowNodeInstanceUpsertOne) Exec ¶
func (u *FlowNodeInstanceUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FlowNodeInstanceUpsertOne) ExecX ¶
func (u *FlowNodeInstanceUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FlowNodeInstanceUpsertOne) ID ¶
func (u *FlowNodeInstanceUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FlowNodeInstanceUpsertOne) IDX ¶
func (u *FlowNodeInstanceUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FlowNodeInstanceUpsertOne) Ignore ¶
func (u *FlowNodeInstanceUpsertOne) Ignore() *FlowNodeInstanceUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FlowNodeInstanceUpsertOne) SetCreatedAt ¶
func (u *FlowNodeInstanceUpsertOne) SetCreatedAt(v int64) *FlowNodeInstanceUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FlowNodeInstanceUpsertOne) SetDeletedAt ¶
func (u *FlowNodeInstanceUpsertOne) SetDeletedAt(v int64) *FlowNodeInstanceUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FlowNodeInstanceUpsertOne) SetFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertOne) SetFlowInstanceDataID(v string) *FlowNodeInstanceUpsertOne
SetFlowInstanceDataID sets the "flow_instance_data_id" field.
func (*FlowNodeInstanceUpsertOne) SetFlowInstanceID ¶
func (u *FlowNodeInstanceUpsertOne) SetFlowInstanceID(v string) *FlowNodeInstanceUpsertOne
SetFlowInstanceID sets the "flow_instance_id" field.
func (*FlowNodeInstanceUpsertOne) SetNodeKey ¶
func (u *FlowNodeInstanceUpsertOne) SetNodeKey(v string) *FlowNodeInstanceUpsertOne
SetNodeKey sets the "node_key" field.
func (*FlowNodeInstanceUpsertOne) SetSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertOne) SetSourceFlowNodeInstanceID(v string) *FlowNodeInstanceUpsertOne
SetSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field.
func (*FlowNodeInstanceUpsertOne) SetSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertOne) SetSourceNodeKey(v string) *FlowNodeInstanceUpsertOne
SetSourceNodeKey sets the "source_node_key" field.
func (*FlowNodeInstanceUpsertOne) SetStatus ¶
func (u *FlowNodeInstanceUpsertOne) SetStatus(v int8) *FlowNodeInstanceUpsertOne
SetStatus sets the "status" field.
func (*FlowNodeInstanceUpsertOne) SetUpdatedAt ¶
func (u *FlowNodeInstanceUpsertOne) SetUpdatedAt(v int64) *FlowNodeInstanceUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FlowNodeInstanceUpsertOne) Update ¶
func (u *FlowNodeInstanceUpsertOne) Update(set func(*FlowNodeInstanceUpsert)) *FlowNodeInstanceUpsertOne
Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceCreate.OnConflict documentation for more info.
func (*FlowNodeInstanceUpsertOne) UpdateCreatedAt ¶
func (u *FlowNodeInstanceUpsertOne) UpdateCreatedAt() *FlowNodeInstanceUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateDeletedAt ¶
func (u *FlowNodeInstanceUpsertOne) UpdateDeletedAt() *FlowNodeInstanceUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateFlowInstanceDataID ¶
func (u *FlowNodeInstanceUpsertOne) UpdateFlowInstanceDataID() *FlowNodeInstanceUpsertOne
UpdateFlowInstanceDataID sets the "flow_instance_data_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateFlowInstanceID ¶
func (u *FlowNodeInstanceUpsertOne) UpdateFlowInstanceID() *FlowNodeInstanceUpsertOne
UpdateFlowInstanceID sets the "flow_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateNewValues ¶
func (u *FlowNodeInstanceUpsertOne) UpdateNewValues() *FlowNodeInstanceUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.FlowNodeInstance.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(flownodeinstance.FieldID) }), ). Exec(ctx)
func (*FlowNodeInstanceUpsertOne) UpdateNodeKey ¶
func (u *FlowNodeInstanceUpsertOne) UpdateNodeKey() *FlowNodeInstanceUpsertOne
UpdateNodeKey sets the "node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateSourceFlowNodeInstanceID ¶
func (u *FlowNodeInstanceUpsertOne) UpdateSourceFlowNodeInstanceID() *FlowNodeInstanceUpsertOne
UpdateSourceFlowNodeInstanceID sets the "source_flow_node_instance_id" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateSourceNodeKey ¶
func (u *FlowNodeInstanceUpsertOne) UpdateSourceNodeKey() *FlowNodeInstanceUpsertOne
UpdateSourceNodeKey sets the "source_node_key" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateStatus ¶
func (u *FlowNodeInstanceUpsertOne) UpdateStatus() *FlowNodeInstanceUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FlowNodeInstanceUpsertOne) UpdateUpdatedAt ¶
func (u *FlowNodeInstanceUpsertOne) UpdateUpdatedAt() *FlowNodeInstanceUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FlowNodeInstances ¶
type FlowNodeInstances []*FlowNodeInstance
FlowNodeInstances is a parsable slice of FlowNodeInstance.
type GetFlowDefinitionReq ¶
type GetFlowDefinitionReq struct {
ID string `json:"id" v:"required"`
}
type GetFlowDeploymentReq ¶
type GetFlowDeploymentReq struct {
ID string `json:"id" v:"required"`
}
type GetFlowInstanceDataReq ¶
type GetFlowInstanceDataReq struct {
ID string `json:"id" v:"required"`
}
type GetFlowInstanceReq ¶
type GetFlowInstanceReq struct {
ID string `json:"id" v:"required"`
}
type GetFlowNodeInstanceLogReq ¶
type GetFlowNodeInstanceLogReq struct {
ID string `json:"id" v:"required"`
}
type GetFlowNodeInstanceReq ¶
type GetFlowNodeInstanceReq struct {
ID string `json:"id" v:"required"`
}
type IFlowDefinition ¶
type IFlowDefinition struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` Name string `json:"name,omitempty"` Status int8 `json:"status,omitempty"` Model schema.FlowModel `json:"model,omitempty"` Remark string `json:"remark,omitempty"` FlowDeployments []*IFlowDeployment `json:"flow_deployments,omitempty"` }
func GetFlowDefinitionController ¶
func GetFlowDefinitionController(ctx context.Context, req *GetFlowDefinitionReq) (res *IFlowDefinition, err error)
func NewIFlowDefinition ¶
func NewIFlowDefinition(e *FlowDefinition) *IFlowDefinition
func NewIFlowDefinitionArray ¶
func NewIFlowDefinitionArray(es []*FlowDefinition) []*IFlowDefinition
type IFlowDeployment ¶
type IFlowDeployment struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` FlowDefinitionID string `json:"flow_definition_id,omitempty"` Name string `json:"name,omitempty"` Status int8 `json:"status,omitempty"` Model schema.FlowModel `json:"model,omitempty"` Remark string `json:"remark,omitempty"` FlowDefinition *IFlowDefinition `json:"flow_definition,omitempty"` FlowInstances []*IFlowInstance `json:"flow_instances,omitempty"` }
func GetFlowDeploymentController ¶
func GetFlowDeploymentController(ctx context.Context, req *GetFlowDeploymentReq) (res *IFlowDeployment, err error)
func NewIFlowDeployment ¶
func NewIFlowDeployment(e *FlowDeployment) *IFlowDeployment
func NewIFlowDeploymentArray ¶
func NewIFlowDeploymentArray(es []*FlowDeployment) []*IFlowDeployment
type IFlowInstance ¶
type IFlowInstance struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` FlowDeploymentID string `json:"flow_deployment_id,omitempty"` RefID string `json:"ref_id,omitempty"` Status int8 `json:"status,omitempty"` FlowDeployment *IFlowDeployment `json:"flow_deployment,omitempty"` FlowNodeInstances []*IFlowNodeInstance `json:"flow_node_instances,omitempty"` }
func GetFlowInstanceController ¶
func GetFlowInstanceController(ctx context.Context, req *GetFlowInstanceReq) (res *IFlowInstance, err error)
func NewIFlowInstance ¶
func NewIFlowInstance(e *FlowInstance) *IFlowInstance
func NewIFlowInstanceArray ¶
func NewIFlowInstanceArray(es []*FlowInstance) []*IFlowInstance
type IFlowInstanceData ¶
type IFlowInstanceData struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` FlowInstanceID string `json:"flow_instance_id,omitempty"` FlowNodeInstanceID string `json:"flow_node_instance_id,omitempty"` NodeKey string `json:"node_key,omitempty"` Data map[string]interface{} `json:"data,omitempty"` Type int8 `json:"type,omitempty"` }
func GetFlowInstanceDataController ¶
func GetFlowInstanceDataController(ctx context.Context, req *GetFlowInstanceDataReq) (res *IFlowInstanceData, err error)
func NewIFlowInstanceData ¶
func NewIFlowInstanceData(e *FlowInstanceData) *IFlowInstanceData
func NewIFlowInstanceDataArray ¶
func NewIFlowInstanceDataArray(es []*FlowInstanceData) []*IFlowInstanceData
type IFlowNodeInstance ¶
type IFlowNodeInstance struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` FlowInstanceID string `json:"flow_instance_id,omitempty"` SourceFlowNodeInstanceID string `json:"source_flow_node_instance_id,omitempty"` FlowInstanceDataID string `json:"flow_instance_data_id,omitempty"` NodeKey string `json:"node_key,omitempty"` SourceNodeKey string `json:"source_node_key,omitempty"` Status int8 `json:"status,omitempty"` FlowInstance *IFlowInstance `json:"flow_instance,omitempty"` }
func GetFlowNodeInstanceController ¶
func GetFlowNodeInstanceController(ctx context.Context, req *GetFlowNodeInstanceReq) (res *IFlowNodeInstance, err error)
func NewIFlowNodeInstance ¶
func NewIFlowNodeInstance(e *FlowNodeInstance) *IFlowNodeInstance
func NewIFlowNodeInstanceArray ¶
func NewIFlowNodeInstanceArray(es []*FlowNodeInstance) []*IFlowNodeInstance
type IFlowNodeInstanceLog ¶
type IFlowNodeInstanceLog struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` UpdatedAt int64 `json:"updated_at,omitempty"` DeletedAt int64 `json:"-"` FlowInstanceID string `json:"flow_instance_id,omitempty"` FlowNodeInstanceID string `json:"flow_node_instance_id,omitempty"` FlowInstanceDataID string `json:"flow_instance_data_id,omitempty"` NodeKey string `json:"node_key,omitempty"` Type int8 `json:"type,omitempty"` Status int8 `json:"status,omitempty"` }
func GetFlowNodeInstanceLogController ¶
func GetFlowNodeInstanceLogController(ctx context.Context, req *GetFlowNodeInstanceLogReq) (res *IFlowNodeInstanceLog, err error)
func NewIFlowNodeInstanceLog ¶
func NewIFlowNodeInstanceLog(e *FlowNodeInstanceLog) *IFlowNodeInstanceLog
func NewIFlowNodeInstanceLogArray ¶
func NewIFlowNodeInstanceLogArray(es []*FlowNodeInstanceLog) []*IFlowNodeInstanceLog
type ListFlowDefinitionFilter ¶
type ListFlowDefinitionFilter struct { }
type ListFlowDefinitionReq ¶
type ListFlowDefinitionReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowDefinitionFilter `json:"filter"` Sorter *ListFlowDefinitionSorter `json:"sorter"` }
type ListFlowDefinitionRes ¶
type ListFlowDefinitionRes struct { List []*IFlowDefinition `json:"list"` Total int `json:"total"` }
func ListFlowDefinitionController ¶
func ListFlowDefinitionController(ctx context.Context, req *ListFlowDefinitionReq) (res *ListFlowDefinitionRes, err error)
type ListFlowDefinitionSorter ¶
type ListFlowDefinitionSorter struct { }
type ListFlowDeploymentFilter ¶
type ListFlowDeploymentFilter struct { }
type ListFlowDeploymentReq ¶
type ListFlowDeploymentReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowDeploymentFilter `json:"filter"` Sorter *ListFlowDeploymentSorter `json:"sorter"` }
type ListFlowDeploymentRes ¶
type ListFlowDeploymentRes struct { List []*IFlowDeployment `json:"list"` Total int `json:"total"` }
func ListFlowDeploymentController ¶
func ListFlowDeploymentController(ctx context.Context, req *ListFlowDeploymentReq) (res *ListFlowDeploymentRes, err error)
type ListFlowDeploymentSorter ¶
type ListFlowDeploymentSorter struct { }
type ListFlowInstanceDataFilter ¶
type ListFlowInstanceDataFilter struct { }
type ListFlowInstanceDataReq ¶
type ListFlowInstanceDataReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowInstanceDataFilter `json:"filter"` Sorter *ListFlowInstanceDataSorter `json:"sorter"` }
type ListFlowInstanceDataRes ¶
type ListFlowInstanceDataRes struct { List []*IFlowInstanceData `json:"list"` Total int `json:"total"` }
func ListFlowInstanceDataController ¶
func ListFlowInstanceDataController(ctx context.Context, req *ListFlowInstanceDataReq) (res *ListFlowInstanceDataRes, err error)
type ListFlowInstanceDataSorter ¶
type ListFlowInstanceDataSorter struct { }
type ListFlowInstanceFilter ¶
type ListFlowInstanceFilter struct { }
type ListFlowInstanceReq ¶
type ListFlowInstanceReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowInstanceFilter `json:"filter"` Sorter *ListFlowInstanceSorter `json:"sorter"` }
type ListFlowInstanceRes ¶
type ListFlowInstanceRes struct { List []*IFlowInstance `json:"list"` Total int `json:"total"` }
func ListFlowInstanceController ¶
func ListFlowInstanceController(ctx context.Context, req *ListFlowInstanceReq) (res *ListFlowInstanceRes, err error)
type ListFlowInstanceSorter ¶
type ListFlowInstanceSorter struct { }
type ListFlowNodeInstanceFilter ¶
type ListFlowNodeInstanceFilter struct { }
type ListFlowNodeInstanceLogFilter ¶
type ListFlowNodeInstanceLogFilter struct { }
type ListFlowNodeInstanceLogReq ¶
type ListFlowNodeInstanceLogReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowNodeInstanceLogFilter `json:"filter"` Sorter *ListFlowNodeInstanceLogSorter `json:"sorter"` }
type ListFlowNodeInstanceLogRes ¶
type ListFlowNodeInstanceLogRes struct { List []*IFlowNodeInstanceLog `json:"list"` Total int `json:"total"` }
func ListFlowNodeInstanceLogController ¶
func ListFlowNodeInstanceLogController(ctx context.Context, req *ListFlowNodeInstanceLogReq) (res *ListFlowNodeInstanceLogRes, err error)
type ListFlowNodeInstanceLogSorter ¶
type ListFlowNodeInstanceLogSorter struct { }
type ListFlowNodeInstanceReq ¶
type ListFlowNodeInstanceReq struct { Page int `json:"page" d:"1" v:"min:1"` Limit int `json:"limit" d:"20" v:"min:1|max:500"` Query string `json:"query"` Filter *ListFlowNodeInstanceFilter `json:"filter"` Sorter *ListFlowNodeInstanceSorter `json:"sorter"` }
type ListFlowNodeInstanceRes ¶
type ListFlowNodeInstanceRes struct { List []*IFlowNodeInstance `json:"list"` Total int `json:"total"` }
func ListFlowNodeInstanceController ¶
func ListFlowNodeInstanceController(ctx context.Context, req *ListFlowNodeInstanceReq) (res *ListFlowNodeInstanceRes, err error)
type ListFlowNodeInstanceSorter ¶
type ListFlowNodeInstanceSorter struct { }
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
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(ctx 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 Rollback method.
type Tx ¶
type Tx struct { // FlowDefinition is the client for interacting with the FlowDefinition builders. FlowDefinition *FlowDefinitionClient // FlowDeployment is the client for interacting with the FlowDeployment builders. FlowDeployment *FlowDeploymentClient // FlowInstance is the client for interacting with the FlowInstance builders. FlowInstance *FlowInstanceClient // FlowInstanceData is the client for interacting with the FlowInstanceData builders. FlowInstanceData *FlowInstanceDataClient // FlowNodeInstance is the client for interacting with the FlowNodeInstance builders. FlowNodeInstance *FlowNodeInstanceClient // FlowNodeInstanceLog is the client for interacting with the FlowNodeInstanceLog builders. FlowNodeInstanceLog *FlowNodeInstanceLogClient // 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 UpdateFlowDefinitionReq ¶
type UpdateFlowDefinitionReq struct {
ID string `json:"id" v:"required"`
}
type UpdateFlowDeploymentReq ¶
type UpdateFlowDeploymentReq struct {
ID string `json:"id" v:"required"`
}
type UpdateFlowInstanceDataReq ¶
type UpdateFlowInstanceDataReq struct {
ID string `json:"id" v:"required"`
}
type UpdateFlowInstanceReq ¶
type UpdateFlowInstanceReq struct {
ID string `json:"id" v:"required"`
}
type UpdateFlowNodeInstanceLogReq ¶
type UpdateFlowNodeInstanceLogReq struct {
ID string `json:"id" v:"required"`
}
type UpdateFlowNodeInstanceReq ¶
type UpdateFlowNodeInstanceReq struct {
ID string `json:"id" v:"required"`
}
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge 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.
Source Files ¶
- client.go
- config.go
- context.go
- db.go
- ent.go
- flowdefinition.go
- flowdefinition_create.go
- flowdefinition_delete.go
- flowdefinition_query.go
- flowdefinition_update.go
- flowdeployment.go
- flowdeployment_create.go
- flowdeployment_delete.go
- flowdeployment_query.go
- flowdeployment_update.go
- flowinstance.go
- flowinstance_create.go
- flowinstance_delete.go
- flowinstance_query.go
- flowinstance_update.go
- flowinstancedata.go
- flowinstancedata_create.go
- flowinstancedata_delete.go
- flowinstancedata_query.go
- flowinstancedata_update.go
- flownodeinstance.go
- flownodeinstance_create.go
- flownodeinstance_delete.go
- flownodeinstance_query.go
- flownodeinstance_update.go
- flownodeinstancelog.go
- flownodeinstancelog_create.go
- flownodeinstancelog_delete.go
- flownodeinstancelog_query.go
- flownodeinstancelog_update.go
- generate.go
- mutation.go
- runtime.go
- tx.go