module documentation

The aiosqlite dialect provides support for the SQLAlchemy asyncio interface running on top of pysqlite.

aiosqlite is a wrapper around pysqlite that uses a background thread for each connection. It does not actually use non-blocking IO, as SQLite databases are not socket-based. However it does provide a working asyncio interface that's useful for testing and prototyping purposes.

Using a special asyncio mediation layer, the aiosqlite 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("sqlite+aiosqlite:///filename")

The URL passes through all arguments to the pysqlite driver, so all connection arguments are the same as they are for that of :ref:`pysqlite`.

Class ​Async​Adapt_aiosqlite_connection Undocumented
Class ​Async​Adapt_aiosqlite_cursor Undocumented
Class ​Async​Adapt_aiosqlite_dbapi Undocumented
Class ​Async​Adapt_aiosqlite_ss_cursor Undocumented
Class ​Async​Adapt​Fallback_aiosqlite_connection Undocumented
Class ​SQLite​Dialect_aiosqlite Undocumented
Class ​SQLite​Execution​Context_aiosqlite Undocumented