| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
📝 Docs preview for commit 55098b2 at: https://637da5945b0a220ff8ef4e3c--sqlmodel.netlify.app |
Sorry, something went wrong.
|
📝 Docs preview for commit c4c58cc at: https://6399e5912bd3820502950046--sqlmodel.netlify.app |
Sorry, something went wrong.
|
📝 Docs preview for commit 54d1816 at: https://639cdfbd569504009f94aa64--sqlmodel.netlify.app |
Sorry, something went wrong.
|
I just started trying out SQLModel and hit the issue where I can't use a JSON sqlalchemy type, so fixing and merging this PR would be very useufl. |
Sorry, something went wrong.
|
Thank you...! |
Sorry, something went wrong.
|
@danielkza you can do something like this: from sqlmodel import Column, JSON
class Model(SQLModel):
# -- adapt field type according to your needs
subject_sids: dict[str, str] = Field(sa_column=Column(JSON))
|
Sorry, something went wrong.
|
Great, thank you @maru0123-2004! 🚀 🍰 This will be available in the next version, 0.0.11 🎉 I will document it (and add tests for it) soon, but later, after migrating to SQLAlchemy 2.0 and Pydantic 2.0. 🤓 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Related to #503 .
Notice;
I tested its works only in my case.