mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-03-08 11:05:38 +08:00
fix: sqlite数据问题时间类型问题修复等
This commit is contained in:
23
server/internal/db/init/terminate.go
Normal file
23
server/internal/db/init/terminate.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package init
|
||||
|
||||
import "mayfly-go/internal/db/application"
|
||||
|
||||
// 终止进程时的处理函数
|
||||
func Terminate() {
|
||||
closeDbTasks()
|
||||
}
|
||||
|
||||
func closeDbTasks() {
|
||||
restoreApp := application.GetDbRestoreApp()
|
||||
if restoreApp != nil {
|
||||
restoreApp.Close()
|
||||
}
|
||||
binlogApp := application.GetDbBinlogApp()
|
||||
if binlogApp != nil {
|
||||
binlogApp.Close()
|
||||
}
|
||||
backupApp := application.GetDbBackupApp()
|
||||
if backupApp != nil {
|
||||
backupApp.Close()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user