Skip to content

Commit

Permalink
docs cmit prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
pasupulaphani committed Feb 10, 2017
1 parent e1be296 commit 88a3758
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions docs/PgPool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ <h5>Returns:</h5>



<h4 class="name" id="query"><span class="type-signature"></span>query<span class="signature">(commandName, commandArgs)</span><span class="type-signature"> &rarr; {promise}</span></h4>
<h4 class="name" id="query"><span class="type-signature"></span>query<span class="signature">(queryText, arrayValues)</span><span class="type-signature"> &rarr; {promise}</span></h4>



Expand Down Expand Up @@ -1468,7 +1468,7 @@ <h4 class="name" id="query"><span class="type-signature"></span>query<span class


<div class="description">
<p>Send Postgres instructions</p>
<p>Run Postgres query https://github.com/brianc/node-postgres/wiki/Client#querystring-querytext-array-values-optional-function-callback-query</p>
</div>


Expand Down Expand Up @@ -1506,7 +1506,7 @@ <h5>Parameters:</h5>

<tr>

<td class="name"><code>commandName</code></td>
<td class="name"><code>queryText</code></td>


<td class="type">
Expand All @@ -1522,14 +1522,14 @@ <h5>Parameters:</h5>



<td class="description last"><p>Name of the command</p></td>
<td class="description last"><p>sql query</p></td>
</tr>



<tr>

<td class="name"><code>commandArgs</code></td>
<td class="name"><code>arrayValues</code></td>


<td class="type">
Expand All @@ -1545,7 +1545,7 @@ <h5>Parameters:</h5>



<td class="description last"><p>Args sent to the command</p></td>
<td class="description last"><p>array values</p></td>
</tr>


Expand Down
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ <h3>Sponsors</h3><p>No sponsors yet! Will you be the first?</p>
<a href="https://flattr.com/profile/pasupulaphani" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button"></a>
<!-- [![PayPal donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://phaninder.com/paypal "Donate to this project using Paypal") -->
<!-- [![Bitcoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://phaninder.com/bitcoin "Donate once-off to this project using Bitcoin") -->
<!-- [![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](https://phaninder.com/wishlist "Buy an item on our wishlist for us") --></p>
<!-- [![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](https://phaninder.com/wishlist "Buy an item on our wishlist for us") -->
<a href='https://pledgie.com/campaigns/33355'><img alt='Click here to lend your support to: simple-node-redis-cache and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/33355.png?skin_name=chrome' border='0' ></a></p>
<h3>Contributors</h3><p>These amazing people have contributed to/reviewed this project:</p>
<ul>
<li><a href="https://github.com/oliverbrooks">Oliver Brooks</a></li>
</ul>
<p><a href="https://github.com/pasupulaphani/node-pg-connection-pool/blob/master/CONTRIBUTING.md">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a></p>
<p><br /></p>
<h2><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-57413413-3', 'auto');ga('send', 'pageview');</script></h2></article>
<h2><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-57413413-7', 'auto');ga('send', 'pageview');</script></h2></article>
</section>


Expand Down
10 changes: 5 additions & 5 deletions docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,18 @@ <h1 class="page-title">index.js</h1>
};

/**
* Send Postgres instructions
* Run Postgres query https://github.com/brianc/node-postgres/wiki/Client#querystring-querytext-array-values-optional-function-callback-query
*
* @param {string} commandName - Name of the command
* @param {array} commandArgs - Args sent to the command
* @param {string} queryText - sql query
* @param {array} arrayValues - array values
* @returns {promise} Promise resolve with the result or Error
*/
PgPool.prototype.query = function (queryString) {
PgPool.prototype.query = function (queryText, arrayValues) {

return this.pool.acquire()
.then(client => {

return client.query(queryString)
return client.query(queryText, arrayValues)
.then(result => {

this.pool.release(client);
Expand Down

0 comments on commit 88a3758

Please sign in to comment.