Keep Windows intent and diagnostic databases read-only with rusqlite 0.41

This commit is contained in:
2026-11-18 10:11:02 +01:00
parent 0f15f91f65
commit 72d95dee11
2 changed files with 2 additions and 2 deletions
@@ -62,7 +62,7 @@ impl Snapshot {
let db = Connection::open_with_flags(path, OpenFlags::SQLITE_OPEN_READ_ONLY)?;
db.execute_batch("PRAGMA query_only=ON; PRAGMA trusted_schema=OFF; BEGIN;")?;
ensure!(
db.is_readonly(rusqlite::DatabaseName::Main)?,
db.is_readonly(rusqlite::MAIN_DB)?,
"read-only database required"
);
Ok(Self { db, _held: handles })