Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 36526f0

Browse files
Kyle ForemanTaras Kopets
authored andcommitted
use env_optional to pass password through
1 parent d0717ba commit 36526f0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

SQLTools.sublime-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@
516516

517517
"snowsql": {
518518
"options": [],
519+
"env_optional": {
520+
"SNOWSQL_PWD": "{password}"
521+
},
519522
"args": "-u {user} -a {account} -d {database} --authenticator {auth} -K",
520523
"queries": {
521524
"execute": {

SQLToolsConnections.sublime-settings

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@
8888
"database": "database",
8989
// for possible authentication configurations see
9090
// https://docs.snowflake.net/manuals/user-guide/snowsql-start.html#authenticator
91-
// if using "snowflake", need to set SNOWSQL_PWD environment variable
9291
"user" : "[email protected]",
9392
"account" : "account_name",
9493
"auth": : "snowflake | externalbrowser | <okta-url>"
94+
// if using "auth": "snowflake", provide a password
95+
// if using "auth": "externalbrowser" or "<okta-url>", no password needed
96+
"password": "pwd"
9597
}
9698
*/
9799
},

0 commit comments

Comments
 (0)