Categorygithub.com/avito-tech/go-transaction-manager/drivers/gorm/v2
modulepackage
2.0.0
Repository: https://github.com/avito-tech/go-transaction-manager.git
Documentation: pkg.go.dev

# README

# Functions

MustSettings returns Settings if err 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.