What are the advantages to using SQLModel? #14
Answered
by
WMRamadan
homelabmedia
asked this question in
Q&A
-
I understand that SQLModel is an abstraction layer on top of Pydantic and SQLAlchemy. So what are the advantages to using SQLModel over Pydantic and SQLAlchemy? |
Beta Was this translation helpful? Give feedback.
Answered by
WMRamadan
Jul 18, 2024
Replies: 1 comment
-
SQLModel was targeted to be easy to use, have greatest compatibility with FastAPI, and extensible by having SQLAlchemy and Pydantic underneath. SQLModel offer Unified Models, Type Safety, and Simplified Database Operations. Yet it is not as battle tested as SQLAlchemy. Also note that the author of SQLModel has not been known for accepting contributions to the project. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
homelabmedia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SQLModel was targeted to be easy to use, have greatest compatibility with FastAPI, and extensible by having SQLAlchemy and Pydantic underneath.
SQLModel offer Unified Models, Type Safety, and Simplified Database Operations. Yet it is not as battle tested as SQLAlchemy.
Also note that the author of SQLModel has not been known for accepting contributions to the project.