Versions in this module Expand all Collapse all v1 v1.1.0 Aug 6, 2018 Changes in this version + func Run(ctx context.Context, t Transactional, tx *Tx, f func(context.Context) error) (err error) + type SQL struct + DB *sql.DB + func (SQL) Commit(tx *Tx) error + func (SQL) Rollback(tx *Tx) error + func (sql *SQL) RunTx(ctx context.Context, f func(context.Context) error) error + type Transactional interface + Commit func(*Tx) error + Rollback func(*Tx) error + RunTx func(context.Context, func(context.Context) error) error + type Tx struct + func Current(ctx context.Context) (*Tx, bool) + func Wrap(clientTx interface{}) *Tx + func (tx *Tx) Unwrap() interface{}