관리-도구
편집 파일: gaerdbms.cpython-37.pyc
B ��4]( � @ sX d Z ddlZddlZddlmZ ddlmZ ddlmZ dd � Z G d d� de�Z e ZdS )av .. dialect:: mysql+gaerdbms :name: Google Cloud SQL :dbapi: rdbms :connectstring: mysql+gaerdbms:///<dbname>?instance=<instancename> :url: https://developers.google.com/appengine/docs/python/cloud-sql/developers-guide This dialect is based primarily on the :mod:`.mysql.mysqldb` dialect with minimal changes. .. deprecated:: 1.0 This dialect is **no longer necessary** for Google Cloud SQL; the MySQLdb dialect can be used directly. Cloud SQL now recommends creating connections via the mysql dialect using the URL format ``mysql+mysqldb://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>`` Pooling ------- Google App Engine connections appear to be randomly recycled, so the dialect does not pool connections. The :class:`.NullPool` implementation is installed within the :class:`.Engine` by default. � N)�warn_deprecated� )�MySQLDialect_mysqldb� )�NullPoolc C s t j�dd��d�S )NZSERVER_SOFTWARE� zDevelopment/)�os�environ�get� startswith� r r �U/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/dialects/mysql/gaerdbms.py�_is_dev_environment+ s r c @ s4 e Zd Zedd� �Zedd� �Zdd� Zdd� Zd S ) �MySQLDialect_gaerdbmsc C sZ t d� ddlm} t� r*ddlm} |S |j�d�rFddlm} |S ddlm } |S d S )Nz�Google Cloud SQL now recommends creating connections via the MySQLdb dialect directly, using the URL format mysql+mysqldb://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>r )�apiproxy_stub_map)� rdbms_mysqldbZrdbms)�rdbms_apiproxy)�rdbms_googleapi) r Zgoogle.appengine.apir r r ZapiproxyZGetStubZ!google.storage.speckle.python.apir r )�clsr r r r r r r �dbapi0 s zMySQLDialect_gaerdbms.dbapic C s t S )N)r )r �urlr r r �get_pool_classO s z$MySQLDialect_gaerdbms.get_pool_classc C s, |� � }t� s$d|d<