Busy handlers.

This commit is contained in:
Nuno Cruces
2024-02-02 23:41:34 +00:00
parent da0e98f17e
commit 7438fdb664
7 changed files with 64 additions and 16 deletions

View File

@@ -170,7 +170,7 @@ func (n *connector) Connect(ctx context.Context) (_ driver.Conn, err error) {
defer c.Conn.SetInterrupt(old)
if !n.pragmas {
err = c.Conn.Exec(`PRAGMA busy_timeout=60000`)
err = c.Conn.BusyTimeout(60 * time.Second)
if err != nil {
return nil, err
}