{
  "slug": "sqlite-integrity-check",
  "term": "SQLite integrity_check",
  "aliases": [
    "PRAGMA integrity_check"
  ],
  "definition": "SQLite integrity_check examines database structure and selected constraints without checking foreign-key relationships.",
  "note": "A result of ok does not validate declared references or application meaning. Use a separate foreign_key_check for declared relationships. [pragma]\n\nTen completed backup fixtures preserved all source rows and returned ok; four retained orphan references and only two met the fixed owner requirement. These are deliberately constructed inputs, not naturally occurring backup failures. [experiment]",
  "related": [
    "sqlite-foreign-key-check",
    "backup-verification",
    "sqlite-online-backup"
  ],
  "citations": [
    {
      "id": "pragma",
      "title": "SQLite PRAGMA integrity_check",
      "url": "https://www.sqlite.org/pragma.html#pragma_integrity_check",
      "accessed": "2026-10-17"
    },
    {
      "id": "experiment",
      "title": "Hesela: executed SQLite validation-boundary cases",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#sqlite-validation-boundaries",
      "accessed": "2026-10-17"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-17",
  "provenance": [
    "Ten designed cases using SQLite 3.45.1 with DELETE/WAL sources and read-only reopened destinations; no crash, failure-rate or full-application recovery claim."
  ]
}
