Commit 40169f67 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

transaction

parent 6f2f266e
......@@ -26,6 +26,13 @@ func (d *Pool) TxNew(ctx context.Context) (*Tx, error) {
func (d *Pool) MustTx() *Tx {
tx, _ := d.TxNew(d.ctx)
return tx
}
func (d *Pool) MustTxCtx(ctx context.Context) *Tx {
tx, _ := d.TxNew(ctx)
return tx
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment