Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2019 Changes in this version + var ErrChildrenNotDone = errors.New("txmanager: children transactions are not done") + func Do(d DB, f func(t Tx) error) error + type Beginner interface + TxBegin func() (Tx, error) + type Committer interface + TxCommit func() error + TxFinish func() error + TxRollback func() error + type DB interface + func NewDB(d *sql.DB) DB + type EndHookAdder interface + TxAddEndHook func(hook func() error) error + type Executor interface + Exec func(query string, args ...interface{}) (sql.Result, error) + Prepare func(query string) (*sql.Stmt, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + type Tx interface