Skip to content

Commit

Permalink
Merge pull request #129 from TicketSwap/127-ssl-configuration-is-not-…
Browse files Browse the repository at this point in the history
…used-by-redshift-connection

fix: 🐛 add ssl config to redshift connector
  • Loading branch information
tobiascadee authored Aug 28, 2024
2 parents 84409de + 50cfe67 commit 51a8c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target_redshift/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def connect_cursor(self) -> t.Iterator[Cursor]:
host=self.config["host"],
port=self.config["port"],
database=self.config["dbname"],
ssl=self.config["ssl_enable"],
sslmode=self.config["ssl_mode"],
) as connection:
with connection.cursor() as cursor:
yield cursor
Expand Down

0 comments on commit 51a8c9b

Please sign in to comment.