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.
ON DELETE CASCADE
on every FK constraints otherwise we can't do clean restore (hopefully this will change in the future).```bash git clone git@github.com:sendyhalim/jab.git
make install ```
Dynamically linked binaries are only available for macos and linux. Go here.
```bash
jab project create awesomestuff --database-uri="username:password@localhost:5433"
jab project commit awesomestuff --message "my first commit"
jab project log awesomestuff
jab project restore awesomestuff
jab project restore awesomestuff [optional-hash]
jab project list ```