x d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ G d d e Z G d
de Z
G d d
e ZeZdS )a
.. dialect:: mysql+oursql
:name: OurSQL
:dbapi: oursql
:connectstring: mysql+oursql://:@[:]/
:url: http://packages.python.org/oursql/
.. note::
The OurSQL MySQL dialect is legacy and is no longer supported upstream,
and is **not tested as part of SQLAlchemy's continuous integration**.
The recommended MySQL dialects are mysqlclient and PyMySQL.
Unicode
-------
Please see :ref:`mysql_unicode` for current recommendations on unicode
handling.
)BIT)MySQLDialect)MySQLExecutionContext )types)utilc e Zd Zd ZdS )
_oursqlBITc dS )z'oursql already converts mysql bits, so.N )selfdialectcoltypes t/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/mysql/oursql.pyresult_processorz_oursqlBIT.result_processor( s t N)__name__
__module____qualname__r r r r r
r
' s# r r
c $ e Zd Zed ZdS )MySQLExecutionContext_oursqlc 8 | j dd S )N_oursql_plain_queryF)execution_optionsget)r
s r plain_queryz(MySQLExecutionContext_oursql.plain_query/ s %))*?GGGr N)r r r propertyr r r r r r . s2
H H XH H Hr r c 8 e Zd ZdZej rdZdZdZdZ dZ
eZ ej
ej ej ej eei Zed ZddZd Zd Zd Zd Z ddZ ddZdd
ZddZddZddZ ddZ!d Z"d Z# ddZ$d Z%d Z&d Z'd Z(ddZ)ddZ*ddZ+dS )MySQLDialect_oursqloursqlTc t d S )Nr )
__import__)clss r dbapizMySQLDialect_oursql.dbapiE s (###r Nc v |r |j r| |d dS | || dS )zMProvide an implementation of
*cursor.execute(statement, parameters)*.Tr N)r execute)r
cursor statement
parameterscontexts r
do_executezMySQLDialect_oursql.do_executeI sL 2w* 2NN9$N77777NN9j11111r c X | dd d S )NBEGINTr&