Skip to content

jeanlescure/knexjs-dump-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knexjs Dump Manager (knexdm)

Knexjs Dump Manager (knexdm) Logo

Dump manager for KnexJS. Making it easy to migrate databases agnostically using NodeJS.

Installing

This is meant to be used as a global module:

$ npm install -g knexjs-dump-man

Dumping a database

In a folder containing a knexfile.js run the following:

$ knexdm --dump mydump.json --tables first_table,second_table,[...]

Loading a dump file into database

In a folder containing a knexfile.js run the following:

$ knexdm --load mydump.json

Caveats

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.

Issues & Bug Tracking

Before openning an issue, please be sure to checkout the Field Notes for common pitfalls you may encounter in using this tool.

TODO

  • Add a way to dump typed table schemas
  • Add a way to load typed table schemas
  • Implement better error catching

About

Dump manager for KnexJS. Making it easy to migrate databases agnostically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published