Merge 'Simple integrity check on btree' from Pere Diaz Bou

This PR adds support for the instruction `IntegrityCk` which performs an
integrity check on the contents of a single table. Next PR I will try to
implement the rest of the integrity check where we would check indexes
containt correct amount of data and some more.
<img width="1151" alt="image" src="https://github.com/user-
attachments/assets/29d54148-55ba-480f-b972-e38587f0a483" />

Closes #1719
This commit is contained in:
Pekka Enberg
2025-06-16 13:46:26 +03:00
12 changed files with 448 additions and 8 deletions

View File

@@ -1730,6 +1730,8 @@ pub enum PragmaName {
AutoVacuum,
/// `cache_size` pragma
CacheSize,
/// Run integrity check on the database file
IntegrityCheck,
/// `journal_mode` pragma
JournalMode,
/// Noop as per SQLite docs