Search notes:

SQLite: pragma journal_mode

The value of the pragma journal_mode can be set to one of
delete The default journaling mode. In this mode, the rollback journal is deleted when a transaction commits.
truncate The journal mode is truncated rather than deleted when a transaction commits (this is possibly faster as no modification of the directory entry is required).
persist
memory The journal is managed in memory. This is possibly faster at the risk of the database become corrupt.
wal Use a write-ahead log instead of a rollback journal. Ben Johnson thinks that WAL mode is generally the best mode to run SQLite in. Once set, this mode is persisted in the database.
off
Just executing pragma journal_mode reports the current journaling mode associated with the current connection.

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...', 1759420256, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQLite/sql/pragma/journal_mode(44): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78