@quillsql/node 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/db/Snowflake.js +1 -1
- package/package.json +1 -1
- package/src/db/Snowflake.ts +4 -1
package/dist/db/Snowflake.js
CHANGED
|
@@ -105,7 +105,7 @@ function formatSnowflakeConfig(connectionString) {
|
|
|
105
105
|
}
|
|
106
106
|
exports.formatSnowflakeConfig = formatSnowflakeConfig;
|
|
107
107
|
function connectToSnowflake(config) {
|
|
108
|
-
const connection = snowflake_sdk_1.default.createConnection(config);
|
|
108
|
+
const connection = snowflake_sdk_1.default.createConnection(Object.assign(Object.assign({}, config), { clientSessionKeepAlive: true }));
|
|
109
109
|
connection.connect((err) => {
|
|
110
110
|
if (err) {
|
|
111
111
|
console.error(`Failed to connect to Snowflake: ${err.message}`);
|
package/package.json
CHANGED
package/src/db/Snowflake.ts
CHANGED
|
@@ -111,7 +111,10 @@ export function formatSnowflakeConfig(
|
|
|
111
111
|
export function connectToSnowflake(
|
|
112
112
|
config: SnowflakeConnectionConfig
|
|
113
113
|
): snowflake.Connection {
|
|
114
|
-
const connection = snowflake.createConnection(
|
|
114
|
+
const connection = snowflake.createConnection({
|
|
115
|
+
...config,
|
|
116
|
+
clientSessionKeepAlive: true,
|
|
117
|
+
});
|
|
115
118
|
connection.connect((err) => {
|
|
116
119
|
if (err) {
|
|
117
120
|
console.error(`Failed to connect to Snowflake: ${err.message}`);
|