Build a Database in C
#algorithms#c#concurrency#databases#data-structures#systems
Learn how SQLite works from the ground up. Build a single-table database with real file persistence, crash-safe atomic saves, indexing, transactions with rollback, thread-safe concurrent access, and a SQL-like command parser. Along the way you'll learn why databases are built the way they are: why fsync exists, why writes are journaled, why B-Trees beat hash tables on disk, and why every mutation path needs a lock.