further Davidson CI testing & AI refinement
pauljd/davidson-ci: Davidson CI / quality (push) Successful in 15s
pauljd/davidson-ci: Davidson CI / ai-review (push) Successful in 5m4s

This commit is contained in:
2026-09-10 16:19:30 +01:00
parent 35d187b4c2
commit af97600709
3 changed files with 78 additions and 47 deletions
+5
View File
@@ -11,6 +11,11 @@ function getDbConnection(): PDO
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->exec('PRAGMA foreign_keys = ON');
$pdo->exec('PRAGMA busy_timeout = 5000');
// WAL lets readers proceed without blocking a writer's commit (and vice versa),
// which the default rollback-journal mode doesn't: two concurrent requests each
// holding open, unfetched-to-completion statement handles could otherwise make a
// writer's COMMIT fail with "database is locked" even within the busy_timeout.
$pdo->exec('PRAGMA journal_mode = WAL');
$pdo->exec('CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT NOT NULL UNIQUE,