# README

# Functions

MustSettings returns Settings if stopByErr is nil and panics otherwise.
NewCtxGetter returns *CtxGetter to get *gorm.DB from context.Context.
NewDefaultFactory creates default trm.Transaction(gorm.DB).
NewSettings creates Settings.
NewTransaction creates trm.Transaction for sqlx.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 *gorm.DB.
Settings contains settings for Transaction.
Transaction is trm.Transaction for sqlx.Tx.

# Type aliases

Opt is a type to configure Settings.