优化数据库相关代码

This commit is contained in:
刘祥超
2022-04-08 14:15:45 +08:00
parent fe448e6556
commit c03d9f1880
10 changed files with 99 additions and 16 deletions

View File

@@ -52,6 +52,10 @@ func (this *SQLExecutor) Run(showLog bool) error {
return err
}
defer func() {
_ = db.Close()
}()
sqlDump := NewSQLDump()
_, err = sqlDump.Apply(db, LatestSQLResult, showLog)
if err != nil {