MySQL/Postgres

The mysql and postgres packages provide functions for connecting to MySQL and PostgreSQL databases for both on-premise and cloud-provided instances using the *sql.DB type from the Go standard library. Database connections opened using these packages will automatically collect diagnostic information via OpenCensus.

Top-level package documentation: https://godoc.org/gocloud.dev/mysql and https://godoc.org/gocloud.dev/postgres.

Supported Providers🔗

For MySQL:

For PostgreSQL:

Usage Samples🔗