Releases: ormar-orm/ormar
Releases · ormar-orm/ormar
CheckColumn constraint, ReferentialAction and bug fixes
0.11.3
✨ Features
- Document
onupdateandondeletereferential actions inForeignKeyand provideReferentialActionenum to specify the behavior of the relationship (by @SepehrBazyar - thanks!) #724 - Add
CheckColumnto supported constraints in models Meta (by @SepehrBazyar - thanks!) #729
🐛 Fixes
- Fix limiting query result to 0 should return empty list (by @SepehrBazyar - thanks!) #766
💬 Other
- Add dark mode to docs (by @SepehrBazyar - thanks!) #717
- Update aiomysql dependency #778
Bug fixes and packaging fix
Fix deepcopy issues for pydantic >=1.9
Add python 3.10 support, drop python 3.6 and minor fixes/changes
0.11.0
✨ Breaking Changes
- Dropped support for python 3.6
Queryset.get_or_createreturns now a tuple with model and bool value indicating if the model was created (by @mojixcoder - thanks!) #554Queryset.count()now counts the number of distinct parent model rows by default, counting all rows is possible by settingdistinct=False(by @erichaydel - thanks) #588
✨ Features
- Added support for python 3.10
🐛 Fixes
Add plugable queryset_class, enhance IndexColumns and bug fixes
0.10.25
✨ Features
- Add
queryset_classoption toModel.Metathat allows you to easily swapQuerySetfor your Model (by @ponytailer - thanks!) #538 - Allow passing extra
kwargstoIndexColumnsthat will be passed to sqlalchemyIndex(by @zevisert - thanks) #575
🐛 Fixes
- Fix nullable setting on
JSONfields #529 - Fix bytes/str mismatch in bulk operations when using orjson instead of json (by @ponytailer - thanks!) #538
Add support for pydantic 1.9, add post_bulk_update signal, and bug fixes
0.10.24
✨ Features
- Add
post_bulk_updatesignal (by @ponytailer - thanks!) #524
🐛 Fixes
- Fix support for
pydantic==1.9.0#502 - Fix timezone issues with datetime #504
- Remove literal binds in query generation to unblock postgres arrays #/tophat/ormar-postgres-extensions/9
- Fix bulk update for
JSONfields #519
💬 Other
- Improve performance of
bulk_createby bypassingdatabasesexecute_manysuboptimal implementation. (by @Mng-dev-ai thanks!) #520 - Bump min. required
databasesversion for sqlalchemy 1.4 to>=5.4.
Add column comments and bugfixes
Fix for validators inheritance
Added construct and validators in generated pydantic models
0.10.21
🐛 Fixes
- Add
ormarimplementation ofconstructclassmethod that allows to buildModelinstances without validating the input to speed up the whole flow, if your data is already validated #318 - Fix for "inheriting" field validators from
ormarmodel when newly created pydanic model is generated withget_pydantic#365
Add extra to ignore extra fields, fix around handling None and nullable
0.10.20
✨ Features
- Add
extraparameter inModel.Metathat acceptsExtra.ignoreandExtra.forbid(default) and either ignores the extra fields passed toormarmodel or raises an exception if one is encountered #358