Skip to content

Commit

Permalink
Update genfunc_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed Sep 6, 2024
1 parent c4b6632 commit e8fe2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/view/genfunc/genfunc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestFuncOption(t *testing.T) {
// sqldb, _ := db.DB()
// sqldb.Close()
// }()
orm := mysqldb.OnInitDBOrm("root:123456@tcp(127.0.0.1:3306)/matrix?charset=utf8&parseTime=True&loc=Local&interpolateParams=True") // 推荐方式
orm := mysqldb.OnInitDBOrm("root:123456@tcp(127.0.0.1:3306)/matrix?charset=utf8&parseTime=True&loc=Local&interpolateParams=True", true) // 推荐方式
defer orm.OnDestoryDB()
db := orm.DB

Expand Down

0 comments on commit e8fe2a0

Please sign in to comment.