mysql

package
v0.0.0-...-055c182 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User     = "root"
	Password = "1234"
)

Variables

This section is empty.

Functions

func RandomDBName

func RandomDBName() string

Types

type MySQL

type MySQL struct {
	ConnStr string
	*sql.DB
	// contains filtered or unexported fields
}

func New

func New() (*MySQL, error)

func (*MySQL) Addr

func (s *MySQL) Addr() string

func (*MySQL) Close

func (s *MySQL) Close()

func (*MySQL) CreateDatabase

func (m *MySQL) CreateDatabase(dbName string) error

func (*MySQL) CreateRandomDatabase

func (m *MySQL) CreateRandomDatabase() (string, error)

func (*MySQL) DeleteDatabase

func (m *MySQL) DeleteDatabase(dbName string) error

func (*MySQL) DumpCSV

func (m *MySQL) DumpCSV(n int, query string, args ...interface{}) (string, error)

Jump to

Keyboard shortcuts

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