0.2.6 • Published 6 years ago

knex-preview v0.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Knex Preview

Small CLI utility that converts the knex query/schema builder method calls in migrations to standard sql. Has an interactive CLI that allows you to select which migration, specific the up or down migration, and whether or not to add a savepoint to the output. Transactions are added based on the knex settings inside of that project.

Install

npm i --save-dev knex-preview

or

yarn add --dev knex-preview

Usage

npx knex-preview

note: after running, start typing to get autocomplete results of your migration names!

Help

See knex-preview --help for more details.