-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Deprecate
sqlalchemy_url
and dialect+driver
settings
- Loading branch information
1 parent
41a9d99
commit 0e0a112
Showing
3 changed files
with
34 additions
and
32 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""This module contains the Postgres driver name for SQLAlchemy.""" | ||
|
||
PSYCOPG3 = "postgresql+psycopg" |
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,6 @@ | |
|
||
def postgres_config(): | ||
return { | ||
"dialect+driver": "postgresql+psycopg", | ||
"host": "localhost", | ||
"user": "postgres", | ||
"password": "postgres", | ||
|
@@ -29,7 +28,6 @@ def postgres_config(): | |
|
||
def postgres_config_no_ssl(): | ||
return { | ||
"dialect+driver": "postgresql+psycopg", | ||
"host": "localhost", | ||
"user": "postgres", | ||
"password": "postgres", | ||
|
@@ -43,7 +41,11 @@ def postgres_config_no_ssl(): | |
|
||
def postgres_config_ssh_tunnel(): | ||
return { | ||
"sqlalchemy_url": "postgresql://postgres:[email protected]:5432/main", | ||
"host": "10.5.0.5", | ||
"user": "postgres", | ||
"password": "postgres", | ||
"database": "main", | ||
"port": 5432, | ||
"ssh_tunnel": { | ||
"enable": True, | ||
"host": "127.0.0.1", | ||
|