mysql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mysql

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

func New

func New(user, passwd, host, dbName string, port int) (*Mysql, error)

func (*Mysql) Close

func (db *Mysql) Close() error

func (*Mysql) Query

func (db *Mysql) Query(sql string, args ...interface{}) (record.ActiveRecordList,
	error)

func (*Mysql) QueryFirst

func (db *Mysql) QueryFirst(sql string, args ...interface{}) (*record.ActiveRecord,
	error)

func (*Mysql) Stat

func (db *Mysql) Stat() sql.DBStats

func (*Mysql) Update

func (db *Mysql) Update(sql string, args ...interface{}) (int64, error)

Jump to

Keyboard shortcuts

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