SQLite C 接口

检查点模式值

#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()文档。

另请参阅 对象常量函数的列表。