diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-07-27 22:30:06 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-07-28 21:36:14 +0200 |
commit | a2e9aca2cf37db94d862c1721a371d00233cec16 (patch) | |
tree | 7421751298a3f57630e14c9d171827d6e5b7cc05 /lib/sqlalchemy/ext/asyncio/session.py | |
parent | 95648050cfb2afb5bea8558a6246ed3b5360e7fd (diff) | |
download | sqlalchemy-a2e9aca2cf37db94d862c1721a371d00233cec16.tar.gz |
Deprecate scoped_session usage with async sessions
Deprecate usage of :class:`_orm.scoped_session` with asyncio drivers.
When using Asyncio the :class:`_asyncio.async_scoped_session` should
be used instead.
Fixes: #6746
Change-Id: I540d57a406f59efc37fc61f0e9dfe03f32fe2904
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/session.py')
-rw-r--r-- | lib/sqlalchemy/ext/asyncio/session.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py index 59b6a2b15..a10621eef 100644 --- a/lib/sqlalchemy/ext/asyncio/session.py +++ b/lib/sqlalchemy/ext/asyncio/session.py @@ -53,6 +53,8 @@ class AsyncSession(ReversibleProxy): """ + _is_asyncio = True + __slots__ = ( "binds", "bind", |