Skip to content

Commit

Permalink
docs: add a comment on how a sql query can have potential to run long…
Browse files Browse the repository at this point in the history
…er than the configured timeout
  • Loading branch information
AdamJohnSwan committed Jun 7, 2023
1 parent ece396a commit 2ae8773
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ export interface ConnectionOptions {
readOnlyIntent?: boolean;

/**
* The number of milliseconds before a request is considered failed, or `0` for no timeout
* The number of milliseconds before a request is considered failed, or `0` for no timeout.
*
* As soon as a response is received, the timeout is cleared. This means that queries that immediately return a response have ability to run longer than this timeout.
*
* (default: `15000`).
*/
Expand Down

0 comments on commit 2ae8773

Please sign in to comment.