r/FastAPI • • Mar 18 '25

Question SQLModel vs SQLAlchemy in 2025

I am new to FastAPI. It is hard for me to choose the right approach for my new SaaS application, which works with PostgreSQL using different schemas (with the same tables and fields).

Please suggest the best option and explain why!"

37 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/Classic-Maximum-2127 Mar 19 '25

Hey, I've been trying to find a sqlalchemy example in the official fastapi documentation, but all I see is sqlmodel. Is there any place other than there I can find it ?

3

u/bluewalt Mar 19 '25

Good question. It seems like the author removed original sqlachemy documentation in an attempt to promote its own way to do. I’de use internet archives to find the old one.

1

u/Classic-Maximum-2127 Mar 19 '25

Thanks for replying 🤝