summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/gaerdbms.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-12-19 14:15:56 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-12-19 14:15:56 -0500
commit182553b7409cfa6673483d03f29bc4c462336577 (patch)
tree15e7dd9b034f74f89fc4965956dcf77e9d6b904c /lib/sqlalchemy/dialects/mysql/gaerdbms.py
parent4da5c7423d9eef66bf85dbe681392a80c3740302 (diff)
downloadsqlalchemy-182553b7409cfa6673483d03f29bc4c462336577.tar.gz
- make the google deprecation messages more specific, use full URL
format - add an extra doc to MySQLdb - changelog
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/gaerdbms.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/gaerdbms.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/gaerdbms.py b/lib/sqlalchemy/dialects/mysql/gaerdbms.py
index 947b066cc..b4daec69c 100644
--- a/lib/sqlalchemy/dialects/mysql/gaerdbms.py
+++ b/lib/sqlalchemy/dialects/mysql/gaerdbms.py
@@ -17,9 +17,12 @@ developers-guide
.. versionadded:: 0.7.8
- .. deprecated:: 1.0 Cloud SQL now recommends creating connections via the
+ .. 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://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>`
+
+ `mysql+mysqldb://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>`
Pooling
@@ -42,8 +45,8 @@ 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>"
+ "MySQLdb dialect directly, using the URL format "
+ "mysql+mysqldb://root@/<dbname>?unix_socket=/cloudsql/<projectid>:<instancename>"
)