Skip to content

Commit 62ba4c9

Browse files
committed
Merge pull request brianc#580 from jonmorehouse/master
Minor documentation change for readme.
2 parents 4c8f489 + db52fcb commit 62ba4c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Typically you will access the PostgreSQL server through a pool of clients. node
1616

1717
```javascript
1818
var pg = require('pg');
19-
var conString = "postgres://postgres:1234@localhost/postgres";
19+
var conString = "postgres://username:password@localhost/database";
2020

2121
pg.connect(conString, function(err, client, done) {
2222
if(err) {
23-
return console.error('error fetching client from pool', err);
23+
return console.error('error fetching client from pool', err);
2424
}
25-
client.query('SELECT $1::int AS numbor', ['1'], function(err, result) {
25+
client.query('SELECT $1::int AS number', ['1'], function(err, result) {
2626
//call `done()` to release the client back to the pool
2727
done();
2828

@@ -45,7 +45,7 @@ var pg = require('pg');
4545
//or native libpq bindings
4646
//var pg = require('pg').native
4747

48-
var conString = "postgres://postgres:1234@localhost/postgres";
48+
var conString = "postgres://username:password@localhost/database";
4949

5050
var client = new pg.Client(conString);
5151
client.connect(function(err) {

0 commit comments

Comments
 (0)