Skip to content

Commit

Permalink
Black the file
Browse files Browse the repository at this point in the history
  • Loading branch information
susodapop committed Feb 1, 2022
1 parent 8dafe70 commit 681ca05
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions redash/query_runner/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ def configuration_schema(cls):
},
"host": {"type": "string"},
},
"order": ["account", "user", "password", "warehouse", "database", "region", "host"],
"order": [
"account",
"user",
"password",
"warehouse",
"database",
"region",
"host",
],
"required": ["user", "password", "account", "database", "warehouse"],
"secret": ["password"],
"extra_options": [
Expand Down Expand Up @@ -87,14 +95,12 @@ def _get_connection(self):
else:
host = "{}.snowflakecomputing.com".format(account)



connection = snowflake.connector.connect(
user=self.configuration["user"],
password=self.configuration["password"],
account=account,
region=region,
host = host,
host=host,
)

return connection
Expand Down Expand Up @@ -182,4 +188,4 @@ def get_schema(self, get_stats=False):
return list(schema.values())


register(Snowflake)
register(Snowflake)

0 comments on commit 681ca05

Please sign in to comment.