Replies: 4 comments 3 replies
-
i suggest to use the library you suggest |
Beta Was this translation helpful? Give feedback.
-
While not available yet, this is mentioned on the roadmap:
|
Beta Was this translation helpful? Give feedback.
-
Here's what I ended up doing:
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone, It mostly targets code generation from the It already satisfies my basic needs for work, but I'm improving it as a side project. I'm convinced it has several limitations, but I'm slowly working on it. I don't know if this can be of any utility to anybody, but in case I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
I have an existing database (400+ tables!!!) and I would like to try and put FastAPI on top of it. Current API is in Node JS, so I don't have python based models for it. Are there tools to create SQLModel classes for an existing database?
if no, say I use something like https://pypi.org/project/sqlacodegen/ to create SQLAlchemy classes, is there any documentation on how to upgrade classes from plain SQLAlchemy to SQLModel? Maybe I can write a tool more quickly then I can hand-write 400+ classes!
Operating System
Linux
Operating System Details
No response
SQLModel Version
latest.
Python Version
3.12.1
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions