Checkpoint Mode Values
Checkpoint Mode Values
#define SQLITE_CHECKPOINT_PASSIVE 0 /* Do as much as possible w/o blocking */
#define SQLITE_CHECKPOINT_FULL 1 /* Wait for writers, then checkpoint */
#define SQLITE_CHECKPOINT_RESTART 2 /* Like FULL but wait for for readers */
#define SQLITE_CHECKPOINT_TRUNCATE 3 /* Like RESTART but also truncate WAL */
这些常量为作为第三个参数传递给sqlite3_wal_checkpoint_v2()接口的“检查点模式”定义所有有效值。有关每个检查点模式的含义,请参阅sqlite3_wal_checkpoint_v2()文档。
参见对象、常量和函数列表。
SQLite is in the Public Domain.