ent

package
v0.0.0-...-19e0465 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

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

func CreateFlowDefinitionFormView() view.Node

func CreateFlowDeploymentController

func CreateFlowDeploymentController(ctx context.Context, req *CreateFlowDeploymentReq) (err error)

func CreateFlowDeploymentFormView

func CreateFlowDeploymentFormView() view.Node

func CreateFlowInstanceController

func CreateFlowInstanceController(ctx context.Context, req *CreateFlowInstanceReq) (err error)

func CreateFlowInstanceDataController

func CreateFlowInstanceDataController(ctx context.Context, req *CreateFlowInstanceDataReq) (err error)

func CreateFlowInstanceDataFormView

func CreateFlowInstanceDataFormView() view.Node

func CreateFlowInstanceFormView

func CreateFlowInstanceFormView() view.Node

func CreateFlowNodeInstanceController

func CreateFlowNodeInstanceController(ctx context.Context, req *CreateFlowNodeInstanceReq) (err error)

func CreateFlowNodeInstanceFormView

func CreateFlowNodeInstanceFormView() view.Node

func CreateFlowNodeInstanceLogController

func CreateFlowNodeInstanceLogController(ctx context.Context, req *CreateFlowNodeInstanceLogReq) (err error)

func CreateFlowNodeInstanceLogFormView

func CreateFlowNodeInstanceLogFormView() view.Node

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

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func ListFlowDefinitionTableColumns

func ListFlowDefinitionTableColumns() []view.Node

func ListFlowDefinitionView

func ListFlowDefinitionView() view.Node

func ListFlowDeploymentTableColumns

func ListFlowDeploymentTableColumns() []view.Node

func ListFlowDeploymentView

func ListFlowDeploymentView() view.Node

func ListFlowInstanceDataTableColumns

func ListFlowInstanceDataTableColumns() []view.Node

func ListFlowInstanceDataView

func ListFlowInstanceDataView() view.Node

func ListFlowInstanceTableColumns

func ListFlowInstanceTableColumns() []view.Node

func ListFlowInstanceView

func ListFlowInstanceView() view.Node

func ListFlowNodeInstanceLogTableColumns

func ListFlowNodeInstanceLogTableColumns() []view.Node

func ListFlowNodeInstanceLogView

func ListFlowNodeInstanceLogView() view.Node

func ListFlowNodeInstanceTableColumns

func ListFlowNodeInstanceTableColumns() []view.Node

func ListFlowNodeInstanceView

func ListFlowNodeInstanceView() view.Node

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

func ReadFlowDefinitionFormView

func ReadFlowDefinitionFormView() view.Node

func ReadFlowDeploymentFormView

func ReadFlowDeploymentFormView() view.Node

func ReadFlowInstanceDataFormView

func ReadFlowInstanceDataFormView() view.Node

func ReadFlowInstanceFormView

func ReadFlowInstanceFormView() view.Node

func ReadFlowNodeInstanceFormView

func ReadFlowNodeInstanceFormView() view.Node

func ReadFlowNodeInstanceLogFormView

func ReadFlowNodeInstanceLogFormView() view.Node

func UpdateFlowDefinitionController

func UpdateFlowDefinitionController(ctx context.Context, req *UpdateFlowDefinitionReq) (err error)

func UpdateFlowDefinitionFormView

func UpdateFlowDefinitionFormView() view.Node

func UpdateFlowDeploymentController

func UpdateFlowDeploymentController(ctx context.Context, req *UpdateFlowDeploymentReq) (err error)

func UpdateFlowDeploymentFormView

func UpdateFlowDeploymentFormView() view.Node

func UpdateFlowInstanceController

func UpdateFlowInstanceController(ctx context.Context, req *UpdateFlowInstanceReq) (err error)

func UpdateFlowInstanceDataController

func UpdateFlowInstanceDataController(ctx context.Context, req *UpdateFlowInstanceDataReq) (err error)

func UpdateFlowInstanceDataFormView

func UpdateFlowInstanceDataFormView() view.Node

func UpdateFlowInstanceFormView

func UpdateFlowInstanceFormView() view.Node

func UpdateFlowNodeInstanceController

func UpdateFlowNodeInstanceController(ctx context.Context, req *UpdateFlowNodeInstanceReq) (err error)

func UpdateFlowNodeInstanceFormView

func UpdateFlowNodeInstanceFormView() view.Node

func UpdateFlowNodeInstanceLogController

func UpdateFlowNodeInstanceLogController(ctx context.Context, req *UpdateFlowNodeInstanceLogReq) (err error)

func UpdateFlowNodeInstanceLogFormView

func UpdateFlowNodeInstanceLogFormView() view.Node

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

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 DB

func DB() *Client

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

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) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	FlowDefinition.
	Query().
	Count(ctx)

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

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.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

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 Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Commit method.

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

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

Create returns a create builder for FlowDefinition.

func (*FlowDefinitionClient) CreateBulk

CreateBulk returns a builder for creating a bulk of FlowDefinition entities.

func (*FlowDefinitionClient) Delete

Delete returns a delete builder for FlowDefinition.

func (*FlowDefinitionClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*FlowDefinitionClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*FlowDefinitionClient) Get

Get returns a FlowDefinition entity by its id.

func (*FlowDefinitionClient) GetX

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

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

Update returns an update builder for FlowDefinition.

func (*FlowDefinitionClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FlowDefinitionClient) UpdateOneID

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

Mutation returns the FlowDefinitionMutation object of the builder.

func (*FlowDefinitionCreate) OnConflict

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

Save creates the FlowDefinition in the database.

func (*FlowDefinitionCreate) SaveX

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

SetID sets the "id" field.

func (*FlowDefinitionCreate) SetModel

SetModel sets the "model" field.

func (*FlowDefinitionCreate) SetName

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

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

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

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

Save creates the FlowDefinition entities in the database.

func (*FlowDefinitionCreateBulk) SaveX

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

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FlowDefinitionGroupBy) Bool

func (s *FlowDefinitionGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) BoolX

func (s *FlowDefinitionGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Bools

func (s *FlowDefinitionGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) BoolsX

func (s *FlowDefinitionGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Float64

func (s *FlowDefinitionGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) Float64X

func (s *FlowDefinitionGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Float64s

func (s *FlowDefinitionGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) Float64sX

func (s *FlowDefinitionGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Int

func (s *FlowDefinitionGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) IntX

func (s *FlowDefinitionGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Ints

func (s *FlowDefinitionGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) IntsX

func (s *FlowDefinitionGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowDefinitionGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowDefinitionGroupBy) String

func (s *FlowDefinitionGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) StringX

func (s *FlowDefinitionGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowDefinitionGroupBy) Strings

func (s *FlowDefinitionGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionGroupBy) StringsX

func (s *FlowDefinitionGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FlowDefinitionMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

func (m *FlowDefinitionMutation) OldModel(ctx context.Context) (v schema.FlowModel, err error)

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

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

All executes the query and returns a list of FlowDefinitions.

func (*FlowDefinitionQuery) AllX

AllX is like All, but panics if an error occurs.

func (*FlowDefinitionQuery) Clone

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

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

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

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

OnlyX is like Only, but panics if an error occurs.

func (*FlowDefinitionQuery) Order

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

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

func (s *FlowDefinitionSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) BoolX

func (s *FlowDefinitionSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowDefinitionSelect) Bools

func (s *FlowDefinitionSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) BoolsX

func (s *FlowDefinitionSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowDefinitionSelect) Float64

func (s *FlowDefinitionSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) Float64X

func (s *FlowDefinitionSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowDefinitionSelect) Float64s

func (s *FlowDefinitionSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) Float64sX

func (s *FlowDefinitionSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowDefinitionSelect) Int

func (s *FlowDefinitionSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) IntX

func (s *FlowDefinitionSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowDefinitionSelect) Ints

func (s *FlowDefinitionSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) IntsX

func (s *FlowDefinitionSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowDefinitionSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowDefinitionSelect) String

func (s *FlowDefinitionSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) StringX

func (s *FlowDefinitionSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowDefinitionSelect) Strings

func (s *FlowDefinitionSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowDefinitionSelect) StringsX

func (s *FlowDefinitionSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

SetModel sets the "model" field.

func (*FlowDefinitionUpdate) SetName

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

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

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

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

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

Save executes the query and returns the updated FlowDefinition entity.

func (*FlowDefinitionUpdateOne) SaveX

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

SetModel sets the "model" field.

func (*FlowDefinitionUpdateOne) SetName

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

SetRemark sets the "remark" field.

func (*FlowDefinitionUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*FlowDefinitionUpdateOne) SetUpdatedAt

func (fduo *FlowDefinitionUpdateOne) SetUpdatedAt(i int64) *FlowDefinitionUpdateOne

SetUpdatedAt sets the "updated_at" field.

type FlowDefinitionUpsert

type FlowDefinitionUpsert struct {
	*sql.UpdateSet
}

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

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

SetModel sets the "model" field.

func (*FlowDefinitionUpsert) SetName

SetName sets the "name" field.

func (*FlowDefinitionUpsert) SetRemark

SetRemark sets the "remark" field.

func (*FlowDefinitionUpsert) SetStatus

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowDefinitionUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowDefinitionUpsertBulk) AddStatus

AddStatus adds v to the "status" field.

func (*FlowDefinitionUpsertBulk) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowDefinitionUpsertBulk) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*FlowDefinitionUpsertBulk) ClearRemark

ClearRemark clears the value of the "remark" field.

func (*FlowDefinitionUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowDefinitionUpsertBulk) Exec

Exec executes the query.

func (*FlowDefinitionUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowDefinitionUpsertBulk) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowDefinitionUpsertBulk) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*FlowDefinitionUpsertBulk) SetModel

SetModel sets the "model" field.

func (*FlowDefinitionUpsertBulk) SetName

SetName sets the "name" field.

func (*FlowDefinitionUpsertBulk) SetRemark

SetRemark sets the "remark" field.

func (*FlowDefinitionUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*FlowDefinitionUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowDefinitionUpsertBulk) Update

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

UpdateModel sets the "model" field to the value that was provided on create.

func (*FlowDefinitionUpsertBulk) UpdateName

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

UpdateRemark sets the "remark" field to the value that was provided on create.

func (*FlowDefinitionUpsertBulk) UpdateStatus

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowDefinitionUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowDefinitionUpsertOne) AddStatus

AddStatus adds v to the "status" field.

func (*FlowDefinitionUpsertOne) AddUpdatedAt

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

ClearRemark clears the value of the "remark" field.

func (*FlowDefinitionUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowDefinitionUpsertOne) Exec

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

IDX is like ID, but panics if an error occurs.

func (*FlowDefinitionUpsertOne) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowDefinitionUpsertOne) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*FlowDefinitionUpsertOne) SetModel

SetModel sets the "model" field.

func (*FlowDefinitionUpsertOne) SetName

SetName sets the "name" field.

func (*FlowDefinitionUpsertOne) SetRemark

SetRemark sets the "remark" field.

func (*FlowDefinitionUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*FlowDefinitionUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowDefinitionUpsertOne) Update

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

UpdateModel sets the "model" field to the value that was provided on create.

func (*FlowDefinitionUpsertOne) UpdateName

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

UpdateRemark sets the "remark" field to the value that was provided on create.

func (*FlowDefinitionUpsertOne) UpdateStatus

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

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

Create returns a create builder for FlowDeployment.

func (*FlowDeploymentClient) CreateBulk

CreateBulk returns a builder for creating a bulk of FlowDeployment entities.

func (*FlowDeploymentClient) Delete

Delete returns a delete builder for FlowDeployment.

func (*FlowDeploymentClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*FlowDeploymentClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*FlowDeploymentClient) Get

Get returns a FlowDeployment entity by its id.

func (*FlowDeploymentClient) GetX

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

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

Update returns an update builder for FlowDeployment.

func (*FlowDeploymentClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FlowDeploymentClient) UpdateOneID

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

Mutation returns the FlowDeploymentMutation object of the builder.

func (*FlowDeploymentCreate) OnConflict

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

Save creates the FlowDeployment in the database.

func (*FlowDeploymentCreate) SaveX

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

SetID sets the "id" field.

func (*FlowDeploymentCreate) SetModel

SetModel sets the "model" field.

func (*FlowDeploymentCreate) SetName

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

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

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

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

Save creates the FlowDeployment entities in the database.

func (*FlowDeploymentCreateBulk) SaveX

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

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FlowDeploymentGroupBy) Bool

func (s *FlowDeploymentGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) BoolX

func (s *FlowDeploymentGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Bools

func (s *FlowDeploymentGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) BoolsX

func (s *FlowDeploymentGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Float64

func (s *FlowDeploymentGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) Float64X

func (s *FlowDeploymentGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Float64s

func (s *FlowDeploymentGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) Float64sX

func (s *FlowDeploymentGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Int

func (s *FlowDeploymentGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) IntX

func (s *FlowDeploymentGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Ints

func (s *FlowDeploymentGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) IntsX

func (s *FlowDeploymentGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowDeploymentGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowDeploymentGroupBy) String

func (s *FlowDeploymentGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) StringX

func (s *FlowDeploymentGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowDeploymentGroupBy) Strings

func (s *FlowDeploymentGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentGroupBy) StringsX

func (s *FlowDeploymentGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FlowDeploymentMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

func (m *FlowDeploymentMutation) OldModel(ctx context.Context) (v schema.FlowModel, err error)

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

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

All executes the query and returns a list of FlowDeployments.

func (*FlowDeploymentQuery) AllX

AllX is like All, but panics if an error occurs.

func (*FlowDeploymentQuery) Clone

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

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

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

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

OnlyX is like Only, but panics if an error occurs.

func (*FlowDeploymentQuery) Order

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

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

func (s *FlowDeploymentSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) BoolX

func (s *FlowDeploymentSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowDeploymentSelect) Bools

func (s *FlowDeploymentSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) BoolsX

func (s *FlowDeploymentSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowDeploymentSelect) Float64

func (s *FlowDeploymentSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) Float64X

func (s *FlowDeploymentSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowDeploymentSelect) Float64s

func (s *FlowDeploymentSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) Float64sX

func (s *FlowDeploymentSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowDeploymentSelect) Int

func (s *FlowDeploymentSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) IntX

func (s *FlowDeploymentSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowDeploymentSelect) Ints

func (s *FlowDeploymentSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) IntsX

func (s *FlowDeploymentSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowDeploymentSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowDeploymentSelect) String

func (s *FlowDeploymentSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) StringX

func (s *FlowDeploymentSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowDeploymentSelect) Strings

func (s *FlowDeploymentSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowDeploymentSelect) StringsX

func (s *FlowDeploymentSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

SetModel sets the "model" field.

func (*FlowDeploymentUpdate) SetName

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

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

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

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

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

Save executes the query and returns the updated FlowDeployment entity.

func (*FlowDeploymentUpdateOne) SaveX

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

SetModel sets the "model" field.

func (*FlowDeploymentUpdateOne) SetName

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

SetRemark sets the "remark" field.

func (*FlowDeploymentUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*FlowDeploymentUpdateOne) SetUpdatedAt

func (fduo *FlowDeploymentUpdateOne) SetUpdatedAt(i int64) *FlowDeploymentUpdateOne

SetUpdatedAt sets the "updated_at" field.

type FlowDeploymentUpsert

type FlowDeploymentUpsert struct {
	*sql.UpdateSet
}

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

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

SetModel sets the "model" field.

func (*FlowDeploymentUpsert) SetName

SetName sets the "name" field.

func (*FlowDeploymentUpsert) SetRemark

SetRemark sets the "remark" field.

func (*FlowDeploymentUpsert) SetStatus

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowDeploymentUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowDeploymentUpsertBulk) AddStatus

AddStatus adds v to the "status" field.

func (*FlowDeploymentUpsertBulk) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowDeploymentUpsertBulk) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*FlowDeploymentUpsertBulk) ClearRemark

ClearRemark clears the value of the "remark" field.

func (*FlowDeploymentUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowDeploymentUpsertBulk) Exec

Exec executes the query.

func (*FlowDeploymentUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowDeploymentUpsertBulk) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowDeploymentUpsertBulk) SetDeletedAt

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

SetModel sets the "model" field.

func (*FlowDeploymentUpsertBulk) SetName

SetName sets the "name" field.

func (*FlowDeploymentUpsertBulk) SetRemark

SetRemark sets the "remark" field.

func (*FlowDeploymentUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*FlowDeploymentUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowDeploymentUpsertBulk) Update

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

UpdateModel sets the "model" field to the value that was provided on create.

func (*FlowDeploymentUpsertBulk) UpdateName

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

UpdateRemark sets the "remark" field to the value that was provided on create.

func (*FlowDeploymentUpsertBulk) UpdateStatus

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowDeploymentUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowDeploymentUpsertOne) AddStatus

AddStatus adds v to the "status" field.

func (*FlowDeploymentUpsertOne) AddUpdatedAt

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

ClearRemark clears the value of the "remark" field.

func (*FlowDeploymentUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowDeploymentUpsertOne) Exec

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

IDX is like ID, but panics if an error occurs.

func (*FlowDeploymentUpsertOne) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowDeploymentUpsertOne) SetDeletedAt

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

SetModel sets the "model" field.

func (*FlowDeploymentUpsertOne) SetName

SetName sets the "name" field.

func (*FlowDeploymentUpsertOne) SetRemark

SetRemark sets the "remark" field.

func (*FlowDeploymentUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*FlowDeploymentUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowDeploymentUpsertOne) Update

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

UpdateModel sets the "model" field to the value that was provided on create.

func (*FlowDeploymentUpsertOne) UpdateName

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

UpdateRemark sets the "remark" field to the value that was provided on create.

func (*FlowDeploymentUpsertOne) UpdateStatus

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

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

Delete returns a delete builder for FlowInstance.

func (*FlowInstanceClient) DeleteOne

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

Get returns a FlowInstance entity by its id.

func (*FlowInstanceClient) GetX

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

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

Update returns an update builder for FlowInstance.

func (*FlowInstanceClient) UpdateOne

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

Save creates the FlowInstance in the database.

func (*FlowInstanceCreate) SaveX

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

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

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

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

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

Create returns a create builder for FlowInstanceData.

func (*FlowInstanceDataClient) CreateBulk

CreateBulk returns a builder for creating a bulk of FlowInstanceData entities.

func (*FlowInstanceDataClient) Delete

Delete returns a delete builder for FlowInstanceData.

func (*FlowInstanceDataClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*FlowInstanceDataClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*FlowInstanceDataClient) Get

Get returns a FlowInstanceData entity by its id.

func (*FlowInstanceDataClient) GetX

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

Query returns a query builder for FlowInstanceData.

func (*FlowInstanceDataClient) Update

Update returns an update builder for FlowInstanceData.

func (*FlowInstanceDataClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FlowInstanceDataClient) UpdateOneID

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

Mutation returns the FlowInstanceDataMutation object of the builder.

func (*FlowInstanceDataCreate) OnConflict

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

Save creates the FlowInstanceData in the database.

func (*FlowInstanceDataCreate) SaveX

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

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataCreate) SetType

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

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

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

Save creates the FlowInstanceData entities in the database.

func (*FlowInstanceDataCreateBulk) SaveX

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

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

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FlowInstanceDataGroupBy) Bool

func (s *FlowInstanceDataGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) BoolX

func (s *FlowInstanceDataGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Bools

func (s *FlowInstanceDataGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) BoolsX

func (s *FlowInstanceDataGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Float64

func (s *FlowInstanceDataGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) Float64X

func (s *FlowInstanceDataGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Float64s

func (s *FlowInstanceDataGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) Float64sX

func (s *FlowInstanceDataGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Int

func (s *FlowInstanceDataGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) IntX

func (s *FlowInstanceDataGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Ints

func (s *FlowInstanceDataGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) IntsX

func (s *FlowInstanceDataGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowInstanceDataGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) String

func (s *FlowInstanceDataGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) StringX

func (s *FlowInstanceDataGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowInstanceDataGroupBy) Strings

func (s *FlowInstanceDataGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataGroupBy) StringsX

func (s *FlowInstanceDataGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FlowInstanceDataMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

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

All executes the query and returns a list of FlowInstanceDataSlice.

func (*FlowInstanceDataQuery) AllX

AllX is like All, but panics if an error occurs.

func (*FlowInstanceDataQuery) Clone

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

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

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

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

OnlyX is like Only, but panics if an error occurs.

func (*FlowInstanceDataQuery) Order

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

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

func (s *FlowInstanceDataSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) BoolX

func (s *FlowInstanceDataSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowInstanceDataSelect) Bools

func (s *FlowInstanceDataSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) BoolsX

func (s *FlowInstanceDataSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowInstanceDataSelect) Float64

func (s *FlowInstanceDataSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) Float64X

func (s *FlowInstanceDataSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowInstanceDataSelect) Float64s

func (s *FlowInstanceDataSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) Float64sX

func (s *FlowInstanceDataSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowInstanceDataSelect) Int

func (s *FlowInstanceDataSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) IntX

func (s *FlowInstanceDataSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowInstanceDataSelect) Ints

func (s *FlowInstanceDataSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) IntsX

func (s *FlowInstanceDataSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowInstanceDataSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowInstanceDataSelect) String

func (s *FlowInstanceDataSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) StringX

func (s *FlowInstanceDataSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowInstanceDataSelect) Strings

func (s *FlowInstanceDataSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowInstanceDataSelect) StringsX

func (s *FlowInstanceDataSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

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

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataUpdate) SetType

SetType sets the "type" field.

func (*FlowInstanceDataUpdate) SetUpdatedAt

func (fidu *FlowInstanceDataUpdate) SetUpdatedAt(i int64) *FlowInstanceDataUpdate

SetUpdatedAt sets the "updated_at" field.

func (*FlowInstanceDataUpdate) Where

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

AddDeletedAt adds i to the "deleted_at" field.

func (*FlowInstanceDataUpdateOne) AddType

AddType adds i to the "type" field.

func (*FlowInstanceDataUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*FlowInstanceDataUpdateOne) ClearData

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

ClearNodeKey clears the value of the "node_key" field.

func (*FlowInstanceDataUpdateOne) Exec

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

Mutation returns the FlowInstanceDataMutation object of the builder.

func (*FlowInstanceDataUpdateOne) Save

Save executes the query and returns the updated FlowInstanceData entity.

func (*FlowInstanceDataUpdateOne) SaveX

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

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataUpdateOne) SetType

SetType sets the "type" field.

func (*FlowInstanceDataUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type FlowInstanceDataUpsert

type FlowInstanceDataUpsert struct {
	*sql.UpdateSet
}

FlowInstanceDataUpsert is the "OnConflict" setter.

func (*FlowInstanceDataUpsert) AddCreatedAt

AddCreatedAt adds v to the "created_at" field.

func (*FlowInstanceDataUpsert) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowInstanceDataUpsert) AddType

AddType adds v to the "type" field.

func (*FlowInstanceDataUpsert) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowInstanceDataUpsert) ClearData

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

ClearNodeKey clears the value of the "node_key" field.

func (*FlowInstanceDataUpsert) SetCreatedAt

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

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataUpsert) SetType

SetType sets the "type" field.

func (*FlowInstanceDataUpsert) SetUpdatedAt

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

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

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowInstanceDataUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowInstanceDataUpsertBulk) AddType

AddType adds v to the "type" field.

func (*FlowInstanceDataUpsertBulk) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowInstanceDataUpsertBulk) ClearData

ClearData clears the value of the "data" field.

func (*FlowInstanceDataUpsertBulk) ClearDeletedAt

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

ClearNodeKey clears the value of the "node_key" field.

func (*FlowInstanceDataUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowInstanceDataUpsertBulk) Exec

Exec executes the query.

func (*FlowInstanceDataUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowInstanceDataUpsertBulk) Ignore

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

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

SetDeletedAt sets the "deleted_at" field.

func (*FlowInstanceDataUpsertBulk) SetFlowInstanceID

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataUpsertBulk) SetType

SetType sets the "type" field.

func (*FlowInstanceDataUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowInstanceDataUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FlowInstanceDataCreateBulk.OnConflict documentation for more info.

func (*FlowInstanceDataUpsertBulk) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowInstanceDataUpsertBulk) UpdateData

UpdateData sets the "data" field to the value that was provided on create.

func (*FlowInstanceDataUpsertBulk) UpdateDeletedAt

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

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

UpdateNodeKey sets the "node_key" field to the value that was provided on create.

func (*FlowInstanceDataUpsertBulk) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*FlowInstanceDataUpsertBulk) UpdateUpdatedAt

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowInstanceDataUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowInstanceDataUpsertOne) AddType

AddType adds v to the "type" field.

func (*FlowInstanceDataUpsertOne) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowInstanceDataUpsertOne) ClearData

ClearData clears the value of the "data" field.

func (*FlowInstanceDataUpsertOne) ClearDeletedAt

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

ClearNodeKey clears the value of the "node_key" field.

func (*FlowInstanceDataUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowInstanceDataUpsertOne) Exec

Exec executes the query.

func (*FlowInstanceDataUpsertOne) ExecX

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

IDX is like ID, but panics if an error occurs.

func (*FlowInstanceDataUpsertOne) Ignore

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

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

SetDeletedAt sets the "deleted_at" field.

func (*FlowInstanceDataUpsertOne) SetFlowInstanceID

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

SetNodeKey sets the "node_key" field.

func (*FlowInstanceDataUpsertOne) SetType

SetType sets the "type" field.

func (*FlowInstanceDataUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowInstanceDataUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FlowInstanceDataCreate.OnConflict documentation for more info.

func (*FlowInstanceDataUpsertOne) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowInstanceDataUpsertOne) UpdateData

UpdateData sets the "data" field to the value that was provided on create.

func (*FlowInstanceDataUpsertOne) UpdateDeletedAt

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

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

UpdateNodeKey sets the "node_key" field to the value that was provided on create.

func (*FlowInstanceDataUpsertOne) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*FlowInstanceDataUpsertOne) UpdateUpdatedAt

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

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

func (s *FlowInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) BoolX

func (s *FlowInstanceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowInstanceGroupBy) Bools

func (s *FlowInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) BoolsX

func (s *FlowInstanceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowInstanceGroupBy) Float64

func (s *FlowInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) Float64X

func (s *FlowInstanceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowInstanceGroupBy) Float64s

func (s *FlowInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) Float64sX

func (s *FlowInstanceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowInstanceGroupBy) Int

func (s *FlowInstanceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) IntX

func (s *FlowInstanceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowInstanceGroupBy) Ints

func (s *FlowInstanceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) IntsX

func (s *FlowInstanceGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowInstanceGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowInstanceGroupBy) String

func (s *FlowInstanceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) StringX

func (s *FlowInstanceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowInstanceGroupBy) Strings

func (s *FlowInstanceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowInstanceGroupBy) StringsX

func (s *FlowInstanceGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

func (m *FlowInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

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

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

func (s *FlowInstanceSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) BoolX

func (s *FlowInstanceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowInstanceSelect) Bools

func (s *FlowInstanceSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) BoolsX

func (s *FlowInstanceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowInstanceSelect) Float64

func (s *FlowInstanceSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) Float64X

func (s *FlowInstanceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowInstanceSelect) Float64s

func (s *FlowInstanceSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) Float64sX

func (s *FlowInstanceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowInstanceSelect) Int

func (s *FlowInstanceSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) IntX

func (s *FlowInstanceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowInstanceSelect) Ints

func (s *FlowInstanceSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) IntsX

func (s *FlowInstanceSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowInstanceSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowInstanceSelect) String

func (s *FlowInstanceSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) StringX

func (s *FlowInstanceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowInstanceSelect) Strings

func (s *FlowInstanceSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowInstanceSelect) StringsX

func (s *FlowInstanceSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

Save executes the query and returns the updated FlowInstance entity.

func (*FlowInstanceUpdateOne) SaveX

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

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

type FlowInstanceUpsert struct {
	*sql.UpdateSet
}

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

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowInstanceUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowInstanceUpsertBulk) AddStatus

AddStatus adds v to the "status" field.

func (*FlowInstanceUpsertBulk) AddUpdatedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowInstanceUpsertBulk) Exec

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

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

SetCreatedAt sets the "created_at" field.

func (*FlowInstanceUpsertBulk) SetDeletedAt

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

SetRefID sets the "ref_id" field.

func (*FlowInstanceUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*FlowInstanceUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowInstanceUpsertBulk) Update

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

UpdateRefID sets the "ref_id" field to the value that was provided on create.

func (*FlowInstanceUpsertBulk) UpdateStatus

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowInstanceUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowInstanceUpsertOne) AddStatus

AddStatus adds v to the "status" field.

func (*FlowInstanceUpsertOne) AddUpdatedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowInstanceUpsertOne) Exec

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

IDX is like ID, but panics if an error occurs.

func (*FlowInstanceUpsertOne) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowInstanceUpsertOne) SetDeletedAt

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

SetRefID sets the "ref_id" field.

func (*FlowInstanceUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*FlowInstanceUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowInstanceUpsertOne) Update

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

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

Create returns a create builder for FlowNodeInstance.

func (*FlowNodeInstanceClient) CreateBulk

CreateBulk returns a builder for creating a bulk of FlowNodeInstance entities.

func (*FlowNodeInstanceClient) Delete

Delete returns a delete builder for FlowNodeInstance.

func (*FlowNodeInstanceClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*FlowNodeInstanceClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*FlowNodeInstanceClient) Get

Get returns a FlowNodeInstance entity by its id.

func (*FlowNodeInstanceClient) GetX

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

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

Update returns an update builder for FlowNodeInstance.

func (*FlowNodeInstanceClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FlowNodeInstanceClient) UpdateOneID

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

Mutation returns the FlowNodeInstanceMutation object of the builder.

func (*FlowNodeInstanceCreate) OnConflict

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

Save creates the FlowNodeInstance in the database.

func (*FlowNodeInstanceCreate) SaveX

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

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

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

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

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

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

Save creates the FlowNodeInstance entities in the database.

func (*FlowNodeInstanceCreateBulk) SaveX

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

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

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FlowNodeInstanceGroupBy) Bool

func (s *FlowNodeInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) BoolX

func (s *FlowNodeInstanceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Bools

func (s *FlowNodeInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) BoolsX

func (s *FlowNodeInstanceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Float64

func (s *FlowNodeInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) Float64X

func (s *FlowNodeInstanceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Float64s

func (s *FlowNodeInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) Float64sX

func (s *FlowNodeInstanceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Int

func (s *FlowNodeInstanceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) IntX

func (s *FlowNodeInstanceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Ints

func (s *FlowNodeInstanceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) IntsX

func (s *FlowNodeInstanceGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowNodeInstanceGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) String

func (s *FlowNodeInstanceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) StringX

func (s *FlowNodeInstanceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowNodeInstanceGroupBy) Strings

func (s *FlowNodeInstanceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceGroupBy) StringsX

func (s *FlowNodeInstanceGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

Create returns a create builder for FlowNodeInstanceLog.

func (*FlowNodeInstanceLogClient) CreateBulk

CreateBulk returns a builder for creating a bulk of FlowNodeInstanceLog entities.

func (*FlowNodeInstanceLogClient) Delete

Delete returns a delete builder for FlowNodeInstanceLog.

func (*FlowNodeInstanceLogClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*FlowNodeInstanceLogClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*FlowNodeInstanceLogClient) Get

Get returns a FlowNodeInstanceLog entity by its id.

func (*FlowNodeInstanceLogClient) GetX

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

Query returns a query builder for FlowNodeInstanceLog.

func (*FlowNodeInstanceLogClient) Update

Update returns an update builder for FlowNodeInstanceLog.

func (*FlowNodeInstanceLogClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FlowNodeInstanceLogClient) UpdateOneID

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

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

Mutation returns the FlowNodeInstanceLogMutation object of the builder.

func (*FlowNodeInstanceLogCreate) OnConflict

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

Save creates the FlowNodeInstanceLog in the database.

func (*FlowNodeInstanceLogCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*FlowNodeInstanceLogCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceLogCreate) SetDeletedAt

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

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

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

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogCreate) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogCreate) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogCreate) SetUpdatedAt

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

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

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

Save creates the FlowNodeInstanceLog entities in the database.

func (*FlowNodeInstanceLogCreateBulk) SaveX

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

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

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FlowNodeInstanceLogGroupBy) Bool

func (s *FlowNodeInstanceLogGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) BoolX

func (s *FlowNodeInstanceLogGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Bools

func (s *FlowNodeInstanceLogGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) BoolsX

func (s *FlowNodeInstanceLogGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Float64

func (s *FlowNodeInstanceLogGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) Float64X

func (s *FlowNodeInstanceLogGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Float64s

func (s *FlowNodeInstanceLogGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) Float64sX

func (s *FlowNodeInstanceLogGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Int

func (s *FlowNodeInstanceLogGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) IntX

func (s *FlowNodeInstanceLogGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Ints

func (s *FlowNodeInstanceLogGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) IntsX

func (s *FlowNodeInstanceLogGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowNodeInstanceLogGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) String

func (s *FlowNodeInstanceLogGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) StringX

func (s *FlowNodeInstanceLogGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowNodeInstanceLogGroupBy) Strings

func (s *FlowNodeInstanceLogGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogGroupBy) StringsX

func (s *FlowNodeInstanceLogGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FlowNodeInstanceLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

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

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*FlowNodeInstanceLogMutation) Type

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

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

All executes the query and returns a list of FlowNodeInstanceLogs.

func (*FlowNodeInstanceLogQuery) AllX

AllX is like All, but panics if an error occurs.

func (*FlowNodeInstanceLogQuery) Clone

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

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

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

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

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

OnlyX is like Only, but panics if an error occurs.

func (*FlowNodeInstanceLogQuery) Order

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

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

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

func (s *FlowNodeInstanceLogSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) BoolX

func (s *FlowNodeInstanceLogSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Bools

func (s *FlowNodeInstanceLogSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) BoolsX

func (s *FlowNodeInstanceLogSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Float64

func (s *FlowNodeInstanceLogSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) Float64X

func (s *FlowNodeInstanceLogSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Float64s

func (s *FlowNodeInstanceLogSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) Float64sX

func (s *FlowNodeInstanceLogSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Int

func (s *FlowNodeInstanceLogSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) IntX

func (s *FlowNodeInstanceLogSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Ints

func (s *FlowNodeInstanceLogSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) IntsX

func (s *FlowNodeInstanceLogSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowNodeInstanceLogSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) String

func (s *FlowNodeInstanceLogSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) StringX

func (s *FlowNodeInstanceLogSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowNodeInstanceLogSelect) Strings

func (s *FlowNodeInstanceLogSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceLogSelect) StringsX

func (s *FlowNodeInstanceLogSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FlowNodeInstanceLogUpdate

type FlowNodeInstanceLogUpdate struct {
	// contains filtered or unexported fields
}

FlowNodeInstanceLogUpdate is the builder for updating FlowNodeInstanceLog entities.

func (*FlowNodeInstanceLogUpdate) AddDeletedAt

AddDeletedAt adds i to the "deleted_at" field.

func (*FlowNodeInstanceLogUpdate) AddStatus

AddStatus adds i to the "status" field.

func (*FlowNodeInstanceLogUpdate) AddType

AddType adds i to the "type" field.

func (*FlowNodeInstanceLogUpdate) AddUpdatedAt

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

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

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

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

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogUpdate) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogUpdate) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceLogUpdate) Where

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

AddDeletedAt adds i to the "deleted_at" field.

func (*FlowNodeInstanceLogUpdateOne) AddStatus

AddStatus adds i to the "status" field.

func (*FlowNodeInstanceLogUpdateOne) AddType

AddType adds i to the "type" field.

func (*FlowNodeInstanceLogUpdateOne) AddUpdatedAt

AddUpdatedAt adds i to the "updated_at" field.

func (*FlowNodeInstanceLogUpdateOne) ClearDeletedAt

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

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

Mutation returns the FlowNodeInstanceLogMutation object of the builder.

func (*FlowNodeInstanceLogUpdateOne) Save

Save executes the query and returns the updated FlowNodeInstanceLog entity.

func (*FlowNodeInstanceLogUpdateOne) SaveX

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

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

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

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogUpdateOne) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type FlowNodeInstanceLogUpsert

type FlowNodeInstanceLogUpsert struct {
	*sql.UpdateSet
}

FlowNodeInstanceLogUpsert is the "OnConflict" setter.

func (*FlowNodeInstanceLogUpsert) AddCreatedAt

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceLogUpsert) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceLogUpsert) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceLogUpsert) AddType

AddType adds v to the "type" field.

func (*FlowNodeInstanceLogUpsert) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowNodeInstanceLogUpsert) ClearDeletedAt

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceLogUpsert) SetDeletedAt

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

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

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogUpsert) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogUpsert) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceLogUpsert) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsert) UpdateDeletedAt

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

UpdateNodeKey sets the "node_key" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsert) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsert) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsert) UpdateUpdatedAt

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceLogUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceLogUpsertBulk) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceLogUpsertBulk) AddType

AddType adds v to the "type" field.

func (*FlowNodeInstanceLogUpsertBulk) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowNodeInstanceLogUpsertBulk) ClearDeletedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowNodeInstanceLogUpsertBulk) Exec

Exec executes the query.

func (*FlowNodeInstanceLogUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowNodeInstanceLogUpsertBulk) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceLogUpsertBulk) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*FlowNodeInstanceLogUpsertBulk) SetFlowInstanceDataID

SetFlowInstanceDataID sets the "flow_instance_data_id" field.

func (*FlowNodeInstanceLogUpsertBulk) SetFlowInstanceID

SetFlowInstanceID sets the "flow_instance_id" field.

func (*FlowNodeInstanceLogUpsertBulk) SetFlowNodeInstanceID

SetFlowNodeInstanceID sets the "flow_node_instance_id" field.

func (*FlowNodeInstanceLogUpsertBulk) SetNodeKey

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogUpsertBulk) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceLogUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceLogCreateBulk.OnConflict documentation for more info.

func (*FlowNodeInstanceLogUpsertBulk) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertBulk) UpdateDeletedAt

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

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

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

UpdateNodeKey sets the "node_key" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertBulk) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertBulk) UpdateUpdatedAt

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceLogUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceLogUpsertOne) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceLogUpsertOne) AddType

AddType adds v to the "type" field.

func (*FlowNodeInstanceLogUpsertOne) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowNodeInstanceLogUpsertOne) ClearDeletedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowNodeInstanceLogUpsertOne) Exec

Exec executes the query.

func (*FlowNodeInstanceLogUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowNodeInstanceLogUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*FlowNodeInstanceLogUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*FlowNodeInstanceLogUpsertOne) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceLogUpsertOne) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*FlowNodeInstanceLogUpsertOne) SetFlowInstanceDataID

SetFlowInstanceDataID sets the "flow_instance_data_id" field.

func (*FlowNodeInstanceLogUpsertOne) SetFlowInstanceID

SetFlowInstanceID sets the "flow_instance_id" field.

func (*FlowNodeInstanceLogUpsertOne) SetFlowNodeInstanceID

SetFlowNodeInstanceID sets the "flow_node_instance_id" field.

func (*FlowNodeInstanceLogUpsertOne) SetNodeKey

SetNodeKey sets the "node_key" field.

func (*FlowNodeInstanceLogUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceLogUpsertOne) SetType

SetType sets the "type" field.

func (*FlowNodeInstanceLogUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceLogUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceLogCreate.OnConflict documentation for more info.

func (*FlowNodeInstanceLogUpsertOne) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertOne) UpdateDeletedAt

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

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

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

UpdateNodeKey sets the "node_key" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertOne) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertOne) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*FlowNodeInstanceLogUpsertOne) UpdateUpdatedAt

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

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

func (m *FlowNodeInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

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

All executes the query and returns a list of FlowNodeInstances.

func (*FlowNodeInstanceQuery) AllX

AllX is like All, but panics if an error occurs.

func (*FlowNodeInstanceQuery) Clone

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

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

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

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

OnlyX is like Only, but panics if an error occurs.

func (*FlowNodeInstanceQuery) Order

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

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

func (s *FlowNodeInstanceSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) BoolX

func (s *FlowNodeInstanceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Bools

func (s *FlowNodeInstanceSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) BoolsX

func (s *FlowNodeInstanceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Float64

func (s *FlowNodeInstanceSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) Float64X

func (s *FlowNodeInstanceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Float64s

func (s *FlowNodeInstanceSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) Float64sX

func (s *FlowNodeInstanceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Int

func (s *FlowNodeInstanceSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) IntX

func (s *FlowNodeInstanceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Ints

func (s *FlowNodeInstanceSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) IntsX

func (s *FlowNodeInstanceSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

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) ScanX

func (s *FlowNodeInstanceSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FlowNodeInstanceSelect) String

func (s *FlowNodeInstanceSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) StringX

func (s *FlowNodeInstanceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FlowNodeInstanceSelect) Strings

func (s *FlowNodeInstanceSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FlowNodeInstanceSelect) StringsX

func (s *FlowNodeInstanceSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

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

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

SetStatus sets the "status" field.

func (*FlowNodeInstanceUpdate) SetUpdatedAt

func (fniu *FlowNodeInstanceUpdate) SetUpdatedAt(i int64) *FlowNodeInstanceUpdate

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceUpdate) Where

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

AddDeletedAt adds i to the "deleted_at" field.

func (*FlowNodeInstanceUpdateOne) AddStatus

AddStatus adds i to the "status" field.

func (*FlowNodeInstanceUpdateOne) AddUpdatedAt

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

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

Mutation returns the FlowNodeInstanceMutation object of the builder.

func (*FlowNodeInstanceUpdateOne) Save

Save executes the query and returns the updated FlowNodeInstance entity.

func (*FlowNodeInstanceUpdateOne) SaveX

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

SetDeletedAt sets the "deleted_at" field.

func (*FlowNodeInstanceUpdateOne) SetFlowInstance

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

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

SetStatus sets the "status" field.

func (*FlowNodeInstanceUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type FlowNodeInstanceUpsert

type FlowNodeInstanceUpsert struct {
	*sql.UpdateSet
}

FlowNodeInstanceUpsert is the "OnConflict" setter.

func (*FlowNodeInstanceUpsert) AddCreatedAt

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceUpsert) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceUpsert) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceUpsert) AddUpdatedAt

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceUpsert) SetDeletedAt

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

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

SetStatus sets the "status" field.

func (*FlowNodeInstanceUpsert) SetUpdatedAt

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

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceUpsertBulk) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceUpsertBulk) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceUpsertBulk) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowNodeInstanceUpsertBulk) ClearDeletedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowNodeInstanceUpsertBulk) Exec

Exec executes the query.

func (*FlowNodeInstanceUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FlowNodeInstanceUpsertBulk) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceUpsertBulk) SetDeletedAt

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

SetFlowInstanceID sets the "flow_instance_id" field.

func (*FlowNodeInstanceUpsertBulk) SetNodeKey

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

SetSourceNodeKey sets the "source_node_key" field.

func (*FlowNodeInstanceUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceCreateBulk.OnConflict documentation for more info.

func (*FlowNodeInstanceUpsertBulk) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowNodeInstanceUpsertBulk) UpdateDeletedAt

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

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

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

UpdateStatus sets the "status" field to the value that was provided on create.

func (*FlowNodeInstanceUpsertBulk) UpdateUpdatedAt

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

AddCreatedAt adds v to the "created_at" field.

func (*FlowNodeInstanceUpsertOne) AddDeletedAt

AddDeletedAt adds v to the "deleted_at" field.

func (*FlowNodeInstanceUpsertOne) AddStatus

AddStatus adds v to the "status" field.

func (*FlowNodeInstanceUpsertOne) AddUpdatedAt

AddUpdatedAt adds v to the "updated_at" field.

func (*FlowNodeInstanceUpsertOne) ClearDeletedAt

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FlowNodeInstanceUpsertOne) Exec

Exec executes the query.

func (*FlowNodeInstanceUpsertOne) ExecX

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

IDX is like ID, but panics if an error occurs.

func (*FlowNodeInstanceUpsertOne) Ignore

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

SetCreatedAt sets the "created_at" field.

func (*FlowNodeInstanceUpsertOne) SetDeletedAt

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

SetFlowInstanceID sets the "flow_instance_id" field.

func (*FlowNodeInstanceUpsertOne) SetNodeKey

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

SetSourceNodeKey sets the "source_node_key" field.

func (*FlowNodeInstanceUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*FlowNodeInstanceUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FlowNodeInstanceUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FlowNodeInstanceCreate.OnConflict documentation for more info.

func (*FlowNodeInstanceUpsertOne) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*FlowNodeInstanceUpsertOne) UpdateDeletedAt

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

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

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

UpdateStatus sets the "status" field to the value that was provided on create.

func (*FlowNodeInstanceUpsertOne) UpdateUpdatedAt

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 Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

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 Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

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 Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...interface{})) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector.

func Asc

func Asc(fields ...string) OrderFunc

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) OrderFunc

Desc applies the given fields in DESC order.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

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.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

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

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

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

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

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.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

Jump to

Keyboard shortcuts

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