forked from MeltanoLabs/target-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb2888f
commit 382939f
Showing
8 changed files
with
463 additions
and
323 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
def postgres_config(): | ||
return { | ||
"dialect+driver": "postgresql+psycopg2", | ||
"dialect+driver": "postgresql+psycopg", | ||
"host": "localhost", | ||
"user": "postgres", | ||
"password": "postgres", | ||
|
@@ -29,7 +29,7 @@ def postgres_config(): | |
|
||
def postgres_config_no_ssl(): | ||
return { | ||
"dialect+driver": "postgresql+psycopg2", | ||
"dialect+driver": "postgresql+psycopg", | ||
"host": "localhost", | ||
"user": "postgres", | ||
"password": "postgres", | ||
|
@@ -43,7 +43,7 @@ def postgres_config_no_ssl(): | |
|
||
def postgres_config_ssh_tunnel(): | ||
return { | ||
"sqlalchemy_url": "postgresql://postgres:[email protected]:5432/main", | ||
"sqlalchemy_url": "postgresql+psycopg://postgres:[email protected]:5432/main", | ||
"ssh_tunnel": { | ||
"enable": True, | ||
"host": "127.0.0.1", | ||
|
@@ -57,4 +57,4 @@ def postgres_config_ssh_tunnel(): | |
def create_engine(target_postgres: TargetPostgres) -> sqlalchemy.engine.Engine: | ||
return TargetPostgres.default_sink_class.connector_class( | ||
config=target_postgres.config | ||
)._engine | ||
)._engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters