-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move from psycopg2 -> psycopg3 #98
Conversation
This reverts commit 9d32c8a.
I updated the dependency to The reason is that there's no available binary for my laptop (macOS, M2 chip), which may affect our users as well.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good! Tests passed on my laptop (macOS + M2 chip) as well.
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:
postgresql
topostgresql+psycopg
(note, the package name for psycopg3 ispsycopg
)pgcode
tosqlstate
Assorted other changes
_notification_listener
to the psycopg3 API syntax