@fahimadib01/db-snap
v0.1.5
Published
Installable db-snap CLI wrapper
Readme
@fahimadib01/db-snap
db-snap is a local Postgres snapshot/restore CLI + TUI for repeatable test data setup.
Install
npm i -g @fahimadib01/db-snapRequirements
- macOS or Linux
pg_dumpandpg_restoreavailable in yourPATH
Quick start
Launch the interactive app:
db-snap tuiFrom the TUI you can:
- create/edit DB profiles
- create/import/export snapshots
- plan and run restores
- manage safety policy and rules
CLI usage
db-snap version
db-snap profile list
db-snap snapshot list --profile <name>
db-snap restore --profile <name> --snapshot <snapshot-id> --dry-runUpdate
npm update -g @fahimadib01/db-snapData location
db-snap stores local app state under:
~/.db-snap