sqlquerybuilder
Advanced tools
Comparing version 0.0.8 to 0.0.9
var uuid = require('node-uuid'), pluralizer = require('pluralizer'); | ||
var options = {}; | ||
exports.queryBuilder = function () { | ||
return new QueryBuilder(); | ||
}; | ||
exports.init = function(opt) { | ||
options = opt || {}; | ||
}; | ||
function QueryBuilder() { | ||
@@ -767,5 +777,1 @@ var self = this; | ||
} | ||
module.exports = function () { | ||
return new QueryBuilder(); | ||
}; |
{ | ||
"name": "sqlquerybuilder", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/sqlQueryBuilder", |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("chaining queries should work", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'), | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder, | ||
uuid = require('node-uuid'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling DISTINCT, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling FROM, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling GROUP BY, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling INSERT INTO, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling JOIN, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling JOINSUBQUERY, valid sql should be produced when", function(){ |
/** | ||
* These tests are verifying functionality for the Aggregate Service and the Value Object Service | ||
*/ | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -6,0 +6,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling ORDER BY, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling PAGE, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("private function", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when calling processListRequest, valid sql should be produced when", function(){ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe("when replicating real queries from fieldbook", function(){ |
/** | ||
* Created by calebbriggs on 8/25/2014. | ||
*/ | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'), | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder, | ||
uuid = require('node-uuid'); | ||
@@ -6,0 +6,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'), | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder, | ||
uuid = require('node-uuid'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder'); | ||
var sqlBuilder = require('../../lib/sqlQueryBuilder').queryBuilder; | ||
@@ -8,0 +8,0 @@ describe('When calling WHERE, valid sql should be produced when', function(){ |
144919
3152