This commit is contained in:
aozhiwei 2024-08-09 09:47:46 +08:00
parent 4ab0643ecd
commit be939d2ab0

View File

@ -93,6 +93,17 @@ func (this *app) registerDataSources() {
mt.Table.BcEventDb.GetById(0).GetMaxOpenConns(),
mt.Table.BcEventDb.GetById(0).GetMaxIdleConns())
f5.GetGoStyleDb().RegisterDataSource(
constant.LOG_DB,
mt.Table.LogDb.GetById(0).GetHost(),
mt.Table.LogDb.GetById(0).GetPort(),
mt.Table.LogDb.GetById(0).GetUser(),
mt.Table.LogDb.GetById(0).GetPasswd(),
mt.Table.LogDb.GetById(0).GetDatabase(),
1,
mt.Table.LogDb.GetById(0).GetMaxOpenConns(),
mt.Table.LogDb.GetById(0).GetMaxIdleConns())
}
func (this *app) HasTask() bool {