gaerdbms.py is using a deprecated API to talk to Google Cloud SQL

Issue #3275 resolved
Razvan Musaloiu-E. created an issue

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)

  1. Mike Bayer repo owner

    I don't use the GAE dialect myself is there someone who'd like to send a pull request? that would help.

  2. Mike Bayer 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.

  3. Razvan Musaloiu-E. 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.

  4. Mike Bayer 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.

  5. Log in to comment