Peewee v3.15.4 Release Notes
-
- ๐ป Raise an exception in
ReconnectMixin
if connection is lost while inside a transaction (if the transaction was interrupted presumably some changes were lost and explicit intervention is needed). - โ Add
db.Model
property to reduce boilerplate. - โ Add support for running
prefetch()
queries with joins instead of subqueries (this helps overcome a MySQL limitation about applying LIMITs to a subquery). - โ Add SQL
AVG
to whitelist to avoid coercing by default. - ๐ Allow arbitrary keywords in metaclass constructor, #2627
- โ Add a
pyproject.toml
to silence warnings from newer pips whenwheel
package is not available.
๐ This release has a small helper for reducing boilerplate in some cases by exposing a base model class as an attribute of the database instance.
- ๐ป Raise an exception in