mysql551

package module
v0.0.0-...-259233e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: MIT Imports: 5 Imported by: 3

README

mysql551

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToNil

func ToNil(value interface{}) interface{}

Types

type Config

type Config struct {
	Host     string `json:"host"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

type GInt64

type GInt64 int64

type GString

type GString string

type GTime

type GTime time.Time

type Mysql

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

func New

func New(config *Config) *Mysql

func (*Mysql) Begin

func (m *Mysql) Begin()

func (*Mysql) Close

func (m *Mysql) Close()

func (*Mysql) Commit

func (m *Mysql) Commit()

func (*Mysql) Exec

func (m *Mysql) Exec(query string, param ...interface{}) (rowsAffected int64, lastInsertId int64)

func (*Mysql) IsOpen

func (m *Mysql) IsOpen() bool

func (*Mysql) IsTransaction

func (m *Mysql) IsTransaction() bool

func (*Mysql) Open

func (m *Mysql) Open()

func (*Mysql) Query

func (m *Mysql) Query(query string, param ...interface{}) *sql.Rows

func (*Mysql) Rollback

func (m *Mysql) Rollback()

Jump to

Keyboard shortcuts

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