mysql

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 Facade

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

func (*Facade) Init

func (f *Facade) Init(ip string, port int16, user, password, schema string) error

type IFacde

type IFacde interface {
	Init(ip string, port int16, user, password, schema string) error
	Execute(statement string) error
	Select(q string)
}

type MysqlMgr

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

func NewMysqlMgr

func NewMysqlMgr() *MysqlMgr

func (*MysqlMgr) AddInstance

func (m *MysqlMgr) AddInstance(id uint32, ip string, port int16, user, pass, schema string) error

func (*MysqlMgr) Destroy

func (m *MysqlMgr) Destroy()

func (*MysqlMgr) Execute

func (m *MysqlMgr) Execute(id uint32, query string, args ...interface{}) (sql.Result, error)

func (*MysqlMgr) GetDb

func (m *MysqlMgr) GetDb(id uint32) *sql.DB

func (*MysqlMgr) Query

func (m *MysqlMgr) Query(id uint32, query string, args ...interface{}) (*sql.Rows, error)

Jump to

Keyboard shortcuts

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