-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 for psycopg3 #2473
Comments
There are a number of psycopg3 changes that look to be backwards-incompatible (which is understandable) but will likely be a pain to identify and work around. Parameter binding, especially, looks like it has changed quite a bit. It's definitely on my radar and will be added to Peewee, but I will probably wait a bit to add support. If anyone is interested in the meantime, feel free to implement this in a standalone/extension module. |
Hello I looked at your extension but I wondering, can I use this in conjuction with PostgresqlExtDatabase? Any plans on built-in support for psycopg3? Considering is also adding it in their next release and it is a stable release.. |
Are there any specific features of |
I'm going through all my raw SQL code currently, but if I'm not mistaken I will have some jsonb-specifics. I will use psycopg2 for now though, but it would be great to see support for 3. |
No, I agree with you, things are going to be moving towards psycopg3 in the coming years so I'll want to be ready for that. Thanks for the ping on this, I'll be aiming to getting parity for psycopg3 with the current PostgresqlExtDatabase. No definitive timeline but it's a priority for me. |
hello |
Merged into master. |
@coleifer Great to see this merged. When do you think a release will be cut? |
it is not merged to master yet, I just checked master and it is still have the hard coded check for psycopg2 for postgres, which is not the right package for psycopg3. The right package for psycopg3 is psycopg without 2. Please reopen this ticket.
|
The standard |
@coleifer Thank you for adding the psycopg3 support. I see the field for BinaryJSONField but not JSONField with psycopg3. Is that on roadmap? |
Is there a compelling reason not to use jsonb? |
Preemptive ticket here. The maintainer of psycopg2 has busied themself with its next iteration, psycopg3. Are there plans to add support for the project; is there already native support by design? This ticket's more to see if the project's on your radar as it has officially released, and support for psycopg2 might be in decline fairly soon.
Thanks.
The text was updated successfully, but these errors were encountered: