-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from psycopg2 -> psycopg3 (#98)
This PR moves our PG driver from psycopg2 to psycopg3. We are changing this because psycopg3 supports asyncio while psycopg2 does not. Generally, the changes consisted of: * changing host for db URLs from `postgresql` to `postgresql+psycopg` (note, the package name for psycopg3 is `psycopg`) * changing PG error code field name from `pgcode` to `sqlstate` Assorted other changes * changed the psycopg specific code in `_notification_listener` to the psycopg3 API syntax * cleanup exception handling in cases where we are re-raising a caught exception * change CI/CD workflow to complete the entire python test matrix instead of failing fast on first error --------- Co-authored-by: Qian Li <[email protected]>
- Loading branch information
Showing
9 changed files
with
97 additions
and
159 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
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
Oops, something went wrong.