Replies: 1 comment 1 reply
-
I'm also curious to know (haven't tried out yet), if it would be possible to connect sqlalchemy's "Automap" module to create SQLModels out of a DB structure SQL file. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have an existing library of SQLAlchemy ORMs and I'm trying to build out a new FastAPI backend application. Is there a way to map existing sqla ORMs into SQLModel models, to take advantage of the built-in syncing between Pydantic + SQLalchemy?
I started manually creating new Pydantic models for each ORM, but was wondering if I could use this package instead, without redefining my SQLAlchemy ORMs, which isn't an option for me. Or is there a way to automap my sqla ORMs to Pydantic models?
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions