You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds `defaultQueryTimeout` connection option and per-query
`{ queryTimeout: ms }` parameter to interrupt long-running queries
via sqlite3_interrupt(). Available on exec(), run(), get(), iterate(),
and all() in both sync and async APIs.
A shared background tokio task manages deadlines with a min-heap.
Registering a query returns a TimeoutGuard — if the deadline expires
before the guard is dropped, the connection is interrupted. Dropping
the guard early (query completed) cancels the timeout and wakes the
background task to release the connection reference immediately.
The returned info object contains two properties: `changes` that describes the number of modified rows and `info.lastInsertRowid` that represents the `rowid` of the last inserted row.
0 commit comments