Designing a single-file mmap-backed read-only hashed multi-table database

For some time I wanted to design a CDB (Constant DataBase) alternative that fits better my use-case for Kawipiko (high performance read-only static HTTP server).