gh-ost/vendor/github.com/go-mysql-org/go-mysql/mysql/result.go

22 lines
306 B
Go
Raw Normal View History

2016-06-16 09:15:56 +00:00
package mysql
type Result struct {
Status uint16
InsertId uint64
AffectedRows uint64
*Resultset
}
type Executer interface {
Execute(query string, args ...interface{}) (*Result, error)
}
func (r *Result) Close() {
if r.Resultset != nil {
r.Resultset.returnToPool()
r.Resultset = nil
}
}