rename configuration node name from LinkInfo to Link

This commit is contained in:
John Guo
2021-06-15 19:57:55 +08:00
parent 2679f92aa8
commit 2af4fd86cc
10 changed files with 44 additions and 40 deletions

View File

@ -10,9 +10,9 @@ func main() {
//db := g.DB()
gdb.AddDefaultConfigNode(gdb.ConfigNode{
LinkInfo: "root:12345678@tcp(127.0.0.1:3306)/test?parseTime=true&loc=Local",
Type: "mysql",
Charset: "utf8",
Link: "root:12345678@tcp(127.0.0.1:3306)/test?parseTime=true&loc=Local",
Type: "mysql",
Charset: "utf8",
})
db, _ := gdb.New()