Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithTx ¶
func WithTx(ctx context.Context, exec riverdriver.Executor, innerFunc func(ctx context.Context, exec riverdriver.ExecutorTx) error) error
WithTx starts and commits a transaction on a driver executor around the given function, allowing the return of a generic value.
func WithTxV ¶
func WithTxV[T any](ctx context.Context, exec riverdriver.Executor, innerFunc func(ctx context.Context, exec riverdriver.ExecutorTx) (T, error)) (T, error)
WithTxV starts and commits a transaction on a driver executor around the given function, allowing the return of a generic value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.