Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump databases from 0.7.0 to 0.8.0 #1313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps databases from 0.7.0 to 0.8.0.

Release notes

Sourced from databases's releases.

Version 0.8.0

Breaking

This release improves isolation of connections and transactions across concurrent tasks:

  • Database connections are now task-local and are not inherited by child tasks
  • The @db.transaction decorator uses the calling task's connection
  • Each new task uses a new connection unless a connection is explicitly provided

These changes improve the consistency of behavior and fix bugs where connections and transactions were not properly isolated such as: encode/databases#123, encode/databases#125, encode/databases#134, encode/databases#155, encode/databases#424, and encode/databases#452.

In most cases, these changes should not be breaking. However, if using an open transaction across tasks, the active connection (db.connection()) now needs to be explicitly passed to each task. See the new documentation for an example.

Added

  • Allow SQLite query parameters and support cached databases (#561#561)
  • Support for unix socket for aiomysql and asyncmy (#551#551)

#551: encode/databases#551 #561: encode/databases#546

Changed

  • Improve isolation of connections and transactions during concurrent usage (#546#546)
  • Bump requests from 2.28.1 to 2.31.0 (#562#562) zanieb marked this conversation as resolved.
  • Bump starlette from 0.20.4 to 0.27.0 (#560#560)
  • Bump up asyncmy version to fix No module named 'asyncmy.connection' (#553#553)
  • Bump wheel from 0.37.1 to 0.38.1 (#524#524)

#546: encode/databases#546 #562: encode/databases#562 #560: encode/databases#560 #553: encode/databases#553 #524: encode/databases#524

Fixed

  • Fix the type-hints using more standard mode (#526#526)

#526: encode/databases#526

Changelog

Sourced from databases's changelog.

0.8.0 (August 28th, 2023)

Added

  • Allow SQLite query parameters and support cached databases (#561#561)
  • Support for unix socket for aiomysql and asyncmy (#551#551)

#551: encode/databases#551 #561: encode/databases#546

Changed

  • Change isolation connections and transactions during concurrent usage (#546#546)
  • Bump requests from 2.28.1 to 2.31.0 (#562#562)
  • Bump starlette from 0.20.4 to 0.27.0 (#560#560)
  • Bump up asyncmy version to fix No module named 'asyncmy.connection' (#553#553)
  • Bump wheel from 0.37.1 to 0.38.1 (#524#524)

#546: encode/databases#546 #562: encode/databases#562 #560: encode/databases#560 #553: encode/databases#553 #524: encode/databases#524

Fixed

  • Fix the type-hints using more standard mode (#526#526)

#526: encode/databases#526

Commits
  • d653b31 chore: release 0.8.0 prep (#565)
  • 9795187 Allow SQLite query parameters and support cached databases (#561)
  • 25fa295 fix: incorrect concurrent usage of connection and transaction (#546)
  • c095428 Bump requests from 2.28.1 to 2.31.0 (#562)
  • f3f0c6f Bump starlette from 0.20.4 to 0.27.0 (#560)
  • 71ea4ad Support for unix socket for aiomysql and asyncmy (#551)
  • ab5eb71 Bump up asyncmy version to fix No module named 'asyncmy.connection' (#553)
  • b6eba5f Bump wheel from 0.37.1 to 0.38.1 (#524)
  • 77d9b8a Fix the type-hints using more standard mode (#526)
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 27, 2024
@github-actions github-actions bot enabled auto-merge (squash) May 27, 2024 03:00
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch from 97d27cc to 2b90c02 Compare May 27, 2024 03:03
Copy link

codspeed-hq bot commented May 27, 2024

CodSpeed Performance Report

Merging #1313 will degrade performances by 22.34%

Comparing dependabot/pip/databases-0.8.0 (517c500) with master (9701e69)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 82 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark master dependabot/pip/databases-0.8.0 Change
test_making_and_inserting_models_in_bulk[10] 3.8 ms 4.9 ms -22.34%
test_get_or_none[250] 3.6 ms 2.9 ms +22.55%

@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch 18 times, most recently from b3f91d8 to a601949 Compare June 3, 2024 02:29
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch 6 times, most recently from 9bd646a to 2a9e964 Compare June 9, 2024 16:23
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch 6 times, most recently from 6150fbc to 1974f24 Compare June 14, 2024 03:09
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch 8 times, most recently from 0d07328 to a168375 Compare June 24, 2024 02:30
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch from a168375 to a919a68 Compare June 25, 2024 02:47
Bumps [databases](https://github.com/encode/databases) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/encode/databases/releases)
- [Changelog](https://github.com/encode/databases/blob/master/CHANGELOG.md)
- [Commits](encode/databases@0.7.0...0.8.0)

---
updated-dependencies:
- dependency-name: databases
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/databases-0.8.0 branch from a919a68 to 517c500 Compare June 25, 2024 02:53
@schnerd
Copy link

schnerd commented Aug 28, 2024

Would love to see this merged! databases@0.8.0 includes a pretty important reliability fix for concurrency+transactions: encode/databases#546

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 python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant