Commit graph

1 commit

Author SHA1 Message Date
Claude
56dd5fe510
Add database file watcher using PRAGMA data_version
Monitors all file-backed databases for changes by polling PRAGMA data_version
via a dedicated sqlite3 connection per database. Detected changes update
datasette._database_updated with the time.monotonic() timestamp. Watchers
start on ASGI startup and are cancelled on shutdown. The /-/databases endpoint
now includes a "last_updated" field for each database.

https://claude.ai/code/session_018W3THaecoPG4K8pFuthz62
2026-03-16 19:21:53 +00:00