Update docs

This commit is contained in:
Timothy Warren 2014-11-04 12:34:26 -05:00
parent d20769170c
commit d554372912
14 changed files with 57 additions and 54 deletions

View File

@ -110,7 +110,7 @@ module.exports = {
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -252,7 +252,7 @@ module.exports = d;</pre>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -168,7 +168,7 @@ module.exports = h;</pre>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -100,6 +100,7 @@
<li>pg</li> <li>pg</li>
<li>dblite</li> <li>dblite</li>
<li>sqlite3</li> <li>sqlite3</li>
<li>node-firebird</li>
</ul> </ul>
<h3>Installation</h3><pre class="prettyprint source"><code>npm install ci-node-query</code></pre><h3>Basic use</h3><pre class="prettyprint source"><code>var nodeQuery = require('ci-node-query'); <h3>Installation</h3><pre class="prettyprint source"><code>npm install ci-node-query</code></pre><h3>Basic use</h3><pre class="prettyprint source"><code>var nodeQuery = require('ci-node-query');
@ -147,7 +148,7 @@ query.select('foo')
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -354,7 +354,7 @@
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -170,7 +170,7 @@
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -686,7 +686,7 @@ function name, eg isNumber</p>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -358,7 +358,7 @@
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -383,7 +383,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-823">line 823</a> <a href="query-builder.js.html#sunlight-1-line-825">line 825</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -519,7 +519,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-404">line 404</a> <a href="query-builder.js.html#sunlight-1-line-405">line 405</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -764,7 +764,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-746">line 746</a> <a href="query-builder.js.html#sunlight-1-line-747">line 747</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -955,7 +955,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-885">line 885</a> <a href="query-builder.js.html#sunlight-1-line-887">line 887</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1154,7 +1154,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-863">line 863</a> <a href="query-builder.js.html#sunlight-1-line-865">line 865</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1355,7 +1355,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-846">line 846</a> <a href="query-builder.js.html#sunlight-1-line-848">line 848</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1546,7 +1546,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-874">line 874</a> <a href="query-builder.js.html#sunlight-1-line-876">line 876</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1641,7 +1641,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-351">line 351</a> <a href="query-builder.js.html#sunlight-1-line-352">line 352</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1788,7 +1788,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-628">line 628</a> <a href="query-builder.js.html#sunlight-1-line-629">line 629</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1875,7 +1875,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-727">line 727</a> <a href="query-builder.js.html#sunlight-1-line-728">line 728</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -1962,7 +1962,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-691">line 691</a> <a href="query-builder.js.html#sunlight-1-line-692">line 692</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -2147,7 +2147,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-477">line 477</a> <a href="query-builder.js.html#sunlight-1-line-478">line 478</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -2357,7 +2357,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-769">line 769</a> <a href="query-builder.js.html#sunlight-1-line-770">line 770</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -2539,7 +2539,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-789">line 789</a> <a href="query-builder.js.html#sunlight-1-line-790">line 790</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -2771,7 +2771,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-603">line 603</a> <a href="query-builder.js.html#sunlight-1-line-604">line 604</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -2997,7 +2997,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-426">line 426</a> <a href="query-builder.js.html#sunlight-1-line-427">line 427</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -3176,7 +3176,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-679">line 679</a> <a href="query-builder.js.html#sunlight-1-line-680">line 680</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -3402,7 +3402,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-439">line 439</a> <a href="query-builder.js.html#sunlight-1-line-440">line 440</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -3593,7 +3593,7 @@
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-651">line 651</a> <a href="query-builder.js.html#sunlight-1-line-652">line 652</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -3681,7 +3681,7 @@ prefixed with 'OR'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-704">line 704</a> <a href="query-builder.js.html#sunlight-1-line-705">line 705</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -3866,7 +3866,7 @@ prefixed with 'OR'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-491">line 491</a> <a href="query-builder.js.html#sunlight-1-line-492">line 492</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4092,7 +4092,7 @@ prefixed with 'OR'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-452">line 452</a> <a href="query-builder.js.html#sunlight-1-line-453">line 453</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4180,7 +4180,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-716">line 716</a> <a href="query-builder.js.html#sunlight-1-line-717">line 717</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4406,7 +4406,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-465">line 465</a> <a href="query-builder.js.html#sunlight-1-line-466">line 466</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4591,7 +4591,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-517">line 517</a> <a href="query-builder.js.html#sunlight-1-line-518">line 518</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4750,7 +4750,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-541">line 541</a> <a href="query-builder.js.html#sunlight-1-line-542">line 542</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -4909,7 +4909,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-565">line 565</a> <a href="query-builder.js.html#sunlight-1-line-566">line 566</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5048,7 +5048,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-370">line 370</a> <a href="query-builder.js.html#sunlight-1-line-371">line 371</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5230,7 +5230,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-577">line 577</a> <a href="query-builder.js.html#sunlight-1-line-578">line 578</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5440,7 +5440,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-805">line 805</a> <a href="query-builder.js.html#sunlight-1-line-806">line 806</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5625,7 +5625,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-505">line 505</a> <a href="query-builder.js.html#sunlight-1-line-506">line 506</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5784,7 +5784,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-529">line 529</a> <a href="query-builder.js.html#sunlight-1-line-530">line 530</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -5943,7 +5943,7 @@ prefixed with 'OR NOT'</p>
<ul class="dummy"> <ul class="dummy">
<li> <li>
<a href="query-builder.js.html">query-builder.js</a>, <a href="query-builder.js.html">query-builder.js</a>,
<a href="query-builder.js.html#sunlight-1-line-553">line 553</a> <a href="query-builder.js.html#sunlight-1-line-554">line 554</a>
</li> </li>
</ul> </ul>
</dd> </dd>
@ -6007,7 +6007,7 @@ prefixed with 'OR NOT'</p>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -466,7 +466,7 @@
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -158,7 +158,7 @@
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -145,7 +145,7 @@ module.exports = nodeQuery;</pre>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -359,6 +359,7 @@ var QueryBuilder = function(driver, adapter) {
//console.log(state.queryMap); //console.log(state.queryMap);
//console.log(sql); //console.log(sql);
//console.log(vals); //console.log(vals);
//console.log(callback);
//console.log('------------------------'); //console.log('------------------------');
// Reset the state so another query can be built // Reset the state so another query can be built
@ -843,13 +844,13 @@ var QueryBuilder = function(driver, adapter) {
*/ */
this.insert = function(/* table, data, callback */) { this.insert = function(/* table, data, callback */) {
var args = getArgs('table:string, [data]:object, callback:function', arguments); var args = getArgs('table:string, [data]:object, callback:function', arguments);
args.table = driver.quoteTable(args.table);
if (args.data) { if (args.data) {
this.set(args.data); this.set(args.data);
} }
// Run the query // 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*/) { this.update = function(/*table, data, callback*/) {
var args = getArgs('table:string, [data]:object, callback:function', arguments); var args = getArgs('table:string, [data]:object, callback:function', arguments);
if (args.data) { if (args.data) {
this.set(args.data); this.set(args.data);
} }
// Run the query // 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 // 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} * @return {String}
*/ */
this.getCompiledInsert = function(table, reset) { 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} * @return {String}
*/ */
this.getCompiledUpdate = function(table, reset) { 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} * @return {String}
*/ */
this.getCompiledDelete = function(table, reset) { this.getCompiledDelete = function(table, reset) {
return _p.getCompile('delete', table, reset); return _p.getCompile('delete', driver.quoteTable(table), reset);
}; };
return this; return this;
@ -985,7 +987,7 @@ module.exports = QueryBuilder;</pre>
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>

View File

@ -184,7 +184,7 @@ module.exports = QueryParser;
<span class="jsdoc-message"> <span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Mon Nov 3rd 2014 using the <a on Tue Nov 4th 2014 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span> </span>
</footer> </footer>