---
title: "Introducing Limbo: A complete rewrite of SQLite in Rust"
description: "Limbo is Turso's from-scratch rewrite of SQLite in Rust that aims for full language and file-format compatibility, memory safety and a modern architecture."
url: "https://swe.quest/articles/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust-eb77d828af295b26"
canonical: "https://turso.tech/blog/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust"
source: "Turso"
published: "2024-12-10"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 7
tags: ["sqlite","rust","formal-methods","testing","webassembly"]
---

# Introducing Limbo: A complete rewrite of SQLite in Rust

A post on [Turso](https://swe.quest/sources/turso.md), published 2024-12-10, 7 min read, Announcement. Original: [https://turso.tech/blog/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust](https://turso.tech/blog/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust)

## Summary

Limbo is Turso's from-scratch rewrite of SQLite in Rust that aims for full language and file-format compatibility, memory safety and a modern architecture. The team chose a rewrite over the libSQL fork because invasive changes such as natural vector-index syntax and async I/O were hard to make in C without SQLite's proprietary test suite. Deterministic Simulation Testing is built in from the start, and Antithesis is used for system-level fault simulation, which has already caught io\_uring partial-write bugs. Early results include a fully asynchronous sqlite3\_step, a WASM-first build that works with Drizzle, fewer tunables, and a point query about 20% faster than tuned SQLite (506ns vs 620ns).

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Formal methods](https://swe.quest/tags/formal-methods.md) (Architecture & design)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)

## Prerequisites

- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))

## Keywords

Limbo, SQLite, libSQL, Turso, Antithesis, io\_uring, Deterministic Simulation Testing, Drizzle

## Related posts

- [An adventure in writing compatible systems](https://swe.quest/articles/an-adventure-in-writing-compatible-systems-f48d37f87fc6e365.md): Turso · 2025-08-28 · Medium · 4 min read · SQLite, Storage engines, Formal methods, Debugging, Rust
  Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.
- [Turso v0.7.0](https://swe.quest/articles/turso-v0-7-0-8d3ff93b34352c14.md): Turso · 2026-07-13 · Hard · 10 min read · SQLite, Storage engines, Consistency models, Memory management, Rust
  Turso 0.7 drops the beta label and focuses on performance and robustness for embedded, multi-tenant use: the core no longer blocks on I/O, yields CPU via a new StepResult::Yield, moves to fallible allocation so OOM surfaces as an error, and treats the page cache as a soft limit like SQLite.
- [How we used Quint to find over 10 bugs in SQLite while hardening Turso](https://swe.quest/articles/how-we-used-quint-to-find-over-10-bugs-in-sqlite-while-hardening-turso-43686794db9fa980.md): Turso · 2026-05-18 · Medium · 5 min read · Formal methods, SQLite, Testing, Databases
  Modeling individual SQLite C API contracts in Quint, generating small traces, and replaying them as C programs against real SQLite uncovered more than 10 SQLite bugs while also validating Turso's compatible C API.
- [Turso Sync: a much, much, much better way to sync](https://swe.quest/articles/turso-sync-a-much-much-much-better-way-to-sync-f7b69ab545fa6e56.md): Turso · 2026-04-24 · Medium · 8 min read · SQLite, Local-first & sync, Replication, Performance engineering
  Turso, a Rust rewrite of SQLite, replaces libSQL's Embedded Replicas with a sync model built on change data capture, shipping logical changes instead of physical pages and splitting sync into separate push() and pull() operations.
- [How Turso made connections to SQLite databases 575x faster](https://swe.quest/articles/how-turso-made-connections-to-sqlite-databases-575x-faster-271f1e3891c5cf67.md): Turso · 2025-07-29 · Medium · 4 min read · SQLite, Performance engineering, Rust, Concurrency
  SQLite re-reads and parses the sqlite\_schema table on every new connection, so opening a connection to a database with 10,000 tables takes about 23ms.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
