mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
gform配置文件支持linkinfo字段
This commit is contained in:
@ -161,6 +161,9 @@ func Database(name...string) *gdb.Db {
|
||||
if value, ok := nodem["priority"]; ok {
|
||||
node.Priority = gconv.Int(value)
|
||||
}
|
||||
if value, ok := nodem["linkinfo"]; ok {
|
||||
node.Linkinfo = gconv.String(value)
|
||||
}
|
||||
if value, ok := nodem["max-idle"]; ok {
|
||||
node.MaxIdleConnCount = gconv.Int(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user