Skip to content

Commit

Permalink
docs update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Apr 22, 2016
1 parent 68ed2aa commit a71e00e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -561,7 +561,7 @@ Queries in a detached promise chain maintain connection independently, they each
execute the query and then release the connection back to the pool.
```javascript
db.one('select * from users where id=$1', 123) // find the user from id;
db.one('select * from users where id = $1', 123) // find the user from id;
.then(function (data) {
// find 'login' records for the user found:
return db.query('select * from audit where event=$1 and userId=$2',
Expand Down
2 changes: 1 addition & 1 deletion lib/errors.js
Expand Up @@ -97,7 +97,7 @@ var errorMessages = [
* // A query returned unexpected number of records, and thus rejected;
*
* // we can check the error code, if we want specifics:
* if(err.code === qrec.noData){
* if(err.code === qrec.noData) {
* // expected some data, but received none;
* }
*
Expand Down
2 changes: 1 addition & 1 deletion lib/events.js
Expand Up @@ -65,7 +65,7 @@ var $events = {
*
* // pg-promise initialization options...
*
* disconnect: function(client, dc){
* disconnect: function(client, dc) {
* var cp = client.connectionParameters;
* console.log("Disconnecting from database:", cp.database);
* }
Expand Down
2 changes: 1 addition & 1 deletion lib/txMode.js
Expand Up @@ -81,7 +81,7 @@ Object.freeze(isolationLevel);
* myTransaction.txMode = tmSRD; // assign transaction mode;
*
* db.tx(myTransaction)
* .then(function(){
* .then(function() {
* // success;
* });
*
Expand Down

0 comments on commit a71e00e

Please sign in to comment.