-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Currently, SQLCancel is not supported by node-odbc.
This makes it tricky for production workloads where we want to implement a timeout for long-running queries, so we can serve other requests.
An example of what supporting such feature may look like:
// For connections
const connection = await odbc.connect(connectionString);
const queryPromise = connection.query('SELECT * FROM large_table', { timeout: 30 });
// Cancel after 10 seconds
setTimeout(() => {
connection.cancel(); // Cancel the current query
}, 10000);
Happy to PR as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels