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

Struct Tx

pgxpool/tx.go:11–14  ·  view source on GitHub ↗

Tx represents a database transaction acquired from a Pool.

Source from the content-addressed store, hash-verified

9
10// Tx represents a database transaction acquired from a Pool.
11type Tx struct {
12 t pgx.Tx
13 c *Conn
14}
15
16// Begin starts a pseudo nested transaction implemented with a savepoint.
17func (tx *Tx) Begin(ctx context.Context) (pgx.Tx, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected