diff options
| author | long2ice <long2ice@gmail.com> | 2021-09-16 11:08:25 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-09-17 11:20:19 -0400 |
| commit | 11eecfacb7b36c209c1ad726f5e5b7525860977b (patch) | |
| tree | 6bc6e32e3defe9099e217fcb2ba5205339dca200 /lib/sqlalchemy/testing/suite/test_results.py | |
| parent | db847ca4e52de0e70d4993d1b7ac4de1c947b864 (diff) | |
| download | sqlalchemy-11eecfacb7b36c209c1ad726f5e5b7525860977b.tar.gz | |
Add `asyncmy` support
Added initial support for the ``asyncmy`` asyncio database driver for MySQL
and MariaDB. This driver is very new, however appears to be the only
current alternative to the ``aiomysql`` driver which currently appears to
be unmaintained and is not working with current Python versions. Much
thanks to long2ice for the pull request for this dialect.
Fixes: #6993
Closes: #7000
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7000
Pull-request-sha: f7d6c811fc72324a83c8af635bbca8b268b0098e
Change-Id: I4ef54b43334feff7e3a710fc4de6821437f3bb68
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_results.py')
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_results.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_results.py b/lib/sqlalchemy/testing/suite/test_results.py index 982ac498d..c41a55025 100644 --- a/lib/sqlalchemy/testing/suite/test_results.py +++ b/lib/sqlalchemy/testing/suite/test_results.py @@ -234,7 +234,7 @@ class ServerSideCursorsTest( elif self.engine.dialect.driver == "pymysql": sscursor = __import__("pymysql.cursors").cursors.SSCursor return isinstance(cursor, sscursor) - elif self.engine.dialect.driver == "aiomysql": + elif self.engine.dialect.driver in ("aiomysql", "asyncmy"): return cursor.server_side elif self.engine.dialect.driver == "mysqldb": sscursor = __import__("MySQLdb.cursors").cursors.SSCursor |
