Jul 22, 2018

You can connect your Google Cloud Functions to Cloud SQL instances using a local socket interface provided in the Cloud Functions execution environment.

This is a private connection to your Cloud SQL instances, which means you don't need to expose them to any external network.