Animated Trace Scrubber · Traces A–D

Watch SQL move through the engine. One step at a time.

Press Play or use Left/Right arrows to see how CREATE TABLE, INSERT, SELECT, and WAL recovery work inside mydb.db.

Step 1 / 4
Speed
db> CREATE TABLE users (id INT, name TEXT);
LEXER + PARSER lexer.rs · parser.rs EXECUTOR main.rs · storage.rs WAL (mydb.wal) wal.rs · lib.rs BUFFER POOL (1024 × 4KB) buffer.rs (pin / dirty / flush) PAGE 0: CATALOG RDBCAT v2 catalog.rs PAGE 1: TABLE HEAP slot 0: (1, 'alice') table_heap.rs PAGE 2: DISK B-TREE row_id 1 -> (1,0) disk_btree.rs
Step title

Buffer Pool (RAM)
WAL (mydb.wal)
Disk (mydb.db)
Show Rust movement & source file
Data flow:
Source file:

Now play with the 4KB pages, B-Tree & WAL directly.

Open Interactive Storage Lab Open Simulated Playground