From 15699411cc0ff87f11a3f7e637f01a2eb8cbf9da Mon Sep 17 00:00:00 2001 From: Pat Nadolny Date: Thu, 19 May 2022 07:04:42 -0400 Subject: [PATCH] add role config option (#76) --- config_sample.json | 1 + tap_snowflake/connection.py | 1 + 2 files changed, 2 insertions(+) diff --git a/config_sample.json b/config_sample.json index 62905bc..435b2ec 100644 --- a/config_sample.json +++ b/config_sample.json @@ -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", diff --git a/tap_snowflake/connection.py b/tap_snowflake/connection.py index 191ac2e..4291206 100644 --- a/tap_snowflake/connection.py +++ b/tap_snowflake/connection.py @@ -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