support database postgresql and tidb

This commit is contained in:
zhuyasen
2024-02-08 16:35:33 +08:00
parent 948b3f0b36
commit a56a20263a
83 changed files with 2050 additions and 725 deletions

View File

@@ -20,9 +20,9 @@ func Close(servers []app.IServer) []app.Close {
closes = append(closes, s.Stop)
}
// close mysql
// close database
closes = append(closes, func() error {
return model.CloseMysql()
return model.CloseDB()
})
// close redis