mysql

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func (*DB) Close

func (db *DB) Close() error

func (*DB) Delete

func (db *DB) Delete(table string, rd *record.ActiveRecord) (int64, error)

func (*DB) Find

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

func (*DB) FindFirst

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

func (*DB) Init

func (db *DB) Init(user, passwd, host, dbName string, port int) error

func (*DB) NewDB

func (db *DB) NewDB(user, passwd, host, dbName string, port int) (*sql.DB,
	error)

func (*DB) Save

func (db *DB) Save(table string, rd *record.ActiveRecord) (bool, error)

func (*DB) Stat

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

func (*DB) Update

func (db *DB) 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