Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2026 Changes in this version type Data + func (d *Data) DeleteWithOptions(tableName string, data any, options ...xhandler.Option) error + func (d *Data) InvocationTransaction() (*sql.DB, *sql.Tx) + func (d *Data) UpdateWithOptions(tableName string, data any, options ...xhandler.Option) error v1.0.0 Sep 22, 2026 Changes in this version + const ComponentBinding + const ComponentImperative + var ErrBindingFlush = errors.New("cannot flush a binding component while its ancestor is open") + var ErrComponentSealed = errors.New("DML component frame is sealed") + var ErrInvocationCompleted = errors.New("DML data invocation is completed") + var ErrInvocationFailed = errors.New("DML data invocation failed") + type Data struct + func NewData(db *sql.DB, opts ...Option) *Data + func (d *Data) Allocate(ctx context.Context, tableName string, dest any, selector string) error + func (d *Data) BeginInvocation() error + func (d *Data) Complete(ctx context.Context, cause error) error + func (d *Data) ComponentData(relation, order string) xhandler.Data + func (d *Data) Delete(tableName string, data any) error + func (d *Data) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) + func (d *Data) Execute(dml string, args ...any) error + func (d *Data) Flush(ctx context.Context, tableName string) error + func (d *Data) FrameworkValidator() xhandler.Validator + func (d *Data) Insert(tableName string, data any) error + func (d *Data) PrepareCompletion(ctx context.Context) error + func (d *Data) PrepareFinalization(ctx context.Context) error + func (d *Data) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) + func (d *Data) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row + func (d *Data) Reserve(ctx context.Context, tableName string, dest any, selector string) error + func (d *Data) SealComponent() + func (d *Data) Start(ctx context.Context) error + func (d *Data) TransactionOutcome() xhandler.TransactionOutcome + func (d *Data) Update(tableName string, data any) error + func (d *Data) ValidationConnection(ctx context.Context, connector string) (validation.Connection, error) + type Option func(*options) + func WithCommitObserver(observer func(context.Context)) Option + func WithSequenceStrategy(strategy dialect.PresetIDStrategy) Option + func WithTx(tx *sql.Tx) Option + type Source struct + DB *sql.DB + OnCommit func(context.Context) + SequenceStrategy dialect.PresetIDStrategy + Tx *sql.Tx + func (s Source) InvocationKey() any + func (s Source) InvocationSequenceStrategy() string + func (s Source) InvocationTransactionKey() any + func (s Source) Open(ctx context.Context) (xhandler.Data, error) + func (s Source) ResolveSequenceStrategy(ctx context.Context) (dexec.DataSource, string, error) + func (s Source) WithSequenceStrategy(strategy string) (dexec.DataSource, error)