Released 2023-12-11
- Updated project to modern standards and reformatted code
- Dropped support for Python 2.7, 3.4, 3.5, 3.6, 3.7
- Added support for Python 3.8, 3.9, 3.10
- Switched from flake8 + pylint to isort + ruff + mypy
- Updated tox to 4+
- Moved package config from setup.py to pyproject.toml
- Moved CI from travis to github actions
Released 2019-02-26
- The
retry_transaction
decorator now accepts arguments, allowing multiple retries after a delay.
Released 2018-05-16
- New
database
pytest fixture to make it easier to test the Database DependencyProvider with Nameko'sworker_factory
andreplace_dependencies
helpers.
Released 2018-04-18
- Both DependencyProviders now accept
engine_options
andsession_options
parameters for configuring the SQLAlchemy engine and sessions respectively.
Released 2018-03-15
- Fix context manager so transactions are rolled back on commit errors (fixes #25)
- Change default behaviour of context manager so sessions are closed on worker teardown rather than context manager exit (closes #24)
Released 2018-02-24
- Added
transaction_retry
decorator to reattempt transactions after temporary loss of connectivity to the database - Added missing cleanup that left connections open on kill (fixes #12)
Released 2017-12-07
- Added a new dependency with on demand worker scoped session and with a session context manager
Released 2017-02-20
- Added
db_engine_options
fixture. - Switched to semantic versioning.
Released 2016-09-02
- Fix packaging so pytest fixtures added in 0.0.3 are included.
Released 2016-08-26
- Added
pytest
fixtures for managing session in tests.
Released 2016-05-11
- Create engine once at setup, and dispose of it again on stop.
Released 2015-04-01
- Initial release.