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

# Functions

NewCtxGetter returns *CtxGetter to get Tr from context.Context.
NewDefaultFactory creates default trm.Transaction(sqlx.Tx).
NewFactory creates trm.Transaction(sql.Tx).
NewTransaction creates trm.Transaction for sqlx.Tx.

# Variables

DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.

# Structs

CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
Transaction is trm.Transaction for sqlx.Tx.

# Interfaces

Tr is an interface to work with sqlx.DB or sqlx.Tx.