Peewee v2.4.0 Release Notes
-
๐ This release contains a number of enhancements to the
playhouse
collection of extensions.Backwards-incompatible changes
๐ As of 2.4.0, most of the introspection logic was moved out of the
pwiz
module and intoplayhouse.reflection
.๐ New features
- Created a new reflection extension for introspecting databases. The reflection module additionally can generate actual peewee Model classes dynamically.
- โ Created a dataset library (based on the SQLAlchemy project of the same name). For more info check out the blog post announcing playhouse.dataset.
- โ Added a db_url module which creates
Database
objects from a connection string. - โ Added csv dump functionality to the CSV utils extension.
- โ Added an atomic context manager to support nested transactions.
- โ Added support for HStore, JSON and TSVector to the
reflection
module. - ๐ More documentation updates.
๐ Bugs fixed
- ๐ Fixed #440, which fixes a bug where
Model.dirty_fields
did not return an empty set for some subclasses ofQueryResultWrapper
.