Hacker News new | past | comments | ask | show | jobs | submit login

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.

[1] https://github.com/MagicStack/asyncpg




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: