L ijdZddlmZddlmZddlmZddlmZGdd eZGd d eeZ e Z y ) a .. dialect:: mssql+aioodbc :name: aioodbc :dbapi: aioodbc :connectstring: mssql+aioodbc://:@ :url: https://pypi.org/project/aioodbc/ Support for the SQL Server database in asyncio style, using the aioodbc driver which itself is a thread-wrapper around pyodbc. .. versionadded:: 2.0.23 Added the mssql+aioodbc dialect which builds on top of the pyodbc and general aio* dialect architecture. Using a special asyncio mediation layer, the aioodbc dialect is usable as the backend for the :ref:`SQLAlchemy asyncio ` extension package. Most behaviors and caveats for this driver are the same as that of the pyodbc dialect used on SQL Server; see :ref:`mssql_pyodbc` for general background. This dialect should normally be used only with the :func:`_asyncio.create_async_engine` engine creation function; connection styles are otherwise equivalent to those documented in the pyodbc section:: from sqlalchemy.ext.asyncio import create_async_engine engine = create_async_engine( "mssql+aioodbc://scott:tiger@mssql2017:1433/test?" "driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes" ) ) annotations)MSDialect_pyodbc)MSExecutionContext_pyodbc)aiodbcConnectorceZdZdZy)MSExecutionContext_aioodbcc:|jjdS)NT) server_side)_dbapi_connectioncursor)selfs g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sqlalchemy/dialects/mssql/aioodbc.pycreate_server_side_cursorz4MSExecutionContext_aioodbc.create_server_side_cursor3s%%,,,>>N)__name__ __module__ __qualname__rrrr r 2s?rr ceZdZdZdZeZy)MSDialectAsync_aioodbcaioodbcTN)rrrdriversupports_statement_cacher execution_ctx_clsrrrrr7s F#2rrN) __doc__ __future__rpyodbcrrconnectors.aioodbcrr rdialectrrrr"s<!F#$-1?!:? 3_.>3 !r