()
| 444 | } |
| 445 | |
| 446 | func (c *Conn) Close() error { |
| 447 | ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) |
| 448 | defer cancel() |
| 449 | return c.close(ctx) |
| 450 | } |
| 451 | |
| 452 | func (c *Conn) Begin() (driver.Tx, error) { |
| 453 | return c.BeginTx(context.Background(), driver.TxOptions{}) |