Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Tomilov committed Mar 6, 2015
1 parent 0b1e627 commit f1976e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ $ npm install pg-promise

### 1. Load the library
```javascript
var pgpLib = require('pg-promise'); // loading the library;
var pgpLib = require('pg-promise'); // loading the library
```
### 2. Initialize the library
```javascript
var pgp = pgpLib(/*options*/); // initializing the library, with optional global settings;
var pgp = pgpLib(/*options*/); // initializing the library, with optional global settings
```
You can pass additional ```options``` parameter when initilizing the library (see chapter Advanced for details).

Expand Down Expand Up @@ -128,7 +128,7 @@ tx.exec(function(/*client*/){
var q2 = tx.one("insert into audit(entity, id) values('users', 123) returning id");

// returning a promise that determines a successful transaction:
return promise.all([q1, q2]); // all of the queries are to be resolved;
return promise.all([q1, q2]); // all of the queries are to be resolved

}).then(function(data){
console.log(data); // printing successful transaction output
Expand Down

0 comments on commit f1976e2

Please sign in to comment.