§
w<ˆj/
ã ód — d Z ddlZddlZddlmZ ddlmZ ddlmZ d„ Z G d „ d
e¦ « Z
e
ZdS )a}
.. dialect:: mysql+gaerdbms
:name: Google Cloud SQL
:dbapi: rdbms
:connectstring: mysql+gaerdbms:///?instance=
: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@/?unix_socket=/cloudsql/:``
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.Engine` by
default.
é N)Úwarn_deprecatedé )ÚMySQLDialect_mysqldbé ©ÚNullPoolc óh — t j dd¦ « d¦ « S )NÚSERVER_SOFTWAREÚ zDevelopment/)ÚosÚenvironÚgetÚ
startswith© ó úv/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/mysql/gaerdbms.pyÚ_is_dev_environmentr + s' € Ý
Œ:�>Š>Ð+¨RÑ0Ô0×;Ò;¸NÑKÔKÐKr c óF — e Zd Zed„ ¦ « Zed„ ¦ « Zd„ Zd„ ZdS )ÚMySQLDialect_gaerdbmsc ó¬ — t d¦ « ddlm} t ¦ « rddlm} |S |j d¦ « rddlm} |S ddlm } |S )Nz»Google Cloud SQL now recommends creating connections via the MySQLdb dialect directly, using the URL format mysql+mysqldb://root@/?unix_socket=/cloudsql/:r )Úapiproxy_stub_map)Ú
rdbms_mysqldbÚrdbms)Úrdbms_apiproxy)Úrdbms_googleapi)
r Úgoogle.appengine.apir r r ÚapiproxyÚGetStubÚ!google.storage.speckle.python.apir r )Úclsr r r r s r ÚdbapizMySQLDialect_gaerdbms.dbapi0 sž € õ ð
)ñ
ô
ð
ð ;Ð:Ð:Ð:Ð:Ð:åÑ Ô ð #Ø:Ð:Ð:Ð:Ð:Ð:à Ð Ø
Ô
'×
/Ò
/°Ñ
8Ô
8ð #ØHÐHÐHÐHÐHÐHà!Ð!àIÐIÐIÐIÐIÐIà"Ð"r c ó — t S )Nr )r Úurls r Úget_pool_classz$MySQLDialect_gaerdbms.get_pool_classO s € õ ˆr c óx — | ¦ « }t ¦ « sd|d<