Room Rawquery Readonly Vacuum

Why a raw-query DAO method runs on a read-only connection, so database compaction fails there with "attempt to write a readonly database" while a checkpoint on the same connection succeeds and hides the problem. Reach for it when a bulk delete frees no disk space, or when a raw statement reports a readonly database you clearly opened for writing.

maxrave-dev 86450a0 5.0 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/room-rawquery-readonly-vacuum commit 86450a0ac4

Frequently asked questions

npx skillmds@latest add maxrave-dev/room-rawquery-readonly-vacuum