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

Bump databases from 0.7.0 to 0.8.0 #67

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 23, 2023

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

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 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)

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] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 23, 2023
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.

0 participants