Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WrappingContext ¶
WrappingContext combines a transaction and a context
func Begin ¶
func Begin(ctx context.Context) (*WrappingContext, error)
Begin begins a new transaction and returns a transaction.WrappingContext that is the transaction and the context with the new sqalx transaction node. The caller must use the returned context in subsequent function calls that are meant to happen within the transaction.
func (*WrappingContext) WithoutTx ¶
func (ctx *WrappingContext) WithoutTx() context.Context
WithoutTx returns this context with a top-level sqalx node that is outside of any ongoing transaction
Click to show internal directories.
Click to hide internal directories.