diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-09 08:52:57 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-09 08:52:57 -0500 |
commit | c736eef8b35841af89ec19469aa496585efd3865 (patch) | |
tree | 4699cf11577807337e92edb197c8a52b4d5969af /lib/sqlalchemy/ext/asyncio/result.py | |
parent | 23343f87f3297ad31d7315ac0e5312db10ef7592 (diff) | |
download | sqlalchemy-c736eef8b35841af89ec19469aa496585efd3865.tar.gz |
Revert "Merge "add aiomysql support""
This reverts commit 23343f87f3297ad31d7315ac0e5312db10ef7592, reversing
changes made to c5831b1abd98c46ef7eab7ee82ead18756aea112.
The crashes that occur in jenkins have not been solved and are
now impacting master. I am not able to reproduce the failure,
including running on the CI machines directly, and a few runs
where I sat there for 20 minutes and watched, it didn't happen.
it is the ultimate heisenbug.
Additionally, there's a reference to "arraysize" that doesn't
exist in fetchmany() and there seem to be no tests that exercise
this for any DBAPI which is also a major bug to be fixed.
References: #5747
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/result.py')
-rw-r--r-- | lib/sqlalchemy/ext/asyncio/result.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/sqlalchemy/ext/asyncio/result.py b/lib/sqlalchemy/ext/asyncio/result.py index 9c7e0420f..7f8a707d5 100644 --- a/lib/sqlalchemy/ext/asyncio/result.py +++ b/lib/sqlalchemy/ext/asyncio/result.py @@ -17,14 +17,7 @@ if util.TYPE_CHECKING: from ...engine.result import Row -class AsyncCommon(FilterResult): - async def close(self): - """Close this result.""" - - await greenlet_spawn(self._real_result.close) - - -class AsyncResult(AsyncCommon): +class AsyncResult(FilterResult): """An asyncio wrapper around a :class:`_result.Result` object. The :class:`_asyncio.AsyncResult` only applies to statement executions that @@ -377,7 +370,7 @@ class AsyncResult(AsyncCommon): return AsyncMappingResult(self._real_result) -class AsyncScalarResult(AsyncCommon): +class AsyncScalarResult(FilterResult): """A wrapper for a :class:`_asyncio.AsyncResult` that returns scalar values rather than :class:`_row.Row` values. @@ -507,7 +500,7 @@ class AsyncScalarResult(AsyncCommon): return await greenlet_spawn(self._only_one_row, True, True, False) -class AsyncMappingResult(AsyncCommon): +class AsyncMappingResult(FilterResult): """A wrapper for a :class:`_asyncio.AsyncResult` that returns dictionary values rather than :class:`_engine.Row` values. |