|
@@ -56,27 +56,6 @@ func init() {
|
|
|
gl, _ := orm.GetDB("gl")
|
|
|
gl.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
- _ = orm.RegisterDataBase("comein_data", "mysql", utils.MYSQL_URL_COMEIN_DATA)
|
|
|
- orm.SetMaxIdleConns("comein_data", 50)
|
|
|
- orm.SetMaxOpenConns("comein_data", 100)
|
|
|
-
|
|
|
- comein_datadb, _ := orm.GetDB("comein_data")
|
|
|
- comein_datadb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
- _ = orm.RegisterDataBase("weekly_trial", "mysql", utils.MYSQL_URL_WEEKLY_TRIAL)
|
|
|
- orm.SetMaxIdleConns("weekly_trial", 50)
|
|
|
- orm.SetMaxOpenConns("weekly_trial", 100)
|
|
|
-
|
|
|
- trial_datadb, _ := orm.GetDB("weekly_trial")
|
|
|
- trial_datadb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
- _ = orm.RegisterDataBase("fms", "mysql", utils.MYSQL_URL_FMS)
|
|
|
- orm.SetMaxIdleConns("fms", 50)
|
|
|
- orm.SetMaxOpenConns("fms", 100)
|
|
|
-
|
|
|
- fms_datadb, _ := orm.GetDB("fms")
|
|
|
- fms_datadb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
orm.Debug = true
|
|
|
orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
|