Commit b3910cdb by hcy001

开启sql记录

parent 52559afe
Showing with 1 additions and 1 deletions
......@@ -28,7 +28,7 @@ func Setup() {
}
Db.SingularTable(true)
//Db.LogMode(true)
Db.LogMode(true)
Db.DB().SetMaxIdleConns(10)
Db.DB().SetMaxOpenConns(100)
Db.DB().SetConnMaxLifetime(10 * time.Second)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment