-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
✨ Add support for passing a custom SQLAlchemy type to Field()
with sa_type
#505
Conversation
📝 Docs preview for commit 55098b2 at: https://637da5945b0a220ff8ef4e3c--sqlmodel.netlify.app |
📝 Docs preview for commit c4c58cc at: https://6399e5912bd3820502950046--sqlmodel.netlify.app |
📝 Docs preview for commit 54d1816 at: https://639cdfbd569504009f94aa64--sqlmodel.netlify.app |
I just started trying out SQLModel and hit the issue where I can't use a |
Thank you...! |
@danielkza you can do something like this:
|
Field()
with sa_type
Great, thank you @maru0123-2004! 🚀 🍰 This will be available in the next version, I will document it (and add tests for it) soon, but later, after migrating to SQLAlchemy 2.0 and Pydantic 2.0. 🤓 |
Related to #503 .
Notice;
I tested its works only in my case.