Search notes:

SQLite: dbstat (eponymous virtual table)

dbstat contanis information about the amount of disk space used (page size and allocation).
dbstat is a so-called eponymous virtual table.
select
   name,
   sum(pgsize)  / 1024.0 / 1024.0 mb
from
   dbstat
group by
   name
order by
   sum(pgsize) desc;
select
   name,
   path,
   pageno,
   pagetype,
   ncell,
   payload,
   unused,
   mx_payload,
   pgoffset,
   pgsize
from
   dbstat
order by
   pageno limit 50;

See also

sqlite3_analyzer.exe
The page_size and page_count pragmas.
Internal schema objects

Index