diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-10-29 11:12:13 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-10-29 17:14:57 -0400 |
| commit | a5378fe577e6a10c0960481332d186a45c2284f4 (patch) | |
| tree | 38106bd6b80b47c91513f87bdabf5147037f2968 /lib | |
| parent | 5aca98e65f471207439471210a1e232c07f0a3ba (diff) | |
| download | sqlalchemy-a5378fe577e6a10c0960481332d186a45c2284f4.tar.gz | |
warnings: session.autocommit, subtransactions
Change-Id: I7eb7c87c9656f8043ea90d53897958afad2b8fe9
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/__init__.py | 5 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/warnings.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py index 8e9647840..bdc5cbf67 100644 --- a/lib/sqlalchemy/orm/__init__.py +++ b/lib/sqlalchemy/orm/__init__.py @@ -110,6 +110,11 @@ def create_session(bind=None, **kwargs): False, ``autocommit`` is True. In this sense the session acts more like the "classic" SQLAlchemy 0.3 session with these. + .. deprecated:: 1.4 The "autocommit" parameter will be removed in + SQLAlchemy 2.0. :func:`_orm.create_session` will return a + :class:`_orm.Session` that does not include "autocommit' behavior + in release 2.0. + Usage:: >>> from sqlalchemy.orm import create_session diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py index ae2c7916d..0dfb7c2f4 100644 --- a/lib/sqlalchemy/testing/warnings.py +++ b/lib/sqlalchemy/testing/warnings.py @@ -73,10 +73,8 @@ def setup_filters(): # # ORM Session # - r"The Session.autocommit parameter is deprecated ", r"The merge_result\(\) method is superseded by the " r"merge_frozen_result\(\)", - r"The Session.begin.subtransactions flag is deprecated", ]: warnings.filterwarnings( "ignore", |
