Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Jun 22, 2016
1 parent ea141cf commit c00d621
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Generally you will access the PostgreSQL server through a pool of clients. A cl
var Pool = require('pg').Pool;

var config = {
user: 'foo', //env var: PGUSER
database: 'my_db', //env var: PGDATABASE
password: 'secret', //env var: PGPASSWORD
port: 5432 //env var: PGPORT
user: 'foo',
password: 'secret',
database: 'my_db',
port: 5432
};

var pool = new Pool(config);
Expand All @@ -50,9 +50,12 @@ pool.connect(function(err, client, done) {
});
```

node-postgres uses [pg-pool](https://github.com/brianc/node-pg-pool.git) to manage pooling and only provides a very thin layer on top. It's highly recommend you read the documentation for [pg-pool](https://github.com/brianc/node-pg-pool.git)
node-postgres uses [pg-pool](https://github.com/brianc/node-pg-pool.git) to manage pooling and only provides a very thin layer on top.

[Check this out for the get up and running quickly example](https://github.com/brianc/node-postgres/wiki/Example)
It's _highly recommend_ you read the documentation for [pg-pool](https://github.com/brianc/node-pg-pool.git)


[Here is a tl;dr get up & running quickly exampe](https://github.com/brianc/node-postgres/wiki/Example)

### Client instance

Expand Down

0 comments on commit c00d621

Please sign in to comment.