mysql

package
v0.0.0-...-01da6d2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name, user, pass, socket, host string, port int, params map[string]string) database.Connector

New return new connector

Types

type Connector

type Connector struct {
	Name   string
	User   string
	Pass   string
	Host   string
	Port   int
	Socket string
	Params map[string]string
}

Connector interface implements

func (*Connector) Open

func (c *Connector) Open() (*sql.DB, error)

Open connection

Jump to

Keyboard shortcuts

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