
    ,h                     h    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r " S	 S
\5      r	\	r
g)a  

.. dialect:: mysql+cymysql
    :name: CyMySQL
    :dbapi: cymysql
    :connectstring: mysql+cymysql://<username>:<password>@<host>/<dbname>[?<options>]
    :url: https://github.com/nakagami/CyMySQL

.. note::

    The CyMySQL dialect is **not tested as part of SQLAlchemy's continuous
    integration** and may have unresolved issues.  The recommended MySQL
    dialects are mysqlclient and PyMySQL.

   )BIT)MySQLDialect)MySQLDialect_mysqldb   )utilc                       \ rS rSrS rSrg)_cymysqlBIT   c                     S nU$ )z@Convert MySQL's 64 bit, variable length binary string to a long.c                 H    U b  Sn[        U 5       H  nUS-  U-  nM     U$ U $ )N       )iter)valuevis      Y/var/www/auris/envauris/lib/python3.13/site-packages/sqlalchemy/dialects/mysql/cymysql.pyprocess-_cymysqlBIT.result_processor.<locals>.process#   s2     eAQ
A %L     )selfdialectcoltyper   s       r   result_processor_cymysqlBIT.result_processor    s    	 r   r   N)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r	   r	      s    r   r	   c                       \ rS rSrSrSrSrSrSrSr	\
R                  " \R                  \\05      r\S 5       rS rS rS	 rS
rg)MySQLDialect_cymysql.   cymysqlTNFc                     [        S5      $ )Nr%   )
__import__)clss    r   import_dbapi!MySQLDialect_cymysql.import_dbapi9   s    )$$r   c                 .    UR                   R                  $ N)
connectioncharset)r   r-   s     r   _detect_charset$MySQLDialect_cymysql._detect_charset=   s    $$,,,r   c                     UR                   $ r,   )errno)r   	exceptions     r   _extract_error_code(MySQLDialect_cymysql._extract_error_code@   s    r   c                     [        XR                  R                  5      (       a  U R                  U5      S;   $ [        XR                  R                  5      (       a  gg)N)i  i  i  i  i  TF)
isinstancedbapiOperationalErrorr4   InterfaceError)r   er-   cursors       r   is_disconnect"MySQLDialect_cymysql.is_disconnectC   sS    a4455++A. 3   ::4455 r   r   )r   r   r   r    driversupports_statement_cachedescription_encodingsupports_sane_rowcountsupports_sane_multi_rowcountsupports_unicode_statementsr   update_copyr   colspecsr   r	   classmethodr)   r/   r4   r=   r!   r   r   r   r#   r#   .   sc    F#!#( "& 5 5[7IJH% %-r   r#   N)__doc__baser   r   mysqldbr    r   r	   r#   r   r   r   r   <module>rL      s9       ) # #/ #L r   