Versions in this module Expand all Collapse all v0 v0.39.0 Sep 3, 2026 Changes in this version + var ErrBindingFlush = errors.New("cannot flush a binding child while its ancestor is open") + var ErrCompleted = errors.New("mutation unit of work is completed") + var ErrFailed = errors.New("mutation unit of work has failed") + var ErrFrameSealed = errors.New("component mutation frame is sealed") + var ErrTransactionAccess = errors.New("direct transaction access is unavailable in invocation mode") + var ErrTransactionConflict = errors.New("conflicting transaction for database") + func BindingOrder(ctx context.Context) string + func Enter(ctx context.Context, name string) (context.Context, *Scope, *Frame, bool, error) + func FromContext(ctx context.Context) (*Scope, *Frame, bool) + func NewRoot(ctx context.Context, name string) (context.Context, *Scope, *Frame) + func PrepareChild(ctx context.Context, relation Relation, order string) context.Context + func Propagate(source, destination context.Context) context.Context + func ReserveBindingOrder(ctx context.Context) (string, error) + func WithBindingOrder(ctx context.Context, order string) context.Context + func WithBindingOrderIndex(ctx context.Context, index int) context.Context + type Buffer struct + func (b *Buffer) Append(value any) error + func (b *Buffer) Flush(ctx context.Context, table string) error + func (b *Buffer) Reconcile(values []any) error + func (b *Buffer) SetBatchExecutor(execute func(context.Context, *sql.Tx, []any) error) + func (b *Buffer) Transaction(ctx context.Context) (*sql.Tx, error) + func (b *Buffer) UseTransaction(ctx context.Context, fn func(*sql.Tx) error) error + type Frame struct + func (f *Frame) DebugLabel() string + func (f *Frame) NewBuffer(resolveDB func(context.Context) (*sql.DB, error), externalTx *sql.Tx, ...) *Buffer + func (f *Frame) Seal() + type Operation struct + type Relation uint8 + const RelationBinding + const RelationImperative + const RelationRoot + type Scope struct + func (s *Scope) AdoptTransaction(db *sql.DB, tx *sql.Tx) error + func (s *Scope) Finish(ctx context.Context, cause error) error + func (s *Scope) IsCompleted() bool