FastAPI is database agnostic, although tutorials talk about using SQLAlchemy (probably because it's most popular).
I am using asyncpg[1] (much more performant and provides close mapping to PostgreSQL, making it much easier to use its advanced features) through raw SQL statements without problems.
I am using asyncpg[1] (much more performant and provides close mapping to PostgreSQL, making it much easier to use its advanced features) through raw SQL statements without problems.
[1] https://github.com/MagicStack/asyncpg