Versions in this module Expand all Collapse all v1 v1.17.5 May 22, 2022 Changes in this version + type DBExecute struct + type DBResult struct + LastInsertID int64 + RowInfo map[string][]interface{} + RowsAffected int64 + type DataSetList struct + func (ds *DataSetList) UnMarshal(args ...interface{}) error + type MySQLModule struct + func (m *MySQLModule) Begin() (*Tx, error) + func (m *MySQLModule) Exec(strSql string, args ...interface{}) (*DBResult, error) + func (m *MySQLModule) Init(url string, userName string, password string, dbname string, maxConn int) error + func (m *MySQLModule) Query(strQuery string, args ...interface{}) (*DataSetList, error) + func (m *MySQLModule) SetQuerySlowTime(slowDuration time.Duration) + type PingExecute struct + type SyncFun func() + type Tx struct + func (slf *Tx) Commit() error + func (slf *Tx) Exec(strSql string, args ...interface{}) (*DBResult, error) + func (slf *Tx) Query(strQuery string, args ...interface{}) (*DataSetList, error) + func (slf *Tx) Rollback() error