diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-09-17 17:35:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-09-17 17:35:55 +0000 |
commit | 5a0dcb483161eaff473fa8ab1cdfa2fa5c433f10 (patch) | |
tree | c26e762e2bebcc2ad632eda038f0be146eb11abc /lib/sqlalchemy/dialects/mysql/aiomysql.py | |
parent | a3884f36f691df81fb5a1c795fe7ecc0c83507b6 (diff) | |
parent | 11eecfacb7b36c209c1ad726f5e5b7525860977b (diff) | |
download | sqlalchemy-5a0dcb483161eaff473fa8ab1cdfa2fa5c433f10.tar.gz |
Merge "Add `asyncmy` support"
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/aiomysql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/aiomysql.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/aiomysql.py b/lib/sqlalchemy/dialects/mysql/aiomysql.py index 3275d1888..c9a87145e 100644 --- a/lib/sqlalchemy/dialects/mysql/aiomysql.py +++ b/lib/sqlalchemy/dialects/mysql/aiomysql.py @@ -11,6 +11,10 @@ r""" :connectstring: mysql+aiomysql://user:password@host:port/dbname[?key=value&key=value...] :url: https://github.com/aio-libs/aiomysql +.. warning:: The aiomysql dialect as of September, 2021 appears to be unmaintained + and no longer functions for Python version 3.10. Please refer to the + :ref:`asyncmy` dialect for current MySQL asyncio functionality. + The aiomysql dialect is SQLAlchemy's second Python asyncio dialect. Using a special asyncio mediation layer, the aiomysql dialect is usable @@ -21,13 +25,7 @@ This dialect should normally be used only with the :func:`_asyncio.create_async_engine` engine creation function:: from sqlalchemy.ext.asyncio import create_async_engine - engine = create_async_engine("mysql+aiomysql://user:pass@hostname/dbname") - -Unicode -------- - -Please see :ref:`mysql_unicode` for current recommendations on unicode -handling. + engine = create_async_engine("mysql+aiomysql://user:pass@hostname/dbname?charset=utf8mb4") """ # noqa |