Skip to content

Bump databases[asyncpg] from 0.7.0 to 0.8.0

Ronan Amicel requested to merge dependabot-pip-databases-asyncpg--0.8.0 into main

Bumps databases[asyncpg] from 0.7.0 to 0.8.0.

Release notes

Sourced from databases[asyncpg]'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[asyncpg]'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

Merge request reports