Spin up fresh database instances instantly when you need them. Zero‑copy ZFS snapshots, deterministic seeding, and a simple CLI + HTTP API for any workflow.
Create isolated database branches for every pull request. Test changes safely without affecting other developers or shared environments.
Try schema changes, test migrations, or prototype features without risking production data or breaking shared development databases.
Generate consistent test datasets, run integration tests in isolation, or create demo environments with predictable data states.
Instant database cloning with no storage overhead. Create branches in milliseconds, not minutes.
Self‑contained deployment using standard containers. Works with your existing Docker infrastructure.
Postgres and MySQL compatibility. Bring your own images, seeds, and migration scripts.
Reproducible data states across environments. Same seed scripts produce identical database content every time.
Script everything with predictable commands and JSON endpoints. Integrate with any workflow or CI system.
Fully sandboxed database instances with independent networking and storage. No cross‑contamination between branches.
Point StagDB at your base database and seed scripts.
Create a zero‑copy ZFS snapshot from the base.
Spin up per‑PR clones with deterministic seeding.
Return to clean state anytime — instantly.
# Snapshot the base and create a feature branch
stagdb snapshot create \
--db postgres://user:pass@localhost:5432/app \
--name base
stagdb branch create \
--from base \
--name feature-123
# Seed with initial data
stagdb seed apply \
--branch feature-123 \
--seed seeds/init.sql
# Reset when done
stagdb reset --branch feature-123
# Create branch via HTTP API
curl -X POST https://api.stagdb.com/branches \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"from": "base",
"name": "feature-123"
}'
# Seed with a dataset
curl -X POST https://api.stagdb.com/seeds/apply \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"branch": "feature-123",
"seed": "seeds/init.sql"
}'
Self‑host on your infra with full control. No lock‑in, no limits.