Documentation ¶
Index ¶
- type DBExecute
- type DBResult
- type DataSetList
- type MySQLModule
- 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
- type SyncFun
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBResult ¶
type DBResult struct { LastInsertID int64 RowsAffected int64 RowInfo map[string][]interface{} //map[fieldname][row]sql.NullString // contains filtered or unexported fields }
DBResult ...
type DataSetList ¶
type DataSetList struct {
// contains filtered or unexported fields
}
func (*DataSetList) UnMarshal ¶
func (ds *DataSetList) UnMarshal(args ...interface{}) error
type MySQLModule ¶
DBModule ...
func (*MySQLModule) Exec ¶
func (m *MySQLModule) Exec(strSql string, args ...interface{}) (*DBResult, error)
Exec ...
func (*MySQLModule) Query ¶
func (m *MySQLModule) Query(strQuery string, args ...interface{}) (*DataSetList, error)
func (*MySQLModule) SetQuerySlowTime ¶
func (m *MySQLModule) SetQuerySlowTime(slowDuration time.Duration)
type PingExecute ¶
type PingExecute struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.