Skip to content

Commit

Permalink
feat(sf): added warehouse option for SF (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya authored Sep 3, 2024
1 parent 259895d commit 874ffae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions clouds/snowflake/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ SF_USER=<user>
SF_PASSWORD=<password>
SF_ROLE=<role> # optional
SF_SHARE=<share> # optional
SF_WAREHOUSE=<warehouse> # optional
3 changes: 2 additions & 1 deletion clouds/snowflake/common/run-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const connection = snowflake.createConnection({
account: process.env.SF_ACCOUNT,
username: process.env.SF_USER,
password: process.env.SF_PASSWORD,
role: process.env.SF_ROLE
role: process.env.SF_ROLE,
warehouse: process.env.SF_WAREHOUSE,
});

connection.connect((err) => {
Expand Down
3 changes: 2 additions & 1 deletion clouds/snowflake/common/run-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const connection = snowflake.createConnection({
account: process.env.SF_ACCOUNT,
username: process.env.SF_USER,
password: process.env.SF_PASSWORD,
role: process.env.SF_ROLE
role: process.env.SF_ROLE,
warehouse: process.env.SF_WAREHOUSE,
});

connection.connect((err) => {
Expand Down

0 comments on commit 874ffae

Please sign in to comment.