Can SQLModel be more generic in its implementations? Swappable backends? #1923
-
First Check
Commit to Help
DescriptionSQLModel has emerged as the long-awaited missing link that uses type annotations to build generic data models to bridge the gap between data validators (like Pydantic) and ORM layer (like SQLAlchemy). However at the moment SQLModel is tied directly to Pydantic and SQLAlchemy, and works only with Pydantic and SQLAlchemy. I wonder if SQLModel can be a more generic bridge, to be used between any modern data validator, and ORM. Wanted SolutionI'd like a stand-alone version of SQLModel that can be installed without requiring Pydantic and SQLModel to be installed along with it. Operating SystemLinux Operating System DetailsN/A SQLModel Version0.0.4 Python Version3.8 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Also interested in this, would like to see @jordaneremieff 's Djantic story to continue. Django has a great ORM, and would like it to play well with Pydantic as well. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is beyond the scope of this project. |
Beta Was this translation helpful? Give feedback.
I think this is beyond the scope of this project.
Maintaining the support of multiple backends is very heavy burden and it's reasonable to choose the most popular ones and only support them