Tim Vaillancourt 47d49c6b92
Add go mod (#935)
* Add a go.mod file

* run go mod vendor again

* Move to a well-supported ini file reader

* Remove GO111MODULE=off

* Use go 1.16

* Rename github.com/outbrain/golib -> github.com/openark/golib

* Remove *.go-e files

* Fix for `strconv.ParseInt: parsing "": invalid syntax` error

* Add test for '[osc]' section

Co-authored-by: Nate Wernimont <nate.wernimont@workiva.com>
2021-06-24 20:19:37 +02:00

22 lines
306 B
Go

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
}
}