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 provides access to Google Cloud SQL databases, specifically designed for use with MySQL drivers in App Engine."],["This package is not compatible with App Engine's \"flexible environment\" and should be utilized via the database/sql package."],["The go-sql-driver/mysql and mymysql/godrv drivers are recommended for connecting to Cloud SQL, as demonstrated by provided examples."],["Using either of the supported drivers, developers can conduct standard SQL queries on Cloud SQL databases, such as selecting data from tables."],["The function 'Dial' allows connections to specified Cloud SQL instances."]]],[]]