Articles from September 2024
Automatic async to sync code conversion
Posted by Daniele Varrazzo on 2024-09-23
Tagged as
psycopg3,
development
Psycopg 3 provides both a sync and an async Python interface: for each object used to perform I/O operations, such as Connection, Cursor, there is an async counterpart: AsyncConnection, AsyncCursor, with an intuitive interface: just add the right async or await keyword where needed: