Serverless Postgres · GitHub and GitLab

A database per pull request.

Every PR gets its own copy-on-write Postgres branch in about a second: seeded from production, personal data masked, deleted on merge.

Hobby is free: 1 project, 10 branches.

01 · Branches

One trunk. A branch for every pull request.

Production stays the trunk. When a pull request opens, Branchline cuts a copy-on-write branch of it in about a second, so the change runs against data shaped like the real thing instead of a fixture file.

  • Created when the pull request opens
  • Linked in the pull request, beside your checks
  • Deleted when the pull request merges

02 · Seed data

Production rows. Nobody’s personal details.

Each branch is seeded from production with personal data masked. Rows keep their ids, plans and dates, so joins and edge cases behave the way they do in production, without the names and addresses in them.

Example rows. Values are illustrative; the masking format shown is a placeholder.

Schema diff main ← pr-482
  1. table public.invoices
  2. 1 id bigint not null
  3. 2 customer_id bigint not null → customers.id
  4. 3 amount_cents bigint not null
  5. 4+ currency char(3) not null default 'USD'
  6. 5 issued_at timestamptz not null
  7. 6+ index invoices_currency_idx (currency)
  8. table public.customers
  9. 1 id bigint not null
  10. 2 email text not null masked
  11. 3+ default_currency char(3) null

03 · Schema diff

Read the schema change before you merge it.

Branchline compares a branch’s schema with the branch it came from and shows the difference before merge: added columns, new indexes, dropped tables. Reviewers see what the migration does to the database, not only what it does to the code.

  • Diffs between any two branches
  • Shown before the pull request merges
  • Connect with psql to check it yourself

04 · Lifecycle

It lives as long as the pull request.

Works with

  1. Opened

    Pull request opened against main.

  2. About 1 s

    A copy-on-write branch is cut from production.

  3. Seeded

    Personal data is masked on the way in.

  4. Linked

    The branch shows up as a link in the pull request.

  5. Diffed

    The schema diff is shown before merge.

  6. Merged

    The branch is deleted. Nothing to clean up.

Free to start. Storage when it grows.

Prices in US dollars.

Hobby

Free

  • 1 project
  • 10 branches, one per open pull request
  • GitHub and GitLab
Start free

Pro

$25a month + storage

$25 + 50 GB × $0.30 = $40.00 a month

  • Storage at $0.30 per GB-month
  • Placeholder Project and branch limits to be confirmed
Choose Pro

Team

$99a month

  • Single sign-on (SSO)
  • Audit logs
  • Placeholder Storage and limits to be confirmed
Choose Team

Open a pull request. The database comes with it.