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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759419627, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQLite/internals/schema-objects/dbstat(73): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78