SQLite PRAGMA

PRAGMA writable_schema

for testing; not for applications

When this pragma is on, and the SQLITE_DBCONFIG_DEFENSIVE flag is off, then the sqlite_schema table can be changed using ordinary UPDATE, INSERT, and DELETE statements.

PRAGMA writable_schema = boolean;
PRAGMA writable_schema = RESET

What the SQLite documentation says

When this pragma is on, and the SQLITE_DBCONFIG_DEFENSIVE flag is off, then the sqlite_schema table can be changed using ordinary UPDATE, INSERT, and DELETE statements. If the argument is "RESET" then schema writing is disabled (as with "PRAGMA writable_schema=OFF") and, in addition, the schema is reloaded. Warning: misuse of this pragma can easily result in a corrupt database file.

From sqlite.org's pragma documentation for SQLite 3.54.1, in the public domain.

← wal_checkpoint