How do I fix "database is locked" in SQLite?
Still getting SQLITE_BUSY with a timeout set? The default timeout is zero and deferred transactions can't wait. WAL mode, busy_timeout and BEGIN IMMEDIATE fix most cases.
In this article
- 01The one rule: a single writer
- 02Problem 1: the busy timeout defaults to zero
