A small C++ database built step by step to explore parsing, paging, persistence, cursors, and B-trees.
src/main.cppruns the REPL loop.src/repl.cpphandles meta commands and statement parsing.src/database.cpphandles execution, rows, pages, persistence, and cursors.src/btree.cppcontains the B-tree node, search, and insertion logic.src/mydb.hppcontains shared types, constants, and function declarations.
g++ -std=c++17 -Wall -Wextra -Wpedantic src/main.cpp src/repl.cpp src/database.cpp src/btree.cpp -o mydb.exe./mydb.exe