SQLite PRAGMA

PRAGMA database_list

This pragma works like a query to return one row for each database attached to the current database connection.

PRAGMA database_list;

On the sample database

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

seqnamefile
0main/dbfile_1346159947

What the SQLite documentation says

This pragma works like a query to return one row for each database attached to the current database connection. The second column is "main" for the main database file, "temp" for the database file used to store TEMP objects, or the name of the ATTACHed database for other database files. The third column is the name of the database file itself, or an empty string if the database is not associated with a file.

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

← data_version · default_cache_size →