5 ms·
My understanding is that this is exactly what SQLModel adds on top of SQLAlchemy. statement = select(Hero).where(Hero.age > 32).limit(3) But I am only halfway
by klft 5y ago
My understanding is that this is exactly what SQLModel adds on top of SQLAlchemy.
statement = select(Hero).where(Hero.age > 32).limit(3)
But I am only halfway through the tutorial so I might be wrong.
HN discussion of SQLModel here [1]
[1] https://news.ycombinator.com/item?id=28294534 https://news.ycombinator.com/item?id=28294534
- probablyrobert 5y agoMy understanding of SQLModel is that it brings the benefits of both Pydantic and SQLAlchemy. The benefit of merging Pydantic with SQLAlchemy is that you can then use the database models directly in FastAPI route definitions.