Begin implements the driver.Conn.Begin method.
()
| 237 | |
| 238 | // Begin implements the driver.Conn.Begin method. |
| 239 | func (c *conn) Begin() (driver.Tx, error) { |
| 240 | return c.BeginTx(context.Background(), driver.TxOptions{}) |
| 241 | } |
| 242 | |
| 243 | // BeginTx implements the driver.ConnBeginTx.BeginTx method. |
| 244 | func (c *conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) { |