diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-19 14:31:52 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-19 15:48:28 -0500 |
commit | 09ad975505adb2118f229cb5b1a75c2c412420ae (patch) | |
tree | f3afd0c2bce1730f54481ba4bde87eda22d5b6b9 /test/dialect/postgresql/test_compiler.py | |
parent | e6ded82eef63235d7cbfe3ab3382a48f32913640 (diff) | |
download | sqlalchemy-09ad975505adb2118f229cb5b1a75c2c412420ae.tar.gz |
Add AdaptedConnection.run_async
Added new method :meth:`.AdaptedConnection.run_async` to the DBAPI
connection interface used by asyncio drivers, which allows methods to be
called against the underlying "driver" connection directly within a
sync-style function where the ``await`` keyword can't be used, such as
within SQLAlchemy event handler functions. The method is analogous to the
:meth:`_asyncio.AsyncConnection.run_sync` method which translates
async-style calls to sync-style. The method is useful for things like
connection-pool on-connect handlers that need to invoke awaitable methods
on the driver connection when it's first created.
Fixes: #7580
Change-Id: I03c98a72bda0234deb19c00095b31a36f19bf36d
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions