r/FastAPI • u/00001sam10000 • 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
View all comments
Show parent comment
2
u/covmatty1 Jan 08 '25
Then you just use mixins with different classes for outputs and inputs etc. It can certainly help keep things nice and neat and cases like this are no exception.