SQLite PRAGMA

PRAGMA user_version

The user_version pragma will get or set the value of the user-version integer at offset 60 in the database header.

PRAGMA schema.user_version;
PRAGMA schema.user_version = integer ;

On the sample database

What PRAGMA user_version returns on the sample database, in SQLite 3.54.1 as built for the browser by sql.js:

user_version
7

What the SQLite documentation says

The user_version pragma will get or set the value of the user-version integer at offset 60 in the database header. The user-version is an integer that is available to applications to use however they want. SQLite makes no use of the user-version itself.

See also the application_id pragma and schema_version pragma.

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

← trusted_schema · vdbe_addoptrace →