mroczect/monumentum ? reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight embedded database engine in Rust, with a clean split between the core contracts and the actual storage implementation. I want one crate for the shared data types, errors, schema rules, and traits, and another crate that actually stores data on disk and in memory.
The database should support basic tables, rows, simple typed values like text, integers, floats, booleans, blobs, and nulls, plus schema checks like primary keys, uniqueness, and not null rules. It should also handle page based storage, a buffer cache, an index for fast lookup and range scans, and write ahead logging so it can recover after a crash. Please keep it safe and strict, with validation everywhere and no unsafe code. If anything needs current Rust or crate docs, look them up online first. Make it feel like a real foundation for a future database, not a full SQL database.
Are you gonna build this?
make sure you review the code using coderabbit