mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-11-03 09:41:07 +08:00
support database postgresql and tidb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user