MasterSQL
A dynamic SQL query builder.
setup
npm
npm i master-sql
ES module
;
Node
let MasterSQL = ;
browser
The module is globally available as MasterSQL
.
usage
let sql = ;
helpers
.buildWhereCondition(value)
Builds a where condition.
argument | description |
---|---|
value |
A value to build the where condition from. |
Returns a string as the where condition.
let s = sql;// => '(A OR B) AND C'