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

Method Conn

tx.go:384–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382}
383
384func (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

Callers

nothing calls this directly

Calls 1

ConnMethod · 0.65

Tested by

no test coverage detected