# A SQLite-compatible database written in Rust

**URL:** <https://users.rust-lang.org/t/a-sqlite-compatible-database-written-in-rust/142951>\
**Category:** code review\
**Created:** [October 11, 2026, 12:26am UTC](https://users.rust-lang.org/t/a-sqlite-compatible-database-written-in-rust/142951 "2026-10-11T00:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamza](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@hamza](https://users.rust-lang.org/u/hamza)\
**Post date:** [October 11, 2026, 12:26am UTC](https://users.rust-lang.org/t/a-sqlite-compatible-database-written-in-rust/142951/1 "2026-10-11T00:26:44Z")

</div>

I’ve been working full-time on ⁠[inkdb](https://github.com/hamzader1/inkdb) for the past three months.

I started this project because I wanted to understand how databases actually work under the hood. I decided to try building something compatible with SQLite, which turned out to be a lot harder than I expected, especially the B+Tree storage engine. I ended up rewriting it twice before I got it working properly.

I’ve been testing it against SQLite’s `PRAGMA integrity_check`. Most things work, but there’s still one annoying 4-byte leak when inserting a cell into the freelist that I haven’t figured out yet.

It currently supports only a small subset of SQLite, but I’ve learned a ton building it.

I’d love some feedback on the code if you have time to take a look. Thank you!

> **[GitHub - hamzader1/inkdb: A Rust database engine, Inspired by SQLite &...](https://github.com/hamzader1/inkdb)**
>
> A Rust database engine, Inspired by SQLite & Postgres
