← All projects

pg_branch

by @01walid

14

[WIP] Branch your development postgres database like you do in git

About this project

pgbranch :elephant: Branch your development Postgres DB like you do in Git! 🚀 Fast DB copying, no pgdump / pgrestore (by default)! :computer: Rust-based single binary, supports Windows, Linux & Mac. :openfilefolder: Auto-discovers your Git setup & branches. Warning: This is a work in progress. Why? Ever wanted to test a migration in isolation? then revert back to your main development database quickly? Or test a pull request or a feature-branch without the need to give up your development database's data or schema. pgbranch goal is to help provide quick copies of your current development database, then help you manage those copies (drop, rename, cleanup, ..etc). This is especially usefull when provisioning "preview environments" that are a copy of staging/prod, e.g. a database per Vercel PR preview. Demo TODO: More tests Git hooks / Husky support Pre-built binaries for Mac/M1, Linux & Windows. npm package switch --no-rename mode pgbranch run command> for the no-rename mode. VCS agnostic?

From the project README on GitHub

Stars
14
Forks
1
License
Apache-2.0
Last push
10 Sept 2022

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/pg-branch.svg)](https://www.madeinalgeria.dev/projects/pg-branch)

Related projects