Dump manager for KnexJS. Making it easy to migrate databases agnostically using NodeJS.
This is meant to be used as a global module:
$ npm install -g knexjs-dump-man
In a folder containing a knexfile.js
run the following:
$ knexdm --dump mydump.json --tables first_table,second_table,[...]
In a folder containing a knexfile.js
run the following:
$ knexdm --load mydump.json
Currently, this package is unable to export or assume table schemas.
In order to be able to load a dump you need to have your tables already created with their respective schemas in place.
Be sure to check out the tests provided for loading a dump (spec/load-spec.js
) for further details.
Before openning an issue, please be sure to checkout the Field Notes for common pitfalls you may encounter in using this tool.
- Add a way to dump typed table schemas
- Add a way to load typed table schemas
- Implement better error catching