From ddfbb09ad3a8f6174af89ab14f105f0a2d297946 Mon Sep 17 00:00:00 2001 From: Levko Kravets Date: Tue, 23 Apr 2024 13:57:30 +0300 Subject: [PATCH] Add a note about `queryTimeout` option Signed-off-by: Levko Kravets --- lib/contracts/IDBSQLSession.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/contracts/IDBSQLSession.ts b/lib/contracts/IDBSQLSession.ts index 652e7b7..8a0d8bf 100644 --- a/lib/contracts/IDBSQLSession.ts +++ b/lib/contracts/IDBSQLSession.ts @@ -5,6 +5,11 @@ import InfoValue from '../dto/InfoValue'; import { DBSQLParameter, DBSQLParameterValue } from '../DBSQLParameter'; export type ExecuteStatementOptions = { + /** + * The number of seconds after which the query will time out on the server. + * Effective only with Compute clusters. For SQL Warehouses, `STATEMENT_TIMEOUT` + * configuration should be used + */ queryTimeout?: number | bigint | Int64; /** * @deprecated This option is no longer supported and will be removed in future releases