Skip to content

Bump peewee from 3.10.0 to 3.12.0 - #25

Closed
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/peewee-3.12.0
Closed

Bump peewee from 3.10.0 to 3.12.0#25
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/peewee-3.12.0

Conversation

@dependabot-preview

Copy link
Copy Markdown
Contributor

Bumps peewee from 3.10.0 to 3.12.0.

Release notes

Sourced from peewee's releases.

3.12.0

  • Bulk insert (insert_many() and insert_from()) will now return the row count instead of the last insert ID. If you are using Postgres, peewee will continue to return a cursor that provides an iterator over the newly-inserted primary-key values by default. This behavior is being retained by default for compatibility. Postgres users can simply specify an empty returning() call to disable the cursor and retrieve the rowcount instead.
  • Migration extension now supports altering a column's data-type, via the new alter_column_type() method.
  • Added Database.is_connection_usable() method, which attempts to look at the status of the underlying DB-API connection to determine whether the connection is usable.
  • Common table expressions include a materialized parameter, which can be used to control Postgres' optimization fencing around CTEs.
  • Added BloomFilter.from_buffer() method for populating a bloom-filter from the output of a previous call to the to_buffer() method.
  • Fixed APSW extension's commit() and rollback() methods to no-op if the database is in auto-commit mode.
  • Added generate_always= option to the IdentityField (defaults to False).

View commits

3.11.2

  • Implement hash interface for Alias instances, allowing them to be used in multi-source queries.

View commits

3.11.1

  • Fix bug in new _pk / get_id() implementation for models that explicitly have disabled a primary-key.

View commits

3.11.0

  • Fixes #1991. This particular issue involves joining 3 models together in a chain, where the outer two models are empty. Previously peewee would make the middle model an empty model instance (since a link might be needed from the source model to the outermost model). But since both were empty, it is more correct to make the intervening model a NULL value on the foreign-key field rather than an empty instance.
  • An unrelated fix came out of the work on #1991 where hashing a model whose primary-key happened to be a foreign-key could trigger the FK resolution query. This patch fixes the Model._pk and get_id() interfaces so they no longer introduce the possibility of accidentally resolving the FK.
  • Allow Field.contains(), startswith() and endswith() to compare against another column-like object or expression.
  • Workaround for MySQL prior to 8 and MariaDB handling of union queries inside of parenthesized expressions (like IN).
  • Be more permissive in letting invalid values be stored in a field whose type is INTEGER or REAL, since Sqlite allows this.
  • TimestampField resolution cleanup. Now values 0 and 1 will resolve to a timestamp resolution of 1 second. Values 2-6 specify the number of decimal places (hundredths to microsecond), or alternatively the resolution can still be provided as a power of 10, e.g. 10, 1000 (millisecond), 1e6 (microsecond).
  • When self-referential foreign-keys are inherited, the foreign-key on the subclass will also be self-referential (rather than pointing to the parent model).
  • Add TSV import/export option to the dataset extension.
  • Add item interface to the dataset.Table class for doing primary-key lookup, assignment, or deletion.
  • Extend the mysql ReconnectMixin helper to work with mysql-connector.
  • Fix mapping of double-precision float in postgres schema reflection. Previously it mapped to single-precision, now it correctly uses a double.
  • Fix issue where PostgresqlExtDatabase and MySQLConnectorDatabase did not respect the autoconnect setting.

View commits

Changelog

Sourced from peewee's changelog.

3.12.0

  • Bulk insert (insert_many() and insert_from()) will now return the row
    count instead of the last insert ID. If you are using Postgres, peewee will
    continue to return a cursor that provides an iterator over the newly-inserted
    primary-key values by default. This behavior is being retained by default for
    compatibility. Postgres users can simply specify an empty returning() call
    to disable the cursor and retrieve the rowcount instead.
  • Migration extension now supports altering a column's data-type, via the new
    alter_column_type() method.
  • Added Database.is_connection_usabe() method, which attempts to look at the
    status of the underlying DB-API connection to determine whether the
    connection is usable.
  • Common table expressions include a materialized parameter, which can be
    used to control Postgres' optimization fencing around CTEs.
  • Added BloomFilter.from_buffer() method for populating a bloom-filter from
    the output of a previous call to the to_buffer() method.
  • Fixed APSW extension's commit() and rollback() methods to no-op if the
    database is in auto-commit mode.
  • Added generate_always= option to the IdentityField (defaults to False).

View commits

3.11.2

  • Implement hash interface for Alias instances, allowing them to be used in
    multi-source queries.

View commits

3.11.1

  • Fix bug in new _pk / get_id() implementation for models that explicitly
    have disabled a primary-key.

View commits

3.11.0

  • Fixes #1991. This particular issue involves joining 3 models together in a
    chain, where the outer two models are empty. Previously peewee would make the
    middle model an empty model instance (since a link might be needed from the
    source model to the outermost model). But since both were empty, it is more
    correct to make the intervening model a NULL value on the foreign-key field
    rather than an empty instance.
  • An unrelated fix came out of the work on #1991 where hashing a model whose
    primary-key happened to be a foreign-key could trigger the FK resolution
    query. This patch fixes the Model._pk and get_id() interfaces so they
    no longer introduce the possibility of accidentally resolving the FK.
  • Allow Field.contains(), startswith() and endswith() to compare against
... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [peewee](https://github.com/coleifer/peewee) from 3.10.0 to 3.12.0.
- [Release notes](https://github.com/coleifer/peewee/releases)
- [Changelog](https://github.com/coleifer/peewee/blob/master/CHANGELOG.md)
- [Commits](coleifer/peewee@3.10.0...3.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Nov 25, 2019
@dependabot-preview

Copy link
Copy Markdown
Contributor Author

Superseded by #27.

@dependabot-preview
dependabot-preview Bot deleted the dependabot/pip/peewee-3.12.0 branch December 6, 2019 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants