Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
sqlalchemy
/
dialects
/
mysql
/
__pycache__
/
File Content:
pymysql.cpython-37.pyc
B ��4]" � @ s@ d Z ddlmZ ddlmZ ddlmZ G dd� de�ZeZdS ) a .. dialect:: mysql+pymysql :name: PyMySQL :dbapi: pymysql :connectstring: mysql+pymysql://<username>:<password>@<host>/<dbname>[?<options>] :url: https://pymysql.readthedocs.io/ Unicode ------- Please see :ref:`mysql_unicode` for current recommendations on unicode handling. MySQL-Python Compatibility -------------------------- The pymysql DBAPI is a pure Python port of the MySQL-python (MySQLdb) driver, and targets 100% compatibility. Most behavioral notes for MySQL-python apply to the pymysql driver as well. � )�MySQLDialect_mysqldb� )�langhelpers)�py3kc s` e Zd ZdZdZdZdZd� fdd� Zej dd� �Z ed d � �Z� fdd�Z erXd d� Z� ZS )�MySQLDialect_pymysql�pymysqlNTFc s t t| �jf |� || _d S )N)�superr �__init__�server_side_cursors)�selfr �kwargs)� __class__� �T/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/dialects/mysql/pymysql.pyr / s zMySQLDialect_pymysql.__init__c C s4 yt d�j}|j| _dS ttfk r. dS X d S )Nzpymysql.cursorsTF)� __import__�cursorsZSSCursorZ _sscursor�ImportError�AttributeError)r r r r r �supports_server_side_cursors3 s z1MySQLDialect_pymysql.supports_server_side_cursorsc C s t d�S )Nr )r )�clsr r r �dbapi<