A batteries-included, multi-dialect (PostgreSQL, MySQL, CockroachDB, MSSQL, SQLite3, Oracle (including Oracle Wallet Authentication)) query builder for Node.js.
npm install knex --save
npm install -g knex
if npm install -g knex fails, use sudo npm install -g knex instead.
Usage
Knex init // create a config file named knexfile.js
Knex migrate:make users // creat a migration file with timestamp
Knex migrate:latest // run the latest migration file