mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
824 B
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.