A mongo-like interface for sql generation, postgres-style  npm
install mongo-sql 2 downloads in the last day 14 downloads in
the last week 110 downloads in the last month   Put value and
semantic meaning back into your queries by writing your SQL as
JSON:   var builder = require('mongo-sql');  var usersQuery = {
type: 'select' , table: 'users' , where: { $or: { id: 5, name:
'Bob' } }  var result = builder.sql(usersQuery);  result.values
// Array of values result.toString() // Sql string value
select "users".* from "users" where "" = $1 or "users"."name" =
$2  Want to play around with the syntax? Check out the
playground, documentation, and examples.    npm install mongo-
sql   jam install mongo-sql   There are plenty of SQL building
libraries that use a very imperative style of building SQL
queries. The approach is linear and typically requires a bunch
of function chaining. It removes your ability to use the query
as a value and requires the library consumer to build their
queries in large clumps or al