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

Method Begin

stdlib/sql.go:452–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450}
451
452func (c *Conn) Begin() (driver.Tx, error) {
453 return c.BeginTx(context.Background(), driver.TxOptions{})
454}
455
456func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) {
457 if c.conn.IsClosed() {

Callers

nothing calls this directly

Calls 1

BeginTxMethod · 0.95

Tested by

no test coverage detected