- if we are not within a
new_connection
context,aget
just 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
AsyncConnection
is 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?