# Trash Panda DB - A Pure Crystal embedded SQL database with Raft replication and crystal-db compatibility

**URL:** <https://forum.crystal-lang.org/t/trash-panda-db-a-pure-crystal-embedded-sql-database-with-raft-replication-and-crystal-db-compatibility/9042>\
**Category:** News\
**Tags:** announces\
**Created:** [July 4, 2026, 11:50pm UTC](https://forum.crystal-lang.org/t/trash-panda-db-a-pure-crystal-embedded-sql-database-with-raft-replication-and-crystal-db-compatibility/9042 "2026-07-04T23:50:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weirdbricks](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/weirdbricks/32/1741_2.png) [@weirdbricks](https://forum.crystal-lang.org/u/weirdbricks)\
**Post date:** [July 4, 2026, 11:50pm UTC](https://forum.crystal-lang.org/t/trash-panda-db-a-pure-crystal-embedded-sql-database-with-raft-replication-and-crystal-db-compatibility/9042/1 "2026-07-04T23:50:55Z")

</div>

Hi everyone!

I wanted to see how far Claude could take me and I had it write an embedded SQL database with Raft replication and crystal-db compatibility - it’s entirely written in Crystal with no external dependencies. I also used other models through Claude Code such as GLM and Deepseek V4 Flash.

I’m currently using this for my project, Dirless, without issues.

I would love any feedback - check it out here: [GitHub - dirless/trash-panda-db: Pure Crystal embedded SQL database with Raft replication and crystal-db compatibility. No C bindings. · GitHub](https://github.com/dirless/trash-panda-db)

Thanks!

---

<div class="post-metadata">

**Author:** ![dengolius](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/dengolius/32/1920_2.png) [@dengolius](https://forum.crystal-lang.org/u/dengolius)\
**Post date:** [July 9, 2026, 7:15am UTC](https://forum.crystal-lang.org/t/trash-panda-db-a-pure-crystal-embedded-sql-database-with-raft-replication-and-crystal-db-compatibility/9042/2 "2026-07-09T07:15:18Z")

</div>

**Crash recovery** : WAL is replayed on open. A clean checkpoint removes the WAL file.

whelp… it sounds like postgres, no?

---

<div class="post-metadata">

**Author:** ![pfischer](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/pfischer/32/330_2.png) [@pfischer](https://forum.crystal-lang.org/u/pfischer)\
**Post date:** [July 9, 2026, 2:27pm UTC](https://forum.crystal-lang.org/t/trash-panda-db-a-pure-crystal-embedded-sql-database-with-raft-replication-and-crystal-db-compatibility/9042/3 "2026-07-09T14:27:06Z")

</div>

WAL is a general concept (also in SQLite and others).
