Peewee v3.5.1 Release Notes
-
๐ New features
- ๐ New documentation for working with relationships in Peewee.
- ๐ Improved tests and documentation for MySQL upsert functionality.
- ๐ Allow
database
parameter to be specified withModelSelect.get()
method. For discussion, see #1620. - โ Add
QualifiedNames
helper to peewee module exports. - โ Add
temporary=
meta option to support temporary tables. - ๐ Allow a
Database
object to be passed to constructor ofDataSet
helper.
๐ Bug fixes
- ๐ Fixed edge-case where attempting to alias a field to it's underlying column-name (when different), Peewee would not respect the alias and use the field name instead. See #1625 for details and discussion.
- Raise a
ValueError
when joining and aliasing the join to a foreign-key'sobject_id_name
descriptor. Should prevent accidentally introducing O(n) queries or silently ignoring data from a joined-instance. - ๐ Fixed bug for MySQL when creating a foreign-key to a model which used the
BigAutoField
for it's primary-key. - ๐ Fixed bugs in the implementation of user-defined aggregates and extensions with the APSW SQLite driver.
- Fixed regression introduced in 3.5.0 which ignored custom Model
__repr__()
. - ๐ Fixed regression from 2.x in which inserting from a query using a
SQL()
was no longer working. Refs #1645.