
Transaction Correctness
Write-ahead logging, checkpoint modes, and crash recovery rules for the tursodb storage engine.
- skills.sh installs
- 1.2K
- GitHub stars
- 25.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers WAL mechanics: frame appends, commit frames, read marks, and the single-writer rule with non-blocking readers
- Describes four checkpoint modes (PASSIVE, FULL, RESTART, TRUNCATE) and the 1000-frame auto-checkpoint threshold set with
PRAGMA wal_autocheckpoint - Enforces fsync before commit success, so readers never observe a partial transaction
- Designed for engineers debugging WAL growth, checkpoint stalls, or recovery behavior in tursodb
Install
$ npx -y skills add tursodatabase/turso --skill transaction-correctness -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Transaction correctness
Journal modes: wal (default; files .db, .db-wal) and mvcc (.db-log, see the mvcc skill). There is no .db-shm: the WAL index is in memory. With --experimental-multiprocess-wal, processes coordinate through a .tshm file.
WAL
- A writer appends frames to the WAL. A commit is a frame with a non-zero db size in its header. The main DB file is unchanged until a checkpoint.
- A reader takes a read mark (the last valid commit frame). For each page it looks in the WAL up to that frame, then in the main DB.
- One writer at a time. Readers and the writer do not block each other.
- A checkpoint cannot copy past frames that an active reader still needs.
- A commit is fsynced before success is returned. Readers never see a partial transaction.
Checkpoint modes
Auto-checkpoint starts when the WAL reaches 1000 frames. It is set per connection with PRAGMA wal_autocheckpoint.
Details
- Repository
- github.com/tursodatabase/turso
- Category
- Databases
- First seen
- May 16, 2026
More from tursodatabase/turso
All 7Similar to Transaction Correctness
More Databases
mvcctursodatabase/turso1.2K installsRuntime-enabled multi-version concurrency control with snapshot isolation and a logical log for SQLite-style databases.
cdctursodatabase/turso153 installsSchema-versioned change data capture for per-connection write logging, with COMMIT records and MVCC support.
sqlite-expertrightnow-ai/openfang413 installsExpert SQLite guidance covering WAL concurrency, index tuning, FTS5 search, and embedded application patterns.
transaction-managementaj-geddes/useful-ai-prompts462 installsDatabase transaction guidance for PostgreSQL and MySQL covering ACID, isolation levels, and locking.
supabase-postgres-best-practicessupabase/agent-skills488.4K installsPostgres best-practices guide covering query performance, connections, RLS, schema, locking, and advanced features.
nekiplanetscale/database-skills1.7K installsSharded Postgres guidance for PlanetScale's Neki, covering routing, shard keys, transactions, and resharding.