Documentation ¶ Index ¶ func GetDB() *sql.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDB ¶ func GetDB() *sql.DB GetDB creates a new connection using the cloudsql connector if the INSTANCE_CONNECTION_NAME environment variable is set, otherwise it connects to the local database using TCP. Types ¶ This section is empty. Source Files ¶ View all Source files dataconnect.go Click to show internal directories. Click to hide internal directories.