change database config

This commit is contained in:
2025-08-19 01:49:19 +08:00
parent ecfe7a6fd6
commit 9f8630784d

View File

@@ -46,6 +46,8 @@ func NewConnection(config Config) (*DB, error) {
NowFunc: func() time.Time { NowFunc: func() time.Time {
return time.Now().In(time.FixedZone("CST", 8*3600)) // 强制使用北京时间 return time.Now().In(time.FixedZone("CST", 8*3600)) // 强制使用北京时间
}, },
PrepareStmt: true,
DisableAutomaticPing: false,
} }
// 连接数据库 // 连接数据库