Repository navigation
[WIP] Upgrade to support both Pydantic v1 and v2 - #699
AntonDeMeester wants to merge 29 commits into
Conversation
Co-authored-by: Stefan Borer <stefan.borer@gmail.com>
Change imports Undefined => PydanticUndefined Update SQLModelMetaclass and SQLModel __init__ and __new__ functions Update SQL Alchemy type inference
Only need to fix OPEN API things I think
|
📝 Docs preview for commit e2d4d1f at: https://003fc64c.sqlmodel.pages.dev |
|
Hey, we're currently investigating to use SQLModel in Willow Application Server. As we're doing some latency sensitive stuff in there, we'd really like to use Pydantic 2, so I gave this PR a try. Creating a table and inserting records seems to work, but when trying a select we hit the following exception: I understand this is a WIP, so my question is: do you have a rough estimate of when this would be ready? |
|
Thank you for your work @AntonDeMeester! I included your commits in #722 (you can see your badge now says "Contributor" 😎 ), I changed a few extra things, more details in that PR. It's now released and available as SQLModel 0.0.14! 🎉 🌮 |
Upgrades to Pydantic 2, using the new pydantic models. This also includes support for Pydantic v1.