Databasez

Latest version: v0.11.0

Safety actively analyzes 701442 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.9.5

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.

0.9.4

Changed

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

Fixed

- iterate and batched_iterate misconfigure connection.

0.9.3

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.

0.9.2

Added

- Expose customization hooks for disconnects, connects.

Fixed

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

0.9.1

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.

0.9.0

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.

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.