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

@@ -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