statement.resetStats()


将 statement.stat() 报告的每个计数器重置为零,除了 memused,它报告当前内存使用情况且无法重置。这个方法是 sqlite3_stmt_status() 的一个封装,对于在不受之前相同预处理语句执行累积计数影响的情况下测量特定工作负载非常有用。

🌐 Resets every counter reported by statement.stat() back to zero, except memused, which reports current memory usage and cannot be reset. This method is a wrapper around sqlite3_stmt_status() and is useful for measuring a specific workload without the counts accumulated by earlier executions of the same prepared statement.