SQLite PRAGMA

PRAGMA application_id

The application_id PRAGMA is used to query or set the 32-bit signed big-endian "Application ID" integer located at offset 68 into the database header.

PRAGMA schema.application_id;
PRAGMA schema.application_id = integer ;

On the sample database

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

application_id
0

What the SQLite documentation says

The application_id PRAGMA is used to query or set the 32-bit signed big-endian "Application ID" integer located at offset 68 into the database header. Applications that use SQLite as their application file-format should set the Application ID integer to a unique integer so that utilities such as file(1) can determine the specific file type rather than just reporting "SQLite3 Database". A list of assigned application IDs can be seen by consulting the magic.txt file in the SQLite source repository.

See also the user_version pragma.

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

← analysis_limit · auto_vacuum →