Releases: collerek/ormar
Releases · collerek/ormar
Add support for pydantic 1.9, add post_bulk_update signal, and bug fixes
0.10.24
✨ Features
- Add
post_bulk_update
signal (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
JSON
fields #519
💬 Other
- Improve performance of
bulk_create
by bypassingdatabases
execute_many
suboptimal implementation. (by @Mng-dev-ai thanks!) #520 - Bump min. required
databases
version 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
ormar
implementation ofconstruct
classmethod that allows to buildModel
instances without validating the input to speed up the whole flow, if your data is already validated #318 - Fix for "inheriting" field validators from
ormar
model 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
extra
parameter inModel.Meta
that acceptsExtra.ignore
andExtra.forbid
(default) and either ignores the extra fields passed toormar
model or raises an exception if one is encountered #358
🐛 Fixes
Add multi columns non unique index and sql_nullable property. Important performance boost with relation map.
0.10.19
✨ Features
- Add support for multi-column non-unique
IndexColumns
inMeta.constraints
#307 - Add
sql_nullable
field attribute that allows to set different nullable setting for pydantic model and for underlying sql column #308
🐛 Fixes
- Enable caching of relation map to increase performance #337
- Clarify and fix documentation in regard of nullable fields #339
💬 Other
- Bump supported
databases
version to<=5.2
.
Bug fixes
Add overwrite for pydantic field, support sqlalchemy >=1.4
SmallInterger field type, ability to pass own pydantic config
0.10.16
✨ Features
- Allow passing your own pydantic
Config
toormar.Model
that will be merged with the default one by @naturalethic (thanks!) #285 - Add
SmallInteger
field type by @ProgrammerPlus1998 (thanks!) #297