관리-도구
편집 파일: zxJDBC.cpython-37.pyc
B ��4]V � @ s( d dl Z ddlmZ G dd� de�ZdS )� N� )� Connectorc @ sj e Zd ZdZdZdZdZejdkZ dZ dZdZdZ edd� �Zd d � Zdd� Zd d� Zdd� Zdd� ZdS )�ZxJDBCConnectorZzxjdbcFTz2.5.0+NZqmarkc C s ddl m} |S )Nr )�zxJDBC)Zcom.ziclix.python.sqlr )�clsr � r �O/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/connectors/zxJDBC.py�dbapi s zZxJDBCConnector.dbapic C s i S )z+Return kw arg dict to be sent to connect().r )�selfr r r �_driver_kwargs! s zZxJDBCConnector._driver_kwargsc C s* d| j |j|jdk rd|j p d|jf S )z<Create a JDBC url from a :class:`~sqlalchemy.engine.url.URL`zjdbc:%s://%s%s/%sNz:%s� )�jdbc_db_name�host�portZdatabase)r �urlr r r �_create_jdbc_url% s z ZxJDBCConnector._create_jdbc_urlc C s0 | � � }|�|j� | �|�|j|j| jg|gS )N)r �update�queryr �username�password�jdbc_driver_name)r r �optsr r r �create_connect_args. s z#ZxJDBCConnector.create_connect_argsc C s* t || jj�sdS t|�}d|kp(d|kS )NFzconnection is closedzcursor is closed)� isinstancer ZProgrammingError�str)r �e� connectionZcursorr r r � is_disconnect; s zZxJDBCConnector.is_disconnectc C s t � �d S )N)�NotImplementedError)r r r r r �_get_server_version_infoA s z(ZxJDBCConnector._get_server_version_info)�__name__� __module__�__qualname__ZdriverZsupports_sane_rowcountZsupports_sane_multi_rowcountZsupports_unicode_binds�sys�versionZsupports_unicode_statementsZdescription_encodingZdefault_paramstyler r �classmethodr r r r r r r r r r r s r )r# r r r r r r r �<module> s