xnuinside / omymodels

O!My Models (omymodels) is a library to generate Pydantic, Dataclasses, GinoORM Models, SqlAlchemy ORM, SqlAlchemy Core Table, Models from SQL DDL. And convert one models to another.
MIT License
171 stars 18 forks source link

Add support for SQLModel output #57

Closed cfhowes closed 6 months ago

cfhowes commented 7 months ago

Is your feature request related to a problem? Please describe. I would like to use SQLModel https://sqlmodel.tiangolo.com/ files with FastAPI https://fastapi.tiangolo.com/. I could use the sqlalchemy adaptor, but then I also would need to make pydantic models.

Additional context I have started the work here: https://github.com/cfhowes/omymodels/tree/sqlmodel_support Comments welcome, will submit a PR once I have some more verifications in place.

cfhowes commented 6 months ago

Thanks! PR merged to Main, marking this closed.