mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
数据库添加关闭
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user