Crates.io | jab |
lib.rs | jab |
version | 0.0.1 |
source | src |
created_at | 2020-03-19 18:05:16.769329 |
updated_at | 2020-03-19 18:05:16.769329 |
description | 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. |
homepage | https://github.com/sendyhalim/jab |
repository | https://github.com/sendyhalim/jab |
max_upload_size | |
id | 220526 |
size | 74,882 |
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).git clone git@github.com:sendyhalim/jab.git
make install
Dynamically linked binaries are only available for macos and linux. Go here.
# First create project.
# Currently only supports postgres.
# ------------------------------------------
jab project create awesomestuff --database-uri="username:password@localhost:5433"
# Start commiting your db
# ------------------------------------------
jab project commit awesomestuff --message "my first commit"
# See log
# ------------------------------------------
jab project log awesomestuff
# Restore your db to the latest commit
# ------------------------------------------
jab project restore awesomestuff
# Restore your db to a specific commit
# ------------------------------------------
jab project restore awesomestuff [optional-hash]
# List of available projects
# ------------------------------------------
jab project list