관리-도구
편집 파일: zxjdbc.cpython-311.pyc
� �܋f� � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ dd lm Z dd l mZ G d� de� � Z G d � de� � Z G d� dee� � ZeZdS )a� .. dialect:: mysql+zxjdbc :name: zxjdbc for Jython :dbapi: zxjdbc :connectstring: mysql+zxjdbc://<user>:<password>@<hostname>[:<port>]/<database> :driverurl: http://dev.mysql.com/downloads/connector/j/ .. note:: Jython is not supported by current versions of SQLAlchemy. The zxjdbc dialect should be considered as experimental. Character Sets -------------- SQLAlchemy zxjdbc dialects pass unicode straight through to the zxjdbc/JDBC layer. To allow multiple character sets to be sent from the MySQL Connector/J JDBC driver, by default SQLAlchemy sets its ``characterEncoding`` connection property to ``UTF-8``. It may be overridden via a ``create_engine`` URL parameter. � N� )�BIT)�MySQLDialect)�MySQLExecutionContext� )�types)�util)�ZxJDBCConnectorc � � e Zd Zd� ZdS )� _ZxJDBCBitc � � d� }|S )z@Converts boolean or byte arrays from MySQL Connector/J to longs.c �~ � | �| S t | t � � rt | � � S d}| D ] }|dz |dz z }�|} | S )Nr � � )� isinstance�bool�int)�value�v�is �W/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/mysql/zxjdbc.py�processz,_ZxJDBCBit.result_processor.<locals>.process+ s\ � ��}����%��&�&� "��5�z�z�!��A�� (� (����F�a�$�h�'����E��L� � )�self�dialect�coltyper s r �result_processorz_ZxJDBCBit.result_processor( s � � � � � �r N)�__name__� __module__�__qualname__r r r r r r '