← All notes

SQLite locking and SQLITE_BUSY

Short answer

SQLite allows many readers but only one writer at a time.

Lock states

SQLITE_BUSY can occur at any point in a transaction. [S2]

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: SQLite (sqlite.org), File Locking And Concurrency In SQLite Version 3, Public domain (sqlite.org); SQLite (sqlite.org), Result and Error Codes, Public domain (sqlite.org).

Cite this

Permanent ID: iil:note:x60nswtj

iinventedlight. 2026. "SQLite locking and SQLITE_BUSY." iinventedlight Library, iil:note:x60nswtj, version of 2026-11-04. https://iinventedlight.com/library/notes/sqlite-busy-and-locking/. License: CC-BY-4.0.

@misc{iil_note_x60nswtj,
  author = {{iinventedlight}},
  title = {{SQLite locking and SQLITE\_BUSY}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/sqlite-busy-and-locking/},
  note = {Permanent ID iil:note:x60nswtj. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/sqlite-busy-and-locking.md.