cloudsql

package
v0.0.0-...-26f7dc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cloudsql exposes access to Google Cloud SQL databases.

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 CloudSQL instance. The exact format of the second argument to sql.Open is driver-dependent; consult the driver's documentation for details.

Example:

import "database/sql"
import _ "<some mysql package>"

db, err := sql.Open("mysql", "cloudsql:my-instance*dbname/user/passwd")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(instance string) (net.Conn, error)

Dial connects to the named Cloud SQL instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL