sqlmodel
sqlmodel copied to clipboard
Possibility to change default Pydantic to SQLAlchemy mappings
Hello folks! First of all i want to apologise for my bad english ) So i want to present two features realised for my project and what i want to share with community: 1)To be allow to change default Python to SqlAlchemy types mapping 2) To be allow to store Pydantic model data as Json at database (with ability to use SQLAlchemy Mutable wrap)
Possible is closes issue #503, but not sure
📝 Docs preview for commit 6b5f287ad8ace3e858c453bf71404840e24b64cd at: https://6b70ec7d.sqlmodel.pages.dev
Looks like in new version of pydantic (2.6.1) added some breaking changes. All completed tests at MR pipeline was started with previous stable version of pydantic - 2.5.3
This commit at Pydantic.main totally breaks the eq behaviour
https://github.com/pydantic/pydantic/commit/62ed0aabd716fba99a5b1cc0cdc26d75d2d8447a#diff-8708af8d26c26644976866f974e0b810b0940ede43ff487e457057d5a1f07999
See discussion about _eq at https://github.com/tiangolo/sqlmodel/discussions/761
📝 Docs preview for commit fb58b864f8acd7674377751f6147568089fa65ce at: https://db9f51b8.sqlmodel.pages.dev