Skip to content

Instantly share code, notes, and snippets.

@uyu423
Last active July 18, 2016 17:37
Show Gist options
  • Save uyu423/e4266cdf17841e2b4e1a8b4f915a1aae to your computer and use it in GitHub Desktop.
Save uyu423/e4266cdf17841e2b4e1a8b4f915a1aae to your computer and use it in GitHub Desktop.
/* node-qsb npm Module Example (Select Query Default) */
var qsb = require('node-qsb');
var qs = new qsb().select('tableName')
.where('idx', '>', '10')
.build();
qs.printString();
//Standard Output : SELECT * FROM `tableName` WHERE `idx` > '10';
console.log(qs.returnString());
//String Object : SELECT * FROM `tableName` WHERE `idx` > '10';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment