Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 7, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
peewee ==3.14.8 -> ==3.16.2 age adoption passing confidence

Release Notes

coleifer/peewee

v3.16.2

Compare Source

Fixes a longstanding issue with thread-safety of various decorators, including
atomic(), transaction(), savepoint(). The context-managers are
unaffected. See #​2709 for details.

View commits

v3.16.1

Compare Source

  • Add changes required for building against Cython 3.0 and set Cython
    language-level to 3.
  • Ensure indexes aren't added to unindexed fields during introspection, #​2691.
  • Ensure we don't redundantly select same PK in prefetch when using
    PREFETCH_TYPE.JOIN.
  • In Sqlite migrator, use Sqlite's builtin DROP and RENAME column facilities
    when possible. This can be overridden by passing legacy=True flag.

View commits

v3.16.0

Compare Source

This release contains backwards-incompatible changes in the way Peewee
initializes connections to the underlying database driver. Previously, peewee
implemented autocommit semantics on-top of the existing DB-API transactional
workflow. Going forward, Peewee instead places the DB-API driver into
autocommit mode directly.

Why this change?

Previously, Peewee emulated autocommit behavior for top-level queries issued
outside of a transaction. This necessitated a number of checks which had to be
performed each time a query was executed, so as to ensure that we didn't end up
with uncommitted writes or, conversely, idle read transactions. By running the
underlying driver in autocommit mode, we can eliminate all these checks, since
we are already managing transactions ourselves.

Behaviorally, there should be no change -- Peewee will still treat top-level
queries outside of transactions as being autocommitted, while queries inside of
atomic() / with db: blocks are implicitly committed at the end of the
block, or rolled-back if an exception occurs.

How might this affect me?

  • If you are using the underlying database connection or cursors, e.g. via
    Database.connection() or Database.cursor(), your queries will now be
    executed in autocommit mode.
  • The commit= argument is deprecated for the cursor(), execute() and
    execute_sql() methods.
  • If you have a custom Database implementation (whether for a database that
    is not officially supported, or for the purpose of overriding default
    behaviors), you will want to ensure that your connections are opened in
    autocommit mode.

Other changes:

  • Some fixes to help with packaging in Python 3.11.
  • MySQL get_columns() implementation now returns columns in their declared
    order.

View commits

v3.15.4

Compare Source

  • 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 when wheel
    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.

v3.15.3

Compare Source

  • Add scalars() query method (complements scalar()), roughly equivalent to
    writing [t[0] for t in query.tuples()].
  • Small doc improvements
  • Fix and remove some flaky test assertions with Sqlite INSERT + RETURNING.
  • Fix innocuous failing Sqlite test on big-endian machines.

View commits

v3.15.2

Compare Source

  • Fix bug where field-specific conversions were being applied to the pattern
    used for LIKE / ILIKE operations. Refs #​2609
  • Fix possible infinite loop when accidentally invoking the __iter__ method
    on certain Column subclasses. Refs #​2606
  • Add new helper for specifying which Model a particular selected column-like
    should be bound to, in queries with joins that select from multiple sources.

View commits

v3.15.1

Compare Source

  • Fix issue introduced in Sqlite 3.39.0 regarding the propagation of column
    subtypes in subqueries.
  • Fix bug where cockroachdb server version was not set when beginning a
    transaction on an unopened database.

View commits

v3.15.0

Compare Source

Rollback behavior change in commit ab43376 (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:

v3.14.10

Compare Source

Previous behavior (peewee 3.12 - 3.14.10):

v3.14.9

Compare Source

  • 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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency peewee to v3.14.9 Update dependency peewee to v3.14.10 Mar 26, 2022
@renovate renovate bot force-pushed the renovate/peewee-3.x branch from ba1f893 to c80c9e3 Compare March 26, 2022 13:01
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot force-pushed the renovate/peewee-3.x branch from c80c9e3 to f1aee6e Compare June 18, 2022 22:50
@renovate renovate bot changed the title Update dependency peewee to v3.14.10 Update dependency peewee to v3.15.0 Jun 18, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot force-pushed the renovate/peewee-3.x branch from f1aee6e to 41ada62 Compare September 25, 2022 19:01
@renovate renovate bot changed the title Update dependency peewee to v3.15.0 Update dependency peewee to v3.15.3 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/peewee-3.x branch from 41ada62 to 9f9affc Compare November 20, 2022 17:29
@renovate renovate bot changed the title Update dependency peewee to v3.15.3 Update dependency peewee to v3.15.4 Nov 20, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot force-pushed the renovate/peewee-3.x branch from 9f9affc to 8755009 Compare March 18, 2023 22:07
@renovate renovate bot changed the title Update dependency peewee to v3.15.4 Update dependency peewee to v3.16.0 Mar 18, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate bot force-pushed the renovate/peewee-3.x branch from 8755009 to dfdffe2 Compare May 28, 2023 09:55
@renovate renovate bot changed the title Update dependency peewee to v3.16.0 Update dependency peewee to v3.16.2 May 28, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@saintbyte saintbyte merged commit ac517c2 into master Jun 21, 2023
@renovate renovate bot deleted the renovate/peewee-3.x branch June 21, 2023 09:50
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.

2 participants