Skip to content

Releases: dymmond/databasez

Version 0.9.0

08 Aug 08:14
6b9a0a9
Compare
Choose a tag to compare

Added

  • force_rollback is now a descriptor returning an extensive ForceRollback object.
    • Setting True, False, None is now possible for overwriting the value/resetting to the initial value (None).
    • Deleting it resets it to the initial value.
    • Its trueness value evaluates to the current value, context-sensitive.
    • It still can be used as a contextmanager for temporary overwrites.

Fixed

  • Fixed refcount for global connections.

Changed

  • connect/disconnect calls are now refcounted. Nesting is now supported.
  • ACTIVE_TRANSACTIONS dict is not replaced anymore when initialized.

Version 0.8.5

07 Aug 11:52
4f753cd
Compare
Choose a tag to compare

Added

  • Allow overwriting force_rollback when copying via passing Database as parameter.

Changed

  • The force_rollback parameter is now None by default.

Fixed

  • Fix typo in Testclient copying path.

Version 0.8.4

07 Aug 10:46
9d555d8
Compare
Choose a tag to compare

Added

  • Provide __copy__ method for Database, DatabaseBackend.
  • Database is now an allowed type for Database (used for copying). Same is true for the DatabaseTestClient subclass.

Fixed

  • Speed of tests.
  • DATABASE_CONFIG_URLS had passwords not properly unquoted.

Version 0.8.3

07 Aug 08:01
6ed9944
Compare
Choose a tag to compare

Added

  • DatabaseTestClient has now an option for changing the test prefix.

Fixed

  • DatabaseTestClient can now use the improvements in 0.8.0 too.
  • DatabaseTestClient is now tested.
  • Fix run_sync on Database objects.

Version 0.8.2

06 Aug 13:22
cfa4065
Compare
Choose a tag to compare

Fixed

  • Cannot pass parameters to execute directly. Bulk_inserts not possible anymore.

0.8.1

04 Aug 00:41
6a20f99
Compare
Choose a tag to compare

Fixed

  • The dbapi2 dialect used only a single thread for all connections.
  • Some options were not translated into query options and vice versa.

Version 0.8.0

03 Aug 16:18
035be9b
Compare
Choose a tag to compare

Added

  • batched_iterate.
  • jdbc dialect to load nearly all jdbc drivers (note: many features won't work).
  • dbapi2 dialect to load nearly all dbapi2 drivers (note: many features won't work).

Changed

  • Use psycopg3 by default. Autoupgrade postgres:// to postgres+psycopg://. Note: this behavior differs from sqlalchemy which still uses psycopg2 by default.
  • fetch_all uses now iterate as fallback.
  • hatch is now used for release management, cleaning.
  • Use mariadb for tests instead of mysql (resource problems).

Removed

  • aiopg support (no update for 2 years and better alternatives available).
  • Remove Makefile and other scripts.
  • Own run_sync implementation. Use asyncio.run instead.

Version 0.7.2

24 Jan 18:54
7dbce02
Compare
Choose a tag to compare

Fixed

  • Regression introduced by asyncio with DatabaseTestClient

Version 0.7.1

24 Jan 18:32
3892d50
Compare
Choose a tag to compare

Fixed

  • Fix regression introduced by SQLAlchemy 2.0.25 with make_url.

Version 0.7.0

29 Nov 16:11
acd2a93
Compare
Choose a tag to compare

Fixed

  • DatabaseURL causing issues when special characters where being used for passwords.
    This limitation was introduced by the use of the urlsplit from urllib.