Begin starts a transaction block from the *Conn without explicitly setting a transaction mode (see BeginTx with TxOptions if transaction mode is required).
(ctx context.Context)
| 104 | |
| 105 | // Begin starts a transaction block from the *Conn without explicitly setting a transaction mode (see BeginTx with TxOptions if transaction mode is required). |
| 106 | func (c *Conn) Begin(ctx context.Context) (pgx.Tx, error) { |
| 107 | return c.Conn().Begin(ctx) |
| 108 | } |
| 109 | |
| 110 | // BeginTx starts a transaction block from the *Conn with txOptions determining the transaction mode. |
| 111 | func (c *Conn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error) { |