Hacker News new | ask | show | jobs
by fantod 1607 days ago
I think SQLModel actually exists precisely so that you don't have to do that. According to [1]:

> That class Hero is a SQLModel model... But at the same time, it is a SQLAlchemy model... And at the same time, it is also a Pydantic model

[1] https://sqlmodel.tiangolo.com/#sqlalchemy-and-pydantic

1 comments

Ah, I must've missed something in the first lookaround.

looks good.