Documentation ¶
Index ¶
- func AddPostCommitHook(ctx context.Context, hook TxnFunc)
- func AddPostCompleteHook(ctx context.Context, hook TxnFunc)
- func AddPostRollbackHook(ctx context.Context, hook TxnFunc)
- func WithDatabase(ctx context.Context, p DatabaseProvider, fn TxnFunc) error
- func WithTxn(ctx context.Context, m Manager, fn TxnFunc) error
- type DatabaseProvider
- type Manager
- type Retryer
- type TxnFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPostCommitHook ¶
func AddPostCompleteHook ¶
func AddPostRollbackHook ¶
func WithDatabase ¶
func WithDatabase(ctx context.Context, p DatabaseProvider, fn TxnFunc) error
WithDatabase executes fn with the context provided by p.WithDatabase. It does not run inside a transaction, so all database operations will be executed in their own transaction.
Types ¶
type DatabaseProvider ¶
Click to show internal directories.
Click to hide internal directories.