数据库添加关闭

This commit is contained in:
learnmore2019
2019-02-20 10:15:29 +08:00
parent 7451a421c3
commit 280f791dfb

View File

@@ -50,6 +50,13 @@ func (slf *DBModule) OnInit() error {
return slf.Connect(10)
}
//Close ...
func (slf *DBResult) Close() {
if slf.res != nil {
slf.res.Close()
}
}
// Next ...
func (slf *DBResult) Next() bool {
if slf.Err != nil {