WalCheckPointMode Enumeration |
WAL checkpoint modes.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax public enum WalCheckPointMode
Members
| Member name | Value | Description |
---|
| Passive | 0 |
Checkpoint as many frames as possible without waiting for any database
readers or writers to finish. Sync the db file if all frames in the
log are checkpointed.
|
| Full | 1 |
This mode blocks until there is no database writer and all readers are
reading from the most recent database snapshot. It then checkpoints all
frames in the log file and syncs the database file. This call blocks database
writers while it is running, but not database readers.
|
| Restart | 2 |
This mode works the same way as Full, except after checkpointing
the log file it blocks until all readers are reading from the database file
only. This ensures that the next client to write to the database file restarts
the log file from the beginning. This call blocks database writers while it
is running, but not database readers.
|
See Also