update at 2023/08/14

This commit is contained in:
simonzhangsz committed 2023-08-14 21:41:37 +08:00
1 parent a039a664f1
commit 44e8cbee2c
255 files changed
+20426 -233

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("========================= OMC loadmconf startup =========================")
fmt.Println("OMC loadmconf version: %s %s %s", version, buildTime, goVer)
for _, f := range pfiles {
fmt.Println("f:", f)
mmlMap := ReadMMLConfig(f)
fmt.Println("mmlMap:", mmlMap)
db := yamlConfig.Database
sqlStr := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s", db.User, db.Password, db.Host, db.Port, db.Name)
XormConnectDatabaseWithUri(sqlStr)
XormInsertMMLConfig(mmlMap, yamlConfig.Mml.Table)
}
}