Skip to content

Releases: dymmond/databasez

Version 0.10.2

05 Sep 12:43
fca84df
Compare
Choose a tag to compare

Fixed

  • Fix transactions in multi-threading contexts.

Changed

  • The transaction stack contains the backend too.

Removed

  • Remove ACTIVE_TRANSACTIONS ContextVar plus tests for it. It became unreliable with multithreading.

Version 0.10.1

04 Sep 11:30
33929b5
Compare
Choose a tag to compare

Added

  • poll_interval parameter (only relevant when using multithreading).

Fixed

  • Improved thread-safety.
  • full_isolation was not passed through in TestClient.

Version 0.10.0

26 Aug 13:39
36dfe9a
Compare
Choose a tag to compare

Added

  • full_isolation parameter. Isolate the force_rollback Connection in a thread.
  • Timeouts for operations.

Fixed

  • batched_iterate interface of Connection differed from the one of Database.
  • iterate interface of Connection differed from the one of Database.
  • Hooks were called on automatically created Database objects.
  • More multithreading safety.

Version 0.9.7

21 Aug 09:16
0893af7
Compare
Choose a tag to compare

Added

  • It is now possible to use connect(), disconnect() instead of a async contextmanager in multi-loop calls (multithreading).

Fixed

  • Database calls are forwarded to subdatabase when possible. This unbreaks using not the returned database object.
  • force_rollback works also in multi-loop call (multithreading).

Version 0.9.6

20 Aug 15:23
46d5d2a
Compare
Choose a tag to compare

Fixed

  • Databasez is now threadsafe (and multiloop safe).

Version 0.9.5

19 Aug 14:54
75dff6d
Compare
Choose a tag to compare

Changed

  • Extract more options by default from query options.

Fixed

  • disconnect_hook was called too early.
  • connect_hook was called too late.
  • pos not passed through in fetch_one.

Version 0.9.4

16 Aug 08:13
26587bf
Compare
Choose a tag to compare

Changed

  • Implement iterate in sqlalchemy base class (before it was a forward to batched_iterate).

Fixed

  • iterate and batched_iterate misconfigure connection.

Version 0.9.3

13 Aug 08:19
7f20518
Compare
Choose a tag to compare

Added

  • Add lazy_setup parameter for testclient.
  • disconnect and connect return if they performed the setup/cleanup.
  • Add backward compatible overwrites of defaults to the TestClient.

Fixed

  • Restore eager setup behavior in testclient.
  • Fix drop_dabase with postgresql.
  • Fix setup/disconnect hangups.
  • Fix ancient docs deps.

Version 0.9.2

09 Aug 10:13
016fa29
Compare
Choose a tag to compare

Added

  • Expose customization hooks for disconnects, connects.

Fixed

  • Testclient has issues with missing permissions.
  • Lazy global connection.

Version 0.9.1

08 Aug 11:52
c1e69f0
Compare
Choose a tag to compare

Added

  • Expose customization hooks for execute result parsing for subclasses of sqlalchemy.

Fixed

  • execute_many works now efficient and properly and returns autoincrement column ids.
  • execute returned not autoincrement id but defaults.