Is a “batteries included” SQL query builder for Postgres, MSSQL, MySQL, MariaDB, SQLite3, and Oracle designed to be flexible, portable, and fun to use. It features both traditional node style callbacks as well as a promise interface for cleaner async flow control, a stream interface, full featured query and schema builders, transaction support (with savepoints), connection pooling and standardized responses between different query clients and dialects.
http://knexjs.org/
Using Higher-Order Functions to Build Queries in Knex.js https://spin.atomicobject.com/2017/07/03/knex-queries/
origin - http://www.pipiscrew.com/2017/07/knex-js/ knex-js