mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-11 13:04:41 +08:00
mysql 增加一个连接池设置
This commit is contained in:
@@ -14,7 +14,7 @@ func TestDBModule(t *testing.T) {
|
||||
Password: "Root!!2018",
|
||||
DBName: "QuantFundsDB",
|
||||
}
|
||||
db.Connect()
|
||||
db.Connect(100)
|
||||
|
||||
res := db.Query("select * from tbl_fun_heelthrow where id >= 1")
|
||||
if res.Err != nil {
|
||||
@@ -26,7 +26,7 @@ func TestDBModule(t *testing.T) {
|
||||
Uuid string `json:"uuid,omitempty"`
|
||||
AAAA string `json:"xxx"`
|
||||
}{}
|
||||
err := res.SetSpecificTag("json").SetBlurMode(false).UnMarshal(&out)
|
||||
err := res.SetSpecificTag("json").SetBlurMode(true).UnMarshal(&out)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user