knex js tutorial code example
Example 1: knex migration
// best tutorial knex migration
https://www.youtube.com/watch?v=ipAH7lMfq7k
https://www.youtube.com/watch?v=U7GjS3FuSkA
Example 2: is knex built into node js
$ npm install knex --save
# Then add one of the following (adding a --save) flag:
$ npm install pg
$ npm install sqlite3
$ npm install mysql
$ npm install mysql2
$ npm install oracledb
$ npm install mssql
Example 3: knexjs execute all migrations
$ knex migrate:make create_users_table
$ knex migrate:make create_tasks_table