Documentation ¶
Index ¶
- Constants
- func IsActive(v interface{}) bool
- func RegisterCommit(ctx context.Context, key any, hook ...Hook)
- func RegisterRollback(ctx context.Context, key any, hook ...Hook)
- func RunTransaction[T any](ctx context.Context, begin Begin, ...) (res T, err error)
- func WithTransaction() interface{}
- type Begin
- type Hook
- type Hooks
- type TransactionContainer
Constants ¶
View Source
const ( ReadOnly = "readOnly" Transaction = "transaction" )
Variables ¶
This section is empty.
Functions ¶
func RunTransaction ¶
func WithTransaction ¶
func WithTransaction() interface{}
Types ¶
type TransactionContainer ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.