测试通过

This commit is contained in:
injoyai
2025-02-21 14:45:52 +08:00
parent 2976d84bde
commit bbc2013cd6
4 changed files with 17 additions and 0 deletions

View File

@@ -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