-
-
Notifications
You must be signed in to change notification settings - Fork 731
[WIP] Upgrade to support both Pydantic v1 and v2 #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Stefan Borer <[email protected]>
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.