Package cloudsql exposes access to Google Cloud SQL databases.
This package does not work in App Engine "flexible environment".
This package is intended for MySQL drivers to make App Engine-specific
connections. Applications should use this package through database/sql:
Select a pure Go MySQL driver that supports this package, and use sql.Open
with protocol "cloudsql" and an address of the Cloud SQL instance.
A Go MySQL driver that has been tested to work well with Cloud SQL
is the go-sql-driver:
Using either of these drivers, you can perform a standard SQL query.
This example assumes there is a table named 'users' with
columns 'first_name' and 'last_name':
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["Package cloudsql facilitates access to Google Cloud SQL databases within the App Engine standard environment."],["This package is specifically designed for MySQL drivers to establish App Engine-specific connections, and is not compatible with the App Engine flexible environment."],["Applications should interact with this package through database/sql, using the \"cloudsql\" protocol along with the Cloud SQL instance address."],["The package has been tested to work with pure Go MySQL drivers, specifically recommending \"github.com/go-sql-driver/mysql\" and \"github.com/ziutek/mymysql/godrv\"."],["The Dial function within the package establishes a connection to the specified Cloud SQL instance."]]],[]]