Jab
jab is a database state management tool, think of it as git but for database. You can commit your current db state and checkout to your previous db state.
📠Notes
- Currently only supports postgres.
- This project only works if you have
ON DELETE CASCADEon every FK constraints otherwise we can't do clean restore (hopefully this will change in the future).
🔩 Installation
Manual (requires rust)
Download
Dynamically linked binaries are only available for macos and linux. Go here.
🎮 Usage
# First create project.
# Currently only supports postgres.
# ------------------------------------------
# Start commiting your db
# ------------------------------------------
# See log
# ------------------------------------------
# Restore your db to the latest commit
# ------------------------------------------
# Restore your db to a specific commit
# ------------------------------------------
# List of available projects
# ------------------------------------------