MINIDB
MiniDB is a lightweight, fully functional SQL database engine written entirely in pure Python — a B+ tree storage layer, write-ahead logging, ACID transactions and a hand-written recursive-descent parser, with zero third-party dependencies.
Every engineer uses a database; almost none have seen one from the inside. Wrapping SQLite teaches nothing, so I rebuilt the entire stack — from the lexical analysis of SQL queries to the physical persistence of bytes on disk.
A clean architecture mirroring industrial RDBMS design: lexer, parser, AST, executor — running over a B+ tree storage layer. WAL provides durability, transactions provide isolation, and the whole engine stays readable at roughly two thousand lines.
Zero third-party dependencies, an interactive REPL, a full test suite and docs on GitHub Pages. It has become a reference other learners use to understand how relational databases actually work under the hood.