# Packages

Package mock is a generated GoMock package.

# Functions

MustSettings returns Settings if err is nil and panics otherwise.
NewCtxGetter returns *CtxGetter to get Tr from context.Context.
NewDefaultFactory creates default trm.Transaction(sql.Tx).
NewFactory creates trm.Transaction(sql.Tx).
NewSavePoint is an implementation of trm.SavePoint.
NewSettings creates Settings.
NewTransaction creates trm.Transaction for sql.Tx.
WithTxOptions sets up sql.TxOptions for the Settings.

# Variables

DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.

# Structs

CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
revive:disable:exported.
Settings contains settings for sql.Transaction.
Transaction is trm.Transaction for sql.Tx.

# Interfaces

SavePoint defines the syntax to create savepoints within transaction.
Tr is an interface to work with sql.DB or sql.Tx.

# Type aliases

Opt is a type to configure Settings.