Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: encode/databases
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: zevisert/databases
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release-0.8.0
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Aug 18, 2023

  1. Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    00b6677 View commit details

Commits on Aug 27, 2023

  1. Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    4aa9b3a View commit details
  2. Copy the full SHA
    cd03594 View commit details
Showing with 128 additions and 39 deletions.
  1. +127 −38 CHANGELOG.md
  2. +1 −1 databases/__init__.py
165 changes: 127 additions & 38 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,123 +4,212 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## 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]: https://github.com/encode/databases/pull/551
[#561]: https://github.com/encode/databases/pull/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]: https://github.com/encode/databases/pull/546
[#562]: https://github.com/encode/databases/pull/562
[#560]: https://github.com/encode/databases/pull/560
[#553]: https://github.com/encode/databases/pull/553
[#524]: https://github.com/encode/databases/pull/524

### Fixed

* Fix the type-hints using more standard mode ([#526][#526])

[#526]: https://github.com/encode/databases/pull/526

## 0.7.0 (Dec 18th, 2022)

### Fixed

* Fixed breaking changes in SQLAlchemy cursor; supports `>=1.4.42,<1.5` (#513).
* Wrapped types in `typing.Optional` where applicable (#510).
* Fixed breaking changes in SQLAlchemy cursor; supports `>=1.4.42,<1.5` ([#513][#513])
* Wrapped types in `typing.Optional` where applicable ([#510][#510])

[#513]: https://github.com/encode/databases/pull/513
[#510]: https://github.com/encode/databases/pull/510

## 0.6.2 (Nov 7th, 2022)

### Changed

* Pinned SQLAlchemy `<=1.4.41` to avoid breaking changes (#520).
* Pinned SQLAlchemy `<=1.4.41` to avoid breaking changes ([#520][#520])

[#520]: https://github.com/encode/databases/pull/520

## 0.6.1 (Aug 9th, 2022)

### Fixed

* Improve typing for `Transaction` (#493)
* Allow string indexing into Record (#501)
* Improve typing for `Transaction` ([#493][#493])
* Allow string indexing into Record ([#501][#501])

[#493]: https://github.com/encode/databases/pull/493
[#501]: https://github.com/encode/databases/pull/501

## 0.6.0 (May 29th, 2022)

* Dropped Python 3.6 support (#458)
* Dropped Python 3.6 support ([#458][#458])

[#458]: https://github.com/encode/databases/pull/458

### Added

* Add _mapping property to the result set interface (#447 )
* Add contributing docs (#453 )
* Add \_mapping property to the result set interface ([#447][#447])
* Add contributing docs ([#453][#453])

[#447]: https://github.com/encode/databases/pull/447
[#453]: https://github.com/encode/databases/pull/453

### Fixed

* Fix query result named access (#448)
* Fix connections getting into a bad state when a task is cancelled (#457)
* Revert #328 parallel transactions (#472)
* Change extra installations to specific drivers (#436)
* Fix query result named access ([#448][#448])
* Fix connections getting into a bad state when a task is cancelled ([#457][#457])
* Revert #328 parallel transactions ([#472][#472])
* Change extra installations to specific drivers ([#436][#436])

[#448]: https://github.com/encode/databases/pull/448
[#457]: https://github.com/encode/databases/pull/457
[#472]: https://github.com/encode/databases/pull/472
[#436]: https://github.com/encode/databases/pull/436

## 0.5.4 (January 14th, 2022)

### Added

* Support for Unix domain in connections (#423)
* Added `asyncmy` MySQL driver (#382)
* Support for Unix domain in connections ([#423][#423])
* Added `asyncmy` MySQL driver ([#382][#382])

[#423]: https://github.com/encode/databases/pull/423
[#382]: https://github.com/encode/databases/pull/382

### Fixed

* Fix SQLite fetch queries with multiple parameters (#435)
* Changed `Record` type to `Sequence` (#408)
* Fix SQLite fetch queries with multiple parameters ([#435][#435])
* Changed `Record` type to `Sequence` ([#408][#408])

[#435]: https://github.com/encode/databases/pull/435
[#408]: https://github.com/encode/databases/pull/408

## 0.5.3 (October 10th, 2021)

### Added

* Support `dialect+driver` for default database drivers like `postgresql+asyncpg` (#396)
* Support `dialect+driver` for default database drivers like `postgresql+asyncpg` ([#396][#396])

[#396]: https://github.com/encode/databases/pull/396

### Fixed

* Documentation of low-level transaction (#390)
* Documentation of low-level transaction ([#390][#390])

[#390]: https://github.com/encode/databases/pull/390

## 0.5.2 (September 10th, 2021)

### Fixed

* Reset counter for failed connections (#385)
* Avoid dangling task-local connections after Database.disconnect() (#211)
* Reset counter for failed connections ([#385][#385])
* Avoid dangling task-local connections after Database.disconnect() ([#211][#211])

[#385]: https://github.com/encode/databases/pull/385
[#211]: https://github.com/encode/databases/pull/211

## 0.5.1 (September 2nd, 2021)

### Added

* Make database `connect` and `disconnect` calls idempotent (#379)
* Make database `connect` and `disconnect` calls idempotent ([#379][#379])

[#379]: https://github.com/encode/databases/pull/379

### Fixed

* Fix `in_` and `notin_` queries in SQLAlchemy 1.4 (#378)
* Fix `in_` and `notin_` queries in SQLAlchemy 1.4 ([#378][#378])

[#378]: https://github.com/encode/databases/pull/378

## 0.5.0 (August 26th, 2021)

### Added
* Support SQLAlchemy 1.4 (#299)

* Support SQLAlchemy 1.4 ([#299][#299])

[#299]: https://github.com/encode/databases/pull/299

### Fixed

* Fix concurrent transactions (#328)
* Fix concurrent transactions ([#328][#328])

[#328]: https://github.com/encode/databases/pull/328

## 0.4.3 (March 26th, 2021)

### Fixed

* Pin SQLAlchemy to <1.4 (#314)
* Pin SQLAlchemy to <1.4 ([#314][#314])

[#314]: https://github.com/encode/databases/pull/314

## 0.4.2 (March 14th, 2021)

### Fixed

* Fix memory leak with asyncpg for SQLAlchemy generic functions (#273)
* Fix memory leak with asyncpg for SQLAlchemy generic functions ([#273][#273])

[#273]: https://github.com/encode/databases/pull/273

## 0.4.1 (November 16th, 2020)

### Fixed

* Remove package dependency on the synchronous DB drivers (#256)
* Remove package dependency on the synchronous DB drivers ([#256][#256])

[#256]: https://github.com/encode/databases/pull/256

## 0.4.0 (October 20th, 2020)

### Added

* Use backend native fetch_val() implementation when available (#132)
* Replace psycopg2-binary with psycopg2 (#204)
* Speed up PostgresConnection fetch() and iterate() (#193)
* Access asyncpg Record field by key on raw query (#207)
* Allow setting min_size and max_size in postgres DSN (#210)
* Add option pool_recycle in postgres DSN (#233)
* Allow extra transaction options (#242)
* Use backend native fetch_val() implementation when available ([#132][#132])
* Replace psycopg2-binary with psycopg2 ([#204][#204])
* Speed up PostgresConnection fetch() and iterate() ([#193][#193])
* Access asyncpg Record field by key on raw query ([#207][#207])
* Allow setting min_size and max_size in postgres DSN ([#210][#210])
* Add option pool_recycle in postgres DSN ([#233][#233])
* Allow extra transaction options ([#242][#242])

[#132]: https://github.com/encode/databases/pull/132
[#204]: https://github.com/encode/databases/pull/204
[#193]: https://github.com/encode/databases/pull/193
[#207]: https://github.com/encode/databases/pull/207
[#210]: https://github.com/encode/databases/pull/210
[#233]: https://github.com/encode/databases/pull/233
[#242]: https://github.com/encode/databases/pull/242

### Fixed

* Fix type hinting for sqlite backend (#227)
* Fix SQLAlchemy DDL statements (#226)
* Make fetch_val call fetch_one for type conversion (#246)
* Unquote username and password in DatabaseURL (#248)
* Fix type hinting for sqlite backend ([#227][#227])
* Fix SQLAlchemy DDL statements ([#226][#226])
* Make fetch_val call fetch_one for type conversion ([#246][#246])
* Unquote username and password in DatabaseURL ([#248][#248])

[#227]: https://github.com/encode/databases/pull/227
[#226]: https://github.com/encode/databases/pull/226
[#246]: https://github.com/encode/databases/pull/246
[#248]: https://github.com/encode/databases/pull/248
2 changes: 1 addition & 1 deletion databases/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from databases.core import Database, DatabaseURL

__version__ = "0.7.0"
__version__ = "0.8.0"
__all__ = ["Database", "DatabaseURL"]