Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS ...
Show HN @show
Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS github.com · 3 points · 0 comments · HN thread
TL;DR db-branch is a Beta, self-hosted, Apache-2.0 tool that creates copy-on-write database branches of MySQL and PostgreSQL databases using ZFS clones, aimed at AI agent sandboxes, per-pull-request databases and migration testing. The project claims branches in about 0.5 s (PostgreSQL) and 3 s (MySQL) with 0 bytes copied at creation on its own 3-node test cluster. The Hacker News submission has 3 points and no comments yet.
- Creates a branch as a ZFS clone of a base snapshot, so nothing is copied at creation; each branch runs its own database server on its own port.
- Supports MySQL and PostgreSQL with several engine versions installed side by side; per-branch version upgrades save a checkpoint first and roll back on failure.
- Offers branch checkpoint, restore and reset, plus --ttl for automatic deletion, for use in CI and AI agent workflows.
- Includes a CLI, REST API, web console and an MCP server so LLM agents can create and query their own branches.
- Core is Apache-2.0; auth/SSO, audit, history, diff and FSx storage are closed-source paid modules enabled by a license key, and the history module runs free for 30 days in the evaluation VM.
- Requires Ubuntu 24.04 or 26.04 with a ZFS pool; there is no hosted version, and a Multipass VM setup is offered for trying it on Mac or Windows.
Discussion No comments have been posted yet, so the thread contains no discussion and no reactions from readers.