Skip to content

Pydbantic vs SQL Model #38

Answered by codemation
jackrsteiner asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jackrsteiner , I created pydbantic around the same time sqlmodel was released to accomplish the same problem, of bridging pydantic and sqlalchemy models together.

I see sqlmodel as a bit of an enhanced sqlalchemy with improved ide hinting. sqlmodel follows sqlalchemy much more closely by the way queries are built, and objects are created / updated.

pydbantic mainly differs from sqlmodel by interfaces. pydbantic attempts to mimic django-like data access and model creation and attempts to encapsulate all the required metdata to query, create, update or delete saved objects by importing the model needed. Creating a many to many relationships in pydbantic, is a bit simpler, as the relati…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackrsteiner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants