Skip to content

Commit

Permalink
use env_optional to pass password through
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Foreman authored and Taras Kopets committed Mar 4, 2019
1 parent d0717ba commit 36526f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions SQLTools.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@

"snowsql": {
"options": [],
"env_optional": {
"SNOWSQL_PWD": "{password}"
},
"args": "-u {user} -a {account} -d {database} --authenticator {auth} -K",
"queries": {
"execute": {
Expand Down
4 changes: 3 additions & 1 deletion SQLToolsConnections.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@
"database": "database",
// for possible authentication configurations see
// https://docs.snowflake.net/manuals/user-guide/snowsql-start.html#authenticator
// if using "snowflake", need to set SNOWSQL_PWD environment variable
"user" : "[email protected]",
"account" : "account_name",
"auth": : "snowflake | externalbrowser | <okta-url>"
// if using "auth": "snowflake", provide a password
// if using "auth": "externalbrowser" or "<okta-url>", no password needed
"password": "pwd"
}
*/
},
Expand Down

0 comments on commit 36526f0

Please sign in to comment.