Overview
db-branch is a self-hosted database sandbox tool for developers testing migrations, teams provisioning pull-request databases, and AI agents that need isolated places to run queries. Its official repository describes MySQL and PostgreSQL branches backed by ZFS copy-on-write clones, with each branch running its own database server on its own port.
The documented workflow starts by installing a database runtime and loading a dump into a base. Users then create a branch, retrieve its connection URL, perform their tests, and restore, reset or delete it afterward. CLI, REST API, web console and MCP access support both manual work and automation. This is disposable test infrastructure rather than Git-style database collaboration: separate branches cannot merge or rebase their divergent writes into a base or another branch.
Deployment requires Ubuntu 24.04 LTS or 26.04 LTS and a ZFS pool. Mac and Windows evaluation uses an Ubuntu VM; the supplied file-backed evaluation pool is not intended for real data. Isolation also does not anonymize records: anyone able to query a branch can read its contents, so the documentation recommends loading masked data into the base. The browser demo creates no real resources.
Capabilities
Copy-on-write database branches
A loaded base supplies the snapshot for independent test databases, supporting migration experiments and per-PR environments. Official source
Reset and automatic cleanup
Reset discards branch changes, while a TTL handles expiry for temporary CI or agent sandboxes. Official source
Branch-specific version upgrades
Teams can test an engine upgrade without moving the base or neighboring branches. The documented process saves a checkpoint and rolls back failed upgrades. Official source
Shared interfaces for people and agents
The MCP server provides agent access alongside conventional developer interfaces, all using the same API. Official source
What users say
No independent user feedback found
Supplied official repository content and supplied feedback candidates only; fetched feedback text was available only for the unrelated employer-review page.
No independent user feedback about this specific product was found.
The supplied feedback material contains an unrelated bank-employer review page and a playgroup-post URL, not hands-on accounts of db-branch. This assessment is limited to the supplied evidence; it does not establish that reviews are absent elsewhere. The capabilities above therefore reflect project documentation, not independently verified user outcomes.
Sources
- db-branch/db-branch — official GitHub repositoryOfficial documentation
Sources checked .