Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
add role config option (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 authored May 19, 2022
1 parent ff0572b commit 1569941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config_sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"account": "xxxxx.eu-central-1",
"dbname": "database_name",
"user": "my_user",
"role": "my_role",
"password": "password",
"private_key_path": "/path/pk",
"private_key_passphrase": "strong passphrase",
Expand Down
1 change: 1 addition & 0 deletions tap_snowflake/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def open_connection(self):
account=self.connection_config['account'],
database=self.connection_config['dbname'],
warehouse=self.connection_config['warehouse'],
role=self.connection_config.get('role', None),
insecure_mode=self.connection_config.get('insecure_mode', False)
# Use insecure mode to avoid "Failed to get OCSP response" warnings
# insecure_mode=True
Expand Down

0 comments on commit 1569941

Please sign in to comment.