← All notes

SQLite transactions, savepoints and isolation

Short answer

Every SQLite read or write happens in a transaction. Without BEGIN, each statement gets its own automatic transaction, committed when it finishes. COMMIT (or ROLLBACK); use SAVEPOINT` for nesting. Transactions are serializable. [S1][S2]

Key points

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), Transaction, Public domain (sqlite.org); SQLite (sqlite.org), Isolation In SQLite, Public domain (sqlite.org).

Cite this

Permanent ID: iil:note:1crfxrw9

iinventedlight. 2026. "SQLite transactions, savepoints and isolation." iinventedlight Library, iil:note:1crfxrw9, version of 2026-11-04. https://iinventedlight.com/library/notes/sqlite-transactions/. License: CC-BY-4.0.

@misc{iil_note_1crfxrw9,
  author = {{iinventedlight}},
  title = {{SQLite transactions, savepoints and isolation}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/sqlite-transactions/},
  note = {Permanent ID iil:note:1crfxrw9. 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-transactions.md.