neutron-lib/releasenotes/notes/rehome-db-api-63300ddab6a41e28.yaml
Boden R edab0eb770 rehome db api
This patch rehomes neutron.db.api into neutron-lib. In addition to the
public API's, some internal plumbing such as _add_to_rel_load_list and
_load_one_to_manys are also needed in order to bootstrap the database
environment for SQLA.

For a sample consumption patch see:
https://review.openstack.org/#/c/557037/

Change-Id: I753a58cd04a6b881415fbc1bf3e876da72f3da3e
2018-04-16 09:57:10 -06:00

15 lines
748 B
YAML

---
features:
- The public APIs from ``neutron.db.api`` are now available in
the ``neutron_lib.db.api`` module.
- The ``CONTEXT_READER`` and ``CONTEXT_WRITER`` global database contexts
are available in ``neutron_lib.db.api`` for convenient access as
decorators.
- The ``DBRetryErrorsFixture`` and ``DBAPIContextManagerFixture`` test
fixtures are now available in ``neutron_lib.fixture`` allowing consumers
to patch out retry error values and the gobal context manager.
upgrade:
- Consumers using the global ``context_manager`` from ``neutron.db.api``
should now use the ``get_context_manager()`` function in
the ``neutron_lib.db.api`` module or the global ``CONTEXT_READER``
and ``CONTEXT_WRITER`` if needed.