Peewee changelog

a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb

All Versions
134
Latest Version
Avg Release Cycle
36 days
Latest Release
-

Changelog History
Page 7

  • v3.1.4 Changes

    • βž• Added BigAutoField to support 64-bit auto-incrementing primary keys.
    • πŸ‘‰ Use Peewee-compatible datetime serialization when exporting JSON from a DataSet. Previously the JSON export used ISO-8601 by default. See #1536.
    • βž• Added Database.batch_commit helper to wrap iterators in chunked transactions. See #1539 for discussion.

    View commits

  • v3.1.3 Changes

    • πŸ›  Fixed issue where scope-specific settings were being updated in-place instead of copied. #1534.
    • πŸ›  Fixed bug where setting a ForeignKeyField did not add it to the model's "dirty" fields list. #1530.
    • πŸ‘‰ Use pre-fetched data when using prefetch() with ManyToManyField. Thanks to @iBelieve for the patch. #1531.
    • πŸ‘‰ Use JSON data-type for SQLite JSONField instances.
    • βž• Add a json_contains function for use with SQLite json1 extension.
    • πŸ“š Various documentation updates and additions.

    View commits

  • v3.1.2 Changes

    πŸ†• New behavior for INSERT queries with RETURNING clause

    0️⃣ Investigating #1522, it occurred to me that INSERT queries with non-default RETURNING clauses (postgres-only feature) should always return a cursor object. Previously, if executing a single-row INSERT query, the last-inserted row ID would be returned, regardless of what was specified by the RETURNING clause.

    0️⃣ This change only affects INSERT queries with non-default RETURNING clauses and will cause a cursor to be returned, as opposed to the last-inserted row ID.

    View commits

  • v3.1.1 Changes

    • πŸ›  Fixed bug when using Model.alias() when the model defined a particular database schema.
    • Added SchemaManager.create_foreign_key API to simplify adding constraints when dealing with circular foreign-key relationships. Updated docs accordingly.
    • Improved implementation of Migrator.add_foreign_key_constraint so that it can be used with Postgresql (in addition to MySQL).
    • βž• Added PickleField to the playhouse.fields module. Docs.
    • πŸ›  Fixed bug in implementation of CompressedField when using Python 3.
    • βž• Added KeyValue API in playhouse.kv module. Docs.
    • βœ… More test cases for joining on sub-selects or common table expressions.

    View commits

  • v3.1.0 Changes

    Backwards-incompatible changes

    Database.bind() has been renamed to Database.bind_ctx(), to more closely match the semantics of the corresponding model methods, Model.bind() and Model.bind_ctx(). The new Database.bind() method is a one-time operation πŸ“š that binds the given models to the database. See documentation:

    Other changes
    • βœ‚ Removed Python 2.6 support code from a few places.
    • πŸ›  Fixed example analytics app code to ensure hstore extension is registered.
    • Small efficiency improvement to bloom filter.
    • Removed "attention!" from README.

    View commits

  • v3.0.20 Changes

    • Include schema (if specified) when checking for table-existence.
    • Correct placement of ORDER BY / LIMIT clauses in compound select queries.
    • πŸ›  Fix bug in back-reference lookups when using filter() API.
    • πŸ›  Fix bug in SQL generation for ON CONFLICT queries with Postgres, #1512.

    View commits

  • v3.0.19 Changes

    • πŸ‘Œ Support for more types of mappings in insert_many(), refs #1495.
    • πŸ“š Lots of documentation improvements.
    • πŸ›  Fix bug when calling tuples() on a ModelRaw query. This was reported originally as a bug with sqlite-web CSV export. See coleifer/sqlite-web#38.

    View commits

  • v3.0.18 Changes

    • πŸ‘Œ Improved error messages when attempting to use a database class for which the corresponding driver is not installed.
    • βž• Added tests showing the use of custom operator (a-la the docs).
    • πŸ›  Fixed indentation issue in docs, #1493.
    • πŸ›  Fixed issue with the SQLite date_part issue, #1494.

    View commits

  • v3.0.17 Changes

    • πŸ›  Fix schema inheritance regression, #1485.
    • βž• Add helper method to postgres migrator for setting search_path, #1353.

    View commits

  • v3.0.16 Changes

    • πŸ‘Œ Improve model graph resolution when iterating results of a query. Refs #1482.
    • πŸ‘ Allow Model._meta.schema to be changed at run-time. #1483.

    View commits

Awesome Python is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
We recommend Spin The Wheel Of Names for a cryptographically secure random name picker.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /