]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add standalone orm.close_all method and deprecate SessionMaker.close_all
authorAugustin Trancart <augustin.trancart@oslandia.com>
Sat, 12 Jan 2019 15:46:01 +0000 (10:46 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Jan 2019 22:19:37 +0000 (17:19 -0500)
commit8fac612ec0de7da6dc6f5153833f4430a80d2f4c
treec7e4c2529f357d3d672e0a895976141d9ebcc2b8
parent55f930ef3d4e60bed02a2dad16e331fe42cfd12b
Add standalone orm.close_all method and deprecate SessionMaker.close_all

Added a new function :func:`.close_all_sessions` which takes
over the task of the :meth:`.Session.close_all` method, which
is now deprecated as this is confusing as a classmethod.
Pull request courtesy Augustin Trancart.

Fixes: #4412
Closes: #4438
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4438
Pull-request-sha: 7833d12a9898c82d50716427144bf3276c22ab3f

Change-Id: Ib35eaa520ae886f3f8f550f9712fc3b139e00b60
doc/build/changelog/unreleased_13/4412.rst [new file with mode: 0644]
doc/build/orm/session_api.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/testing/fixtures.py
test/ext/declarative/test_basic.py
test/ext/declarative/test_inheritance.py
test/ext/declarative/test_mixin.py
test/orm/test_eager_relations.py
test/orm/test_session.py
test/orm/test_subquery_relations.py