Skip to content
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

Merged
merged 13 commits into from
Sep 3, 2024
Merged

Support psycopg 3.x #268

merged 13 commits into from
Sep 3, 2024

Conversation

albireox
Copy link
Member

@albireox albireox commented Sep 3, 2024

Supports using psycopg 3.x (the psycopg package) via the peewee 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.

@albireox albireox requested a review from havok2063 as a code owner September 3, 2024 04:34
Copy link
Collaborator

@havok2063 havok2063 left a 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]",
Copy link
Collaborator

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.

Copy link
Member Author

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.

python/sdssdb/__init__.py Outdated Show resolved Hide resolved
Base automatically changed from albireox/pep-621 to main September 3, 2024 17:02
@albireox albireox merged commit aa1113a into main Sep 3, 2024
2 checks passed
@albireox albireox deleted the albireox/support-psycopg3 branch September 3, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants