godrv

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2012 License: BSD-3-Clause Imports: 13 Imported by: 444

Documentation

Overview

MySQL driver for Go sql package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(query string)

Registers initialisation commands. This is workaround, see http://codereview.appspot.com/5706047

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Open

func (d *Driver) Open(uri string) (driver.Conn, error)

Open new connection. The uri need to have the following syntax:

[PROTOCOL_SPECFIIC*]DBNAME/USER/PASSWD

where protocol spercific part may be empty (this means connection to local server using default protocol). Currently possible forms:

DBNAME/USER/PASSWD
unix:SOCKPATH*DBNAME/USER/PASSWD
tcp:ADDR*DBNAME/USER/PASSWD

Jump to

Keyboard shortcuts

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