~olly/yoyo#85: 
possibility to use psycopg3 as postgres backend driver

Hi,

now that the psycopg3 package is under active development, would it be possible to either add a switch to find the correct package (try to import psycopg fallback to psycopg2 or fail), or add a new backend which is then chosen by what package is installed?

First this could work in a similar way to the psycopg2 connector, later it is still extendable to asyncio usage and a like if needed.

Thanks for your development. I would like to offer my help if I can do anything.

Status
RESOLVED IMPLEMENTED
Submitter
~gellertd
Assigned to
No-one
Submitted
3 years ago
Updated
2 years ago
Labels
No labels applied.

~troyswanson 2 years ago

+1 I'd like to use psycopg3 in a new project and not have psycopg2 as an additional dependency.

~olly REPORTED IMPLEMENTED 2 years ago

This is now possible in the new 8.0 release. Psycopg2 is still the default though, switch to psycopg 3 by providing a connection url starting postgresql+psycopg://…

Register here or Log in to comment, or comment via email.