Skip to content

bindings/javascript: Add per-connection and per-statement query timeout#6109

Open
penberg wants to merge 1 commit intotursodatabase:mainfrom
penberg:query-timeout
Open

bindings/javascript: Add per-connection and per-statement query timeout#6109
penberg wants to merge 1 commit intotursodatabase:mainfrom
penberg:query-timeout

Conversation

@penberg
Copy link
Collaborator

@penberg penberg commented Mar 23, 2026

Introduce a configurable query timeout that interrupts long-running statements after a deadline. Supports a connection-level default (set_query_timeout) and per-statement overrides via the JS bindings. The VM checks the monotonic clock in its execution loops and transitions to Interrupting state when the deadline is exceeded.

This adds the functionality that was recently added to libSQL: tursodatabase/libsql-js#209

Introduce a configurable query timeout that interrupts long-running
statements after a deadline. Supports a connection-level default
(set_query_timeout) and per-statement overrides via the JS bindings.
The VM checks the monotonic clock in its execution loops and transitions
to Interrupting state when the deadline is exceeded.
Copy link

@turso-bot turso-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review @LeMikaelF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant