dbSimulatedNestedTx represents a simulated nested transaction implemented by a savepoint.
| 286 | |
| 287 | // dbSimulatedNestedTx represents a simulated nested transaction implemented by a savepoint. |
| 288 | type dbSimulatedNestedTx struct { |
| 289 | tx Tx |
| 290 | savepointNum int64 |
| 291 | closed bool |
| 292 | } |
| 293 | |
| 294 | // Begin starts a pseudo nested transaction implemented with a savepoint. |
| 295 | func (sp *dbSimulatedNestedTx) Begin(ctx context.Context) (Tx, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected