Peewee v3.13.2 Release Notes

Release Date: 2020-03-27 // about 4 years ago
    • ๐Ÿ‘ Allow aggregate functions to support an ORDER BY clause, via the addition of an order_by() method to the function (fn) instance. Refs #2094.
    • ๐Ÿ›  Fix prefetch() bug, where related "backref" instances were marked as dirty, even though they had no changes. Fixes #2091.
    • ๐Ÿ‘Œ Support LIMIT 0. Previously a limit of 0 would be translated into effectively an unlimited query on MySQL. References #2084.
    • ๐Ÿ‘Œ Support indexing into arrays using expressions with Postgres array fields. References #2085.
    • ๐Ÿ›  Ensure postgres introspection methods return the columns for multi-column indexes in the correct order. Fixes #2104.
    • โž• Add support for arrays of UUIDs to postgres introspection.
    • ๐Ÿ›  Fix introspection of columns w/capitalized table names in postgres (#2110).
    • ๐Ÿ›  Fix to ensure correct exception is raised in SqliteQueueDatabase when iterating over cursor/result-set.
    • ๐Ÿ›  Fix bug comparing subquery against a scalar value. Fixes #2118.
    • ๐Ÿ›  Fix issue resolving composite primary-keys that include foreign-keys when building the model-graph. Fixes #2115.
    • ๐Ÿ‘ Allow model-classes to be passed as arguments, e.g., to a table function. Refs #2131.
    • Ensure postgres JSONField.concat() accepts expressions as arguments.

    View commits