fix: sqlite数据问题时间类型问题修复等

This commit is contained in:
meilin.huang
2024-01-18 17:18:17 +08:00
parent 63f0615445
commit 7c53353c60
18 changed files with 1099 additions and 100 deletions

View File

@@ -1,25 +1,10 @@
package initialize
import (
dbApp "mayfly-go/internal/db/application"
dbInit "mayfly-go/internal/db/init"
)
// 终止服务后的一些操作
// 终止进程服务后的一些操作
func Terminate() {
closeDbTasks()
}
func closeDbTasks() {
restoreApp := dbApp.GetDbRestoreApp()
if restoreApp != nil {
restoreApp.Close()
}
binlogApp := dbApp.GetDbBinlogApp()
if binlogApp != nil {
binlogApp.Close()
}
backupApp := dbApp.GetDbBackupApp()
if backupApp != nil {
backupApp.Close()
}
dbInit.Terminate()
}