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

Method Begin

tx.go:124–124  ·  view source on GitHub ↗

Begin starts a pseudo nested transaction.

(ctx context.Context)

Source from the content-addressed store, hash-verified

122type Tx interface {
123 // Begin starts a pseudo nested transaction.
124 Begin(ctx context.Context) (Tx, error)
125
126 // Commit commits the transaction if this is a real transaction or releases the savepoint if this is a pseudo nested
127 // transaction. Commit will return an error where errors.Is(ErrTxClosed) is true if the Tx is already closed, but is

Implementers 3

dbTxtx.go
Txpgxpool/tx.go

Calls

no outgoing calls