summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/asyncio/base.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-08-27 22:45:56 +0200
committermike bayer <mike_mp@zzzcomputing.com>2021-08-30 14:52:37 +0000
commitaf0824fd790bad28beb01c11f262ac1ffe8c53be (patch)
tree0b3dac30ce93d7b3bcf64579f944ed676522806f /lib/sqlalchemy/ext/asyncio/base.py
parent9131a5208f28ea3c2991c2b05873a495c1a9c851 (diff)
downloadsqlalchemy-af0824fd790bad28beb01c11f262ac1ffe8c53be.tar.gz
Allow custom sync session class in ``AsyncSession``.
The :class:`_asyncio.AsyncSession` now supports overriding which :class:`_orm.Session` it uses as the proxied instance. A custom ``Session`` class can be passed using the :paramref:`.AsyncSession.sync_session_class` parameter or by subclassing the ``AsyncSession`` and specifying a custom :attr:`.AsyncSession.sync_session_class`. Fixes: #6689 Change-Id: Idf9c24eae6c9f4e2fff292ed748feaa449a8deaa
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/base.py')
0 files changed, 0 insertions, 0 deletions