From d554372912d58b291d6d5750ec9b98196df659fb Mon Sep 17 00:00:00 2001
From: "Timothy J. Warren"
Date: Tue, 4 Nov 2014 12:34:26 -0500
Subject: [PATCH] Update docs
---
docs/adapter.js.html | 2 +-
docs/driver.js.html | 2 +-
docs/helpers.js.html | 2 +-
docs/index.html | 3 +-
docs/module-adapter.html | 2 +-
docs/module-driver.html | 2 +-
docs/module-helpers.html | 2 +-
docs/module-node-query.html | 2 +-
docs/module-query-builder.html | 68 +++++++++++++++++-----------------
docs/module-query-parser.html | 2 +-
docs/modules.list.html | 2 +-
docs/node-query.js.html | 2 +-
docs/query-builder.js.html | 18 +++++----
docs/query-parser.js.html | 2 +-
14 files changed, 57 insertions(+), 54 deletions(-)
diff --git a/docs/adapter.js.html b/docs/adapter.js.html
index a2502ff..e98bf2f 100644
--- a/docs/adapter.js.html
+++ b/docs/adapter.js.html
@@ -110,7 +110,7 @@ module.exports = {
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/driver.js.html b/docs/driver.js.html
index d54d223..ca5d896 100644
--- a/docs/driver.js.html
+++ b/docs/driver.js.html
@@ -252,7 +252,7 @@ module.exports = d;
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/helpers.js.html b/docs/helpers.js.html
index 049e737..997432e 100644
--- a/docs/helpers.js.html
+++ b/docs/helpers.js.html
@@ -168,7 +168,7 @@ module.exports = h;
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 9617653..46ca9b0 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -100,6 +100,7 @@
pg
dblite
sqlite3
+node-firebird
Installation
npm install ci-node-query
Basic use
var nodeQuery = require('ci-node-query');
@@ -147,7 +148,7 @@ query.select('foo')
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-adapter.html b/docs/module-adapter.html
index f56da2d..0621a47 100644
--- a/docs/module-adapter.html
+++ b/docs/module-adapter.html
@@ -354,7 +354,7 @@
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-driver.html b/docs/module-driver.html
index 12aaeee..af5b957 100644
--- a/docs/module-driver.html
+++ b/docs/module-driver.html
@@ -170,7 +170,7 @@
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-helpers.html b/docs/module-helpers.html
index 1227287..cecda21 100644
--- a/docs/module-helpers.html
+++ b/docs/module-helpers.html
@@ -686,7 +686,7 @@ function name, eg isNumber
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-node-query.html b/docs/module-node-query.html
index 974c509..36ea837 100644
--- a/docs/module-node-query.html
+++ b/docs/module-node-query.html
@@ -358,7 +358,7 @@
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-query-builder.html b/docs/module-query-builder.html
index 8959726..456ac08 100644
--- a/docs/module-query-builder.html
+++ b/docs/module-query-builder.html
@@ -383,7 +383,7 @@
@@ -519,7 +519,7 @@
@@ -764,7 +764,7 @@
@@ -955,7 +955,7 @@
@@ -1154,7 +1154,7 @@
@@ -1355,7 +1355,7 @@
@@ -1546,7 +1546,7 @@
@@ -1641,7 +1641,7 @@
@@ -1788,7 +1788,7 @@
@@ -1875,7 +1875,7 @@
@@ -1962,7 +1962,7 @@
@@ -2147,7 +2147,7 @@
@@ -2357,7 +2357,7 @@
@@ -2539,7 +2539,7 @@
@@ -2771,7 +2771,7 @@
@@ -2997,7 +2997,7 @@
@@ -3176,7 +3176,7 @@
@@ -3402,7 +3402,7 @@
@@ -3593,7 +3593,7 @@
@@ -3681,7 +3681,7 @@ prefixed with 'OR'
@@ -3866,7 +3866,7 @@ prefixed with 'OR'
@@ -4092,7 +4092,7 @@ prefixed with 'OR'
@@ -4180,7 +4180,7 @@ prefixed with 'OR NOT'
@@ -4406,7 +4406,7 @@ prefixed with 'OR NOT'
@@ -4591,7 +4591,7 @@ prefixed with 'OR NOT'
@@ -4750,7 +4750,7 @@ prefixed with 'OR NOT'
@@ -4909,7 +4909,7 @@ prefixed with 'OR NOT'
@@ -5048,7 +5048,7 @@ prefixed with 'OR NOT'
@@ -5230,7 +5230,7 @@ prefixed with 'OR NOT'
@@ -5440,7 +5440,7 @@ prefixed with 'OR NOT'
@@ -5625,7 +5625,7 @@ prefixed with 'OR NOT'
@@ -5784,7 +5784,7 @@ prefixed with 'OR NOT'
@@ -5943,7 +5943,7 @@ prefixed with 'OR NOT'
@@ -6007,7 +6007,7 @@ prefixed with 'OR NOT'
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/module-query-parser.html b/docs/module-query-parser.html
index d4b1af1..c25bce7 100644
--- a/docs/module-query-parser.html
+++ b/docs/module-query-parser.html
@@ -466,7 +466,7 @@
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/modules.list.html b/docs/modules.list.html
index dc58435..9d83e69 100644
--- a/docs/modules.list.html
+++ b/docs/modules.list.html
@@ -158,7 +158,7 @@
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/node-query.js.html b/docs/node-query.js.html
index 2abbd8b..efc9a1e 100644
--- a/docs/node-query.js.html
+++ b/docs/node-query.js.html
@@ -145,7 +145,7 @@ module.exports = nodeQuery;
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/query-builder.js.html b/docs/query-builder.js.html
index 0dad13b..afa561c 100644
--- a/docs/query-builder.js.html
+++ b/docs/query-builder.js.html
@@ -359,6 +359,7 @@ var QueryBuilder = function(driver, adapter) {
//console.log(state.queryMap);
//console.log(sql);
//console.log(vals);
+//console.log(callback);
//console.log('------------------------');
// Reset the state so another query can be built
@@ -843,13 +844,13 @@ var QueryBuilder = function(driver, adapter) {
*/
this.insert = function(/* table, data, callback */) {
var args = getArgs('table:string, [data]:object, callback:function', arguments);
- args.table = driver.quoteTable(args.table);
+
if (args.data) {
this.set(args.data);
}
// Run the query
- _p.run('insert', args.table, args.callback);
+ _p.run('insert', driver.quoteTable(args.table), args.callback);
};
/**
@@ -879,12 +880,13 @@ var QueryBuilder = function(driver, adapter) {
*/
this.update = function(/*table, data, callback*/) {
var args = getArgs('table:string, [data]:object, callback:function', arguments);
+
if (args.data) {
this.set(args.data);
}
// Run the query
- _p.run('update', args.table, args.callback);
+ _p.run('update', driver.quoteTable(args.table), args.callback);
};
/**
@@ -904,7 +906,7 @@ var QueryBuilder = function(driver, adapter) {
}
// Run the query
- _p.run('delete', args.table, args.callback);
+ _p.run('delete', driver.quoteTable(args.table), args.callback);
};
// ------------------------------------------------------------------------
@@ -936,7 +938,7 @@ var QueryBuilder = function(driver, adapter) {
* @return {String}
*/
this.getCompiledInsert = function(table, reset) {
- return _p.getCompile('insert', table, reset);
+ return _p.getCompile('insert', driver.quoteTable(table), reset);
};
/**
@@ -947,7 +949,7 @@ var QueryBuilder = function(driver, adapter) {
* @return {String}
*/
this.getCompiledUpdate = function(table, reset) {
- return _p.getCompile('update', table, reset);
+ return _p.getCompile('update', driver.quoteTable(table), reset);
};
/**
@@ -958,7 +960,7 @@ var QueryBuilder = function(driver, adapter) {
* @return {String}
*/
this.getCompiledDelete = function(table, reset) {
- return _p.getCompile('delete', table, reset);
+ return _p.getCompile('delete', driver.quoteTable(table), reset);
};
return this;
@@ -985,7 +987,7 @@ module.exports = QueryBuilder;
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.
diff --git a/docs/query-parser.js.html b/docs/query-parser.js.html
index 04bd481..f645f67 100644
--- a/docs/query-parser.js.html
+++ b/docs/query-parser.js.html
@@ -184,7 +184,7 @@ module.exports = QueryParser;
Documentation generated by JSDoc 3.3.0-alpha9
- on Mon Nov 3rd 2014 using the DocStrap template.