Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#69144 [snowflake-sdk]: Add keepAlive and c…
Browse files Browse the repository at this point in the history
…olumn variant parsers to configureOptions and fix docs link by @linkel
  • Loading branch information
linkel authored Apr 14, 2024
1 parent 0156c4f commit 05a6b9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/snowflake-sdk/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,15 @@ export interface ConfigureOptions {

/**
* ### Related Docs
* - {@link https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#choosing-fail-open-or-fail-close-mode Choosing `Fail-Open` or `Fail-Close` Mode}
* - {@link https://docs.snowflake.com/user-guide/ocsp#fail-open-or-fail-close-behavior Choosing `Fail-Open` or `Fail-Close` Mode}
*/
ocspFailOpen?: boolean | undefined;
jsonColumnVariantParser?: ((rawColumnValue: string) => any) | undefined;
xmlColumnVariantParser?: ((rawColumnValue: string) => any) | undefined;
/**
* Specifies whether to enable keep-alive functionality on the socket immediately after receiving a new connection request. Default value is true.
*/
keepAlive?: boolean | undefined;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions types/snowflake-sdk/snowflake-sdk-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ snowflake.configure({
insecureConnect: true,
logLevel: "ERROR",
ocspFailOpen: true,
keepAlive: true,
jsonColumnVariantParser: undefined,
xmlColumnVariantParser: undefined
});

const connection = snowflake.createConnection({
Expand Down

0 comments on commit 05a6b9e

Please sign in to comment.