An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

cloud.google.com/go/cloudsqlconn

Package cloudsqlconn provides functions for authorizing and encrypting connections. These functions can be used with a database driver to connect to a Cloud SQL instance. The instance connection name for a Cloud SQL instance is always in the format "project:region:instance". To start working with this package, create a Dialer. There are two ways of creating a Dialer, which one you use depends on your database driver. Postgres users have the option of using the database/sql interface or using pgx directly. To use a dialer with pgx, we recommend using connection pooling with pgxpool. To create the dialer use the NewDialer func. To use database/sql, call pgxv4.RegisterDriver with any necessary Dialer configuration. Note: the connection string must use the keyword/value format with host set to the instance connection name. The returned cleanup func will stop the dialer's background refresh goroutine and so should only be called when you're done with the Dialer. MySQL users should use database/sql. Use mysql.RegisterDriver with any necessary Dialer configuration. Note: The returned cleanup func will stop the dialer's background refresh goroutine and should only be called when you're done with the Dialer. SQL Server users should use database/sql. Use mssql.RegisterDriver with any necessary Dialer configuration. Note: The returned cleanup func will stop the dialer's background refresh goroutine and should only be called when you're done with the Dialer.

Ecosystem
proxy.golang.org
Latest Release
v1.20.0
about 2 months ago
Versions
56
Dependent Packages
91
Dependent Repos
59
Links
Registry proxy.golang.org
Homepage Homepage
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/cloud.google.com/go/cloudsqlconn
spec
License Apache-2.0
Namespace cloud.google.com/go
First Release about 4 years ago
Last Synced 25 days ago
Repository
Stars 92 on GitHub
Forks 27 on GitHub
Docker Dependents 38
Docker Downloads 8,134,549
Commits 571
Committers 17
Avg per Author 33.588
DDS 0.464
Rankings on proxy.golang.org
Overall Top 2.4%
Dependent packages Top 0.7%
Dependent repos Top 0.8%
Forks Top 4.2%
Docker downloads Top 1.3%