Files
sqlite3/vfs/cksmvfs/README.md
2024-10-25 00:12:29 +01:00

824 B

Go cksmvfs SQLite VFS

This package wraps an SQLite VFS to help detect database corruption.

The "cksmvfs" VFS wraps the default SQLite VFS adding an 8-byte checksum to the end of every page in an SQLite database.
The checksum is added as each page is written and verified as each page is read.
The checksum is intended to help detect database corruption caused by random bit-flips in the mass storage device.

This implementation is compatible with SQLite's Checksum VFS Shim.

Important

Checksums are meant to protect against silent data corruption (bit rot). They do not offer authenticity (i.e. protect against forgery), nor prevent silent loss of durability. Checkpoint WAL mode databases to improve durabiliy.