cstack/db_tutorial ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple database in C from scratch, kind of like a tiny SQLite clone.

I want it to feel like a real learning project, with a command line program where I can create a database file, add rows, and read them back later. It should store data on disk, not just in memory, and it should be small enough that the code is easy to follow and extend.

Please set it up so I can run it locally and work through it step by step, with clear code that shows how the pieces fit together. If you need to check current docs or examples online, go ahead.

I’m mainly looking for a clean, working starter version that demonstrates how a basic database works internally, with room to grow into more features later.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab