gaerdbms.py is using a deprecated API to talk to Google Cloud SQL
The lib/sqlalchemy/dialects/mysql/gaerdbms.py
is using a deprecated API to talk to Google Cloud SQL. The recommend way for production environment is to use MySQLdb and connect to /cloudsql/project:instance Unix socket. For dev_appserver the recommended way is to request and IP and use regular TCP connectivity to it.
Disclaimer: I'm part of the Google Cloud SQL team. :-)
Reference: https://cloud.google.com/appengine/docs/python/cloud-sql/#Python_complete_python_example
Comments (7)
-
repo owner -
repo owner - changed milestone to 1.0.xx
- changed component to mysql
-
assigned issue to
-
repo owner ah, I think I didn't understand fully. from the PR you're saying we can just totally drop the whole thing, right? no more "google.storage.speckle.python.api" and "apiproxy_stub_map" stuff, right? in that case sure I can add that warning and also we should just put some docs into it.
-
reporter I'm fine with dropping. The other option is to make it a wrapper around connecting to a Unix socket. I'm happy to help with that if that's what you would prefer.
-
repo owner well I want to keep the .py file in for people using it, but i meant that, the whole thing is no longer necessary. i thought there was some change to the internals of it.
-
repo owner - changed status to resolved
-
reporter Awesome, thanks! :-)
- Log in to comment
I don't use the GAE dialect myself is there someone who'd like to send a pull request? that would help.