r/FastAPI • • Jan 08 '25

Question What's the benefit of sqlmodel in fastapi?

I think using sqlalchamy is enough so why using sqlmodel especially when it adds another extra layer; what's the benefti?

16 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/bluewalt Jan 08 '25

imagine you want to use something else than SQLAlchemy

I also like to think that if I need/want to use Flask or Litestar, I prefer having the DTO layer the same no matter the framework.