Documentation ¶
Overview ¶
Package db provides types and methods database operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
GetConnection returns the configured db connection or nil
Types ¶
type MySQLConfig ¶
type MySQLConfig struct {
// Optional.
Username, Password string
// Host of the MySQL instance.
//
// If set, Instance should be unset.
Host string
// Port of the MySQL instance.
//
// If set, Instance should be unset.
Port int
// Instance is the CloudSQL instance name.
//
// If set, Host and Port should be unset.
Instance string
}
MySQLConfig holds SQL configuration information for setting up connections
Click to show internal directories.
Click to hide internal directories.