관리-도구
편집 파일: zxJDBC.cpython-311.pyc
� �܋fV � �6 � d dl Z ddlmZ G d� de� � ZdS )� N� )� Connectorc �x � e Zd ZdZdZdZdZej dk Z dZ dZdZdZ ed� � � Zd� Zd � Zd � Zd� Zd� ZdS ) �ZxJDBCConnector�zxjdbcFTz2.5.0+N�qmarkc � � ddl m} |S )Nr )�zxJDBC)�com.ziclix.python.sqlr )�clsr s �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/connectors/zxJDBC.py�dbapizZxJDBCConnector.dbapi s � �0�0�0�0�0�0�� � c � � i S )z+Return kw arg dict to be sent to connect().� )�selfs r �_driver_kwargszZxJDBCConnector._driver_kwargs! s � �� r c �` � d| j �d|j �|j dur d|j z pd�d|j ��S )z<Create a JDBC url from a :class:`~sqlalchemy.engine.url.URL`zjdbc:z://Nz:%s� �/)�jdbc_db_name�host�port�database)r �urls r �_create_jdbc_urlz ZxJDBCConnector._create_jdbc_url% sK � � � �����H�H��H�D� �5�U�S�X�%5�;��;�;��L�L� � r c � � | � � � }|� |j � � | � |� � |j |j | j g|gS �N)r �update�queryr �username�password�jdbc_driver_name)r r �optss r �create_connect_argsz#ZxJDBCConnector.create_connect_args. s^ � ��"�"�$�$�����C�I���� �%�%�c�*�*������%� � � � r c �h � t || j j � � sdS t |� � }d|v pd|v S )NFzconnection is closedzcursor is closed)� isinstancer �ProgrammingError�str)r �e� connection�cursors r � is_disconnectzZxJDBCConnector.is_disconnect; s? � ��!�T�Z�8�9�9� ��5���F�F��%��*�E�.@�A�.E�Er c � � t � � �r )�NotImplementedError)r r+ s r �_get_server_version_infoz(ZxJDBCConnector._get_server_version_infoA s � � "�#�#�#r )�__name__� __module__�__qualname__�driver�supports_sane_rowcount�supports_sane_multi_rowcount�supports_unicode_binds�sys�version�supports_unicode_statements�description_encoding�default_paramstyler r# �classmethodr r r r% r- r0 r r r r r s� � � � � � � �F�"��#(� �!��"%�+��"8���� ���L����� � �[�� � � � � � � � � �F� F� F�$� $� $� $� $r r )r8 r r r r r r �<module>r>