Skip to content

Commit

Permalink
Merge pull request #46 from rrockru/master
Browse files Browse the repository at this point in the history
Ability to connect to host with self-signed certificate.
  • Loading branch information
xzkostyan committed Jan 31, 2019
2 parents ad5bf2e + d27f680 commit d753192
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clickhouse_sqlalchemy/drivers/native/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def create_connect_args(self, url):
if secure is not None:
url.query['secure'] = asbool(secure)

verify = url.query.get('verify')
if verify is not None:
url.query['verify'] = asbool(verify)

kwargs.update(url.query)

return (url.host, port, db_name, url.username, url.password), kwargs
Expand Down

0 comments on commit d753192

Please sign in to comment.