Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTxContext ¶
NewTxContext returns a new context with the given Tx attached.
Types ¶
type Transactor ¶
type Transactor interface {
RunInTx(ctx context.Context, fn func(ctx context.Context) error) (err error)
}
func NewTransactor ¶
func NewTransactor(db *sqlx.DB) Transactor
Click to show internal directories.
Click to hide internal directories.