()
| 382 | } |
| 383 | |
| 384 | func (sp *dbSimulatedNestedTx) Conn() *Conn { |
| 385 | return sp.tx.Conn() |
| 386 | } |
| 387 | |
| 388 | // BeginFunc calls Begin on db and then calls fn. If fn does not return an error then it calls [Tx.Commit] on db. If fn |
| 389 | // returns an error it calls [Tx.Rollback] on db. The context will be used when executing the transaction control statements |