A vibe coded tangled fork which supports pijul.

{appview,knot,spindle}/db: add busy-timeout on sqlite connection

Based on: <32d9db7c74d4a98852e8e59bdd4bb8b56d16ea83>
Authored-by: Lewis <lewis@tangled.org>
Signed-off-by: Seongmin Lee <git@boltless.me>

authored by

Seongmin Lee and committed by tangled.org 5a17af77 8445de22

+3
+1
appview/db/db.go
··· 34 34 "_journal_mode=WAL", 35 35 "_synchronous=NORMAL", 36 36 "_auto_vacuum=incremental", 37 + "_busy_timeout=5000", 37 38 } 38 39 39 40 logger := log.FromContext(ctx)
+1
knotserver/db/db.go
··· 22 22 "_journal_mode=WAL", 23 23 "_synchronous=NORMAL", 24 24 "_auto_vacuum=incremental", 25 + "_busy_timeout=5000", 25 26 } 26 27 27 28 logger := log.FromContext(ctx)
+1
spindle/db/db.go
··· 18 18 "_journal_mode=WAL", 19 19 "_synchronous=NORMAL", 20 20 "_auto_vacuum=incremental", 21 + "_busy_timeout=5000", 21 22 } 22 23 23 24 db, err := sql.Open("sqlite3", dbPath+"?"+strings.Join(opts, "&"))