SQLite Forum

open db in read only; explicitly store diff as WAL ?
Login
I don't think that you can "write" to a "read-only" database.  If you could that would almost certainly be a "bug".

You probably do not want to open the read-only database at all, but rather modify a copy of it, leaving the original intact.