mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
测试通过
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
"xorm.io/core"
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
@@ -22,6 +23,7 @@ func NewWorkday(c *Client, filename string) (*Workday, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
db.SetMapper(core.SameMapper{})
|
||||
db.DB().SetMaxOpenConns(1)
|
||||
if err := db.Sync2(new(WorkdayModel)); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user