Code a database in 45 steps

This series of test-driven small coding puzzles lets you code a database from scratch (no dependencies). Through this project, you can:

Project content

The project implements several key parts:

The scope is wide, but it is split into many tiny steps. Each step is simple, with at most a few dozen lines of code. You will see how complex ideas grow from simple ones. In this sense, you invent a database from zero.

Prerequisites

Go language

Starter code and tests

Each step is in a separate directory. For step 1, enter db_project/0001 and run the tests:

go test .

The build will fail. You need to write the missing functions. If you have problems:

Other projects like this

This is first Trial of Code project, I plan to release more puzzles that lead to complex, advanced software. Check my website and subscribe for updates:

https://trialofcode.org