Releases: ormar-orm/ormar
Releases · ormar-orm/ormar
Release list
Bump fastapi and python
Performance improvements
0.12.1
✨ Features
- Massive performance improvements in the area of loading the models due to recursive loads and caching of the models and related models. (by @erichaydel - thanks!) #853
💬 Internals
- Benchmarks for comparing the performance effect of implemented changes in regard of trends (again, by @erichaydel - thanks!) #853
Force save in upset and bug fixes
0.12.0
✨ Breaking Changes
Queryset.bulk_createwill now raiseModelListEmptyErroron empty list of models (by @ponytailer - thanks!) #853
✨ Features
Model.upsert()now handles a flag__force_save__:boolthat allow upserting the models regardless of the fact if they have primary key set or not.
Note that setting this flag will cause two queries for each upserted model ->getto check if model exists and laterupdate/insertaccordingly. #889
🐛 Fixes
- Fix for empty relations breaking
constructmethod (by @Abdeldjalil-H - thanks!) #870 - Fix save related not saving models with already set pks (including uuid) #885
- Fix for wrong relations exclusions depending on the order of exclusions #779
- Fix
property_fieldsnot being inherited properly #774
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.