Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MYSQL_SESSION_NIL_ERR = errors.New("MysqlMgr session nil.") MYSQL_GET_NAMED_RESULT_ERROR = errors.New("Mysql GetResult Type Error") )
Functions ¶
This section is empty.
Types ¶
type MysqlConnInfo ¶
func NewMysqlConnInfo ¶
func NewMysqlConnInfo(host string, port int, name, user, pass string) *MysqlConnInfo
func (*MysqlConnInfo) String ¶
func (mi *MysqlConnInfo) String() string
type MysqlMgr ¶
type MysqlMgr struct {
// contains filtered or unexported fields
}
func NewMysqlMgr ¶
func NewMysqlMgr(dbcfg *MysqlConnInfo, timeout time.Duration) *MysqlMgr
func (*MysqlMgr) GetNamedRows ¶
GetNamedRows 解析查询返回的数据
func (*MysqlMgr) GetSession ¶
Click to show internal directories.
Click to hide internal directories.