fromhttps://daniel.feldroy.com
1 week agoTIL: Using SQLModel Asynchronously with FastAPI (and Air) with PostgreSQL
Use SQLModel with both asyncpg and psycopg2-binary, plus greenlet, to enable asynchronous and synchronous PostgreSQL operations in FastAPI applications.