mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-05 08:46:57 +08:00
support database postgresql and tidb
This commit is contained in:
@@ -45,8 +45,8 @@ func InitApp() {
|
||||
logger.Info("init logger succeeded")
|
||||
|
||||
// initializing database
|
||||
model.InitMysql()
|
||||
logger.Info("init mysql succeeded")
|
||||
model.InitDB()
|
||||
logger.Infof("init %s succeeded", cfg.Database.Driver)
|
||||
model.InitCache(cfg.App.CacheType)
|
||||
|
||||
// initializing tracing
|
||||
|
Reference in New Issue
Block a user