An integrity check examines SQLite's internal structures. It answers a different question from whether the application's business rules hold.
Worked example
PRAGMA quick_check;Result
[
{
"quick_check": "ok"
}
]Implementation notes
The quick check and the full integrity check have different costs. Choose a maintenance window appropriate to the size and activity of the database.
Try it yourself
Compare a healthy database with one containing a logically invalid but permitted row.
Open the SQL example →Editorial date November 20, 2025 · Published December 6, 2026