- if we are not within a
new_connectioncontext,agetjust falls back toget. In other words, existing behavior is maintained unless you opt into the new API.
This is the behavior I previously proposed, and it seemed well received.
Make sync connections just wrap an async connection. Psycopg’s
AsyncConnectionis thread-safe,
This option is interesting, but I don’t know if we can count and async connections being portable for every backend. Would this work on, let’s say, async SQLite?