diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-19 14:12:19 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-19 14:12:19 -0500 |
commit | 4da5c7423d9eef66bf85dbe681392a80c3740302 (patch) | |
tree | a0d3037197b932dbedff8e0fc62435041cc7815e /lib/sqlalchemy/dialects/mysql/gaerdbms.py | |
parent | 8ae47dc6e0a98b359247040236be0810b9086f40 (diff) | |
parent | 0d15791a6e3ec35e3c2e297026d8396742e30a34 (diff) | |
download | sqlalchemy-4da5c7423d9eef66bf85dbe681392a80c3740302.tar.gz |
Merge branch 'update-gaerdbms-docs' of https://bitbucket.org/rob_b/sqlalchemy into pr39
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/gaerdbms.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/gaerdbms.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/gaerdbms.py b/lib/sqlalchemy/dialects/mysql/gaerdbms.py index 0059f5a65..947b066cc 100644 --- a/lib/sqlalchemy/dialects/mysql/gaerdbms.py +++ b/lib/sqlalchemy/dialects/mysql/gaerdbms.py @@ -17,6 +17,10 @@ developers-guide .. versionadded:: 0.7.8 + .. deprecated:: 1.0 Cloud SQL now recommends creating connections via the + mysql dialect using the URL format + `mysql://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>` + Pooling ------- @@ -33,6 +37,14 @@ import os from .mysqldb import MySQLDialect_mysqldb from ...pool import NullPool import re +from sqlalchemy.util import warn_deprecated + + +warn_deprecated( + "Google Cloud SQL now recommends creating connections via the " + "mysql dialect using the URL format " + "mysql://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>" +) def _is_dev_environment(): |