MCPcopy
hub / github.com/jackc/pgx / dbSimulatedNestedTx

Struct dbSimulatedNestedTx

tx.go:288–292  ·  tx.go::dbSimulatedNestedTx

dbSimulatedNestedTx represents a simulated nested transaction implemented by a savepoint.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected