fusion32 634554a0df fix problem with concurrent writes + implement website queries
There was a problem with concurrent writes not being visible
until after restart, due to how cached prepared statements work
with SQLite (see comment in `database.cc`).
2025-08-01 19:23:13 -03:00
..
2025-07-10 16:57:09 -03:00

	The query manager will properly initialize and upgrade the database schema
based on files in this folder. The initial schema should be in `schema.sql` and
upgrades should be in `upgrade-N.sql` where N is a number starting from 1. The
`upgrade-N.sql` file should take the database from version N to N + 1.
	The only restriction to these files is that they can't have transaction
statements ("BEGIN", "ROLLBACK", "COMMIT") because the query manager will
already bundle them into a transaction that also sets `user_version`, and
and nested transactions aren't allowed.
	The current database version can be retrieved with the "PRAGMA user_version"
query in the SQLite shell.