增加记录sql

pull/23/head
taoshihan1991 3 years ago
parent bb1c8484de
commit e5aab2d0ad

@ -4,6 +4,7 @@ import (
"fmt"
"github.com/jinzhu/gorm"
"github.com/taoshihan1991/imaptool/config"
"github.com/taoshihan1991/imaptool/tools"
"time"
)
@ -26,7 +27,7 @@ func init() {
}
DB.SingularTable(true)
DB.LogMode(true)
//DB.SetLogger(tools.Logger())
DB.SetLogger(tools.Logger())
DB.DB().SetMaxIdleConns(10)
DB.DB().SetMaxOpenConns(100)

Loading…
Cancel
Save