Skip to content

Conversation

pyup-bot
Copy link
Collaborator

This PR updates peewee from 3.14.8 to 3.15.0.

Changelog

3.15.0

Rollback behavior change in commit ab43376697 (GH 2026). Peewee will no longer
automatically return the cursor `rowcount` for certain bulk-inserts.  This
should only affect users of MySQL and Sqlite who relied on a bulk INSERT
returning the `rowcount` (as opposed to the cursor's `lastrowid`). The
`rowcount` behavior is still available chaining the ``as_rowcount()`` method:

python
NOTE: this change only affects MySQL or Sqlite.
db = MySQLDatabase(...)

Previously, bulk inserts of the following forms would return the rowcount.
query = User.insert_many(...)   Bulk insert.
query = User.insert_from(...)   Bulk insert (INSERT INTO .. SELECT FROM).

3.14.10

* Add shortcut for conditional insert using sub-select, see 2528
* Add convenience `left_outer_join()` method to query.
* Add `selected_columns` property to Select queries.
* Add `name` property to Alias instances.
* Fix regression in tests introduced by change to DataSet in 3.14.9.

[View commits](https://github.com/coleifer/peewee/compare/3.14.9...3.14.10)

3.14.9

* Allow calling `table_exists()` with a model-class, refs
* Improve `is_connection_usable()` method of `MySQLDatabase` class.
* Better support for VIEWs with `playhouse.dataset.DataSet` and sqlite-web.
* Support INSERT / ON CONFLICT in `playhosue.kv` for newer Sqlite.
* Add `ArrayField.contained_by()` method, a corollary to `contains()` and
the `contains_any()` methods.
* Support cyclical foreign-key relationships in reflection/introspection, and
also for sqlite-web.
* Add magic methods for FTS5 field to optimize, rebuild and integrity check the
full-text index.
* Add fallbacks in `setup.py` in the event distutils is not available.

[View commits](https://github.com/coleifer/peewee/compare/3.14.8...3.14.9)
Links

@pyup-bot pyup-bot mentioned this pull request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant