Use SQL Query Builder Knex.js with Node.js and Express.js

TLDRKnex.js is a thin abstraction that sits on top of the database driver for relational databases. It supports transactions, connection pooling, streaming queries, a thorough test suite, and the ability to run in the browser. Knex can be used in both Node.Js and the browser, limited only by WebSQL’s constraints.

5m read time From medium.com
Post cover image
Table of contents
Step 1. Install Knex.js and migration CLIStep 2. Database configurationStep 3. Migrate using migration CLIStep 4. Define tablesStep 5. Update the database using migration CLIStep 6. Application configuration and session store
2 Comments

Sort: