文件缓存增加自动限速/提升本地缓存数据库写入和查询速度

This commit is contained in:
刘祥超
2022-04-20 18:23:26 +08:00
parent 5c54a47587
commit 0e5aef923d
7 changed files with 147 additions and 33 deletions

View File

@@ -31,6 +31,10 @@ func (this *DB) EnableStat(b bool) {
this.enableStat = b
}
func (this *DB) Begin() (*sql.Tx, error) {
return this.rawDB.Begin()
}
func (this *DB) Prepare(query string) (*Stmt, error) {
stmt, err := this.rawDB.Prepare(query)
if err != nil {