Skip to content

Commit

Permalink
add resultPrefetch option to snowflake connector
Browse files Browse the repository at this point in the history
  • Loading branch information
csjh committed Oct 4, 2024
1 parent 3a4be6e commit 1c3d1dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/datasources/snowflake/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const getCredentials = (database = {}) => {
const warehouse = database.warehouse;
const role = database.role;
const schema = database.schema;
const resultPrefetch = database.resultPrefetch ?? 2;

// https://docs.snowflake.com/en/developer-guide/node-js/nodejs-driver-connect#label-nodejs-proxy-connection
const proxyOptions = database.proxy
Expand All @@ -171,6 +172,7 @@ const getCredentials = (database = {}) => {
warehouse,
role,
schema,
resultPrefetch,
...proxyOptions
};

Expand Down

0 comments on commit 1c3d1dd

Please sign in to comment.