From 6e47d158054e6107ba0549d4af2feb1596042a1d Mon Sep 17 00:00:00 2001 From: Graham McNicoll Date: Thu, 19 Oct 2023 23:19:32 -0700 Subject: [PATCH 1/2] Update ConnectionOptions.ts Added support for newer connection options that are supported in the 1.6 Snowflake SDK. --- src/types/ConnectionOptions.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/types/ConnectionOptions.ts b/src/types/ConnectionOptions.ts index dd6eaec..45826e1 100644 --- a/src/types/ConnectionOptions.ts +++ b/src/types/ConnectionOptions.ts @@ -10,6 +10,7 @@ export interface ConnectionOptions { account: string; /** Snowflake user login name to connect with. */ username: string; + /** Optional Connection Parameters */ /** * Specifies the authenticator to use for verifying user login credentials. * You can set this to one of the following values: @@ -89,4 +90,24 @@ export interface ConnectionOptions { * 3600 seconds are rarely necessary or useful. */ clientSessionKeepAliveHeartbeatFrequency?: number; + /** Specifies the name of the client application connecting to Snowflake. */ + application?: string; + /** + * Specifies the lists of hosts that the driver should connect to directly, bypassing + * the proxy server (e.g. *.amazonaws.com to bypass Amazon S3 access). For multiple hosts, + * separate the hostnames with a pipe symbol (|). You can also use an asterisk as a wild card. + * For example: + * noProxy: "*.amazonaws.com|*.my_company.com" + */ + noProxy?: string; + /** Specifies the hostname of an authenticated proxy server. */ + proxyHost?: string; + /** Specifies the password for the user specified by proxyUser. */ + proxyPassword?: string; + /** Specifies the port of an authenticated proxy server. */ + proxyPort?: number; + /** Specifies the protocol used to connect to the authenticated proxy server. Use this property to specify the HTTP protocol: http or https. */ + proxyProtocol?: string; + /** Specifies the username used to connect to an authenticated proxy server. */ + proxyUser?: string; } From f6e2e573071447054fcd13747b8fd889d79255a3 Mon Sep 17 00:00:00 2001 From: Graham McNicoll Date: Fri, 20 Oct 2023 14:37:26 -0700 Subject: [PATCH 2/2] Added support for additional connection options supported by the Snowflake-SDK Node package --- src/types/ConnectionOptions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/ConnectionOptions.ts b/src/types/ConnectionOptions.ts index 45826e1..d9ad8c2 100644 --- a/src/types/ConnectionOptions.ts +++ b/src/types/ConnectionOptions.ts @@ -93,9 +93,9 @@ export interface ConnectionOptions { /** Specifies the name of the client application connecting to Snowflake. */ application?: string; /** - * Specifies the lists of hosts that the driver should connect to directly, bypassing - * the proxy server (e.g. *.amazonaws.com to bypass Amazon S3 access). For multiple hosts, - * separate the hostnames with a pipe symbol (|). You can also use an asterisk as a wild card. + * Specifies the lists of hosts that the driver should connect to directly, bypassing + * the proxy server (e.g. *.amazonaws.com to bypass Amazon S3 access). For multiple hosts, + * separate the hostnames with a pipe symbol (|). You can also use an asterisk as a wild card. * For example: * noProxy: "*.amazonaws.com|*.my_company.com" */