-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support psycopg 3.x #268
Support psycopg 3.x #268
Conversation
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.
Do we need to consider any changes to the sqlalchemy
side of things for psycopg 3+ usage?
@@ -30,14 +30,15 @@ content-type = "text/markdown" | |||
|
|||
[project.optional-dependencies] | |||
all = [ | |||
"psycopg[binary]", |
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.
Should we retain support for psycopg <3? I think you can install 2.9 and 3+ at the same time. Not sure if we need to, but I want to make sure we don't break any existing usage of sdssdb
.
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.
Good point, I had not thought of that. According to this SQLA 2.x has native support so maybe that's something we can ensure we test when we update sdssdb to support it.
Supports using
psycopg
3.x (the psycopg package) via thepeewee
playhouse.psycopg3_ext
extension.Although not implemented in
peewee
,psycopg
3 supports asynchronous connections out of the box, which may be useful to implement in some form.This branch depends on #266 which should be merged first.