Error code

SQLite SQLITE_CORRUPT

SQLITESQLITE_CORRUPT
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

the database file is malformed — on-disk structure is damaged.

How to fix it

  1. Restore the database from a known-good backup.
  2. Run the built-in integrity check with PRAGMA integrity_check to confirm and scope the damage.
  3. For partial recovery use the .recover shell command or the sqlite3_recover API to extract readable rows.

Not affiliated with SQLite. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.