Skip to content

Commit acacba5

Browse files
committed
sessionManager增加close方法
1 parent f007b00 commit acacba5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sqlrunner.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ func (this *SessionManager) NewSession() *Session {
9696
}
9797
}
9898

99+
func (this *SessionManager) Close() error {
100+
return this.factory.Close()
101+
}
102+
99103
//修改sql解析器创建者
100104
func (this *SessionManager) SetParserFactory(fac ParserFactory) {
101105
this.ParserFactory = fac

0 commit comments

Comments
 (0)