module documentation

Warning

The aiomysql dialect is not currently tested as part of SQLAlchemy’s continuous integration. As of September, 2021 the driver appears to be unmaintained and no longer functions for Python version 3.10, and additionally depends on a significantly outdated version of PyMySQL. Please refer to the :ref:`asyncmy` dialect for current MySQL/MariaDB asyncio functionality.

The aiomysql dialect is SQLAlchemy's second Python asyncio dialect.

Using a special asyncio mediation layer, the aiomysql dialect is usable as the backend for the :ref:`SQLAlchemy asyncio <asyncio_toplevel>` extension package.

This dialect should normally be used only with the _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?charset=utf8mb4")
Class ​Async​Adapt_aiomysql_connection Undocumented
Class ​Async​Adapt_aiomysql_cursor Undocumented
Class ​Async​Adapt_aiomysql_dbapi Undocumented
Class ​Async​Adapt_aiomysql_ss_cursor Undocumented
Class ​Async​Adapt​Fallback_aiomysql_connection Undocumented
Class ​My​SQLDialect_aiomysql Undocumented