]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Detect non compatible execution in async mode
authorFederico Caselli <cfederico87@gmail.com>
Thu, 3 Dec 2020 22:53:47 +0000 (23:53 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 8 Dec 2020 14:41:23 +0000 (15:41 +0100)
commit76d90152302461637cfecb6c0cac65a50975c570
tree15a1df7c7b3234bcc1d6ac1d81d44e1d76f21d55
parent92a12bcc5112ab27357a82e72af98b459af184a7
Detect non compatible execution in async mode

The SQLAlchemy async mode now detects and raises an informative
error when an non asyncio compatible :term:`DBAPI` is used.
Using a standard ``DBAPI`` with async SQLAlchemy will cause
it to block like any sync call, interrupting the executing asyncio
loop.

Change-Id: I9aed87dc1b0df53e8cb2109495237038aa2cb2d4
doc/build/changelog/unreleased_14/async_dbapi_detection.rst [new file with mode: 0644]
doc/build/errors.rst
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/ext/asyncio/engine.py
lib/sqlalchemy/testing/asyncio.py [deleted file]
lib/sqlalchemy/util/_concurrency_py3k.py
test/base/test_concurrency_py3k.py
test/ext/asyncio/test_engine_py3k.py