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/bluewalt Jan 09 '25
Well... the thing is the doc will show an advantage, but will hide the multiple drawbacks. I thought it was great too (because on paper, it is), until my project started to grow and realized mixing database fields and serialization was a terrible idea.