File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ Typically you will access the PostgreSQL server through a pool of clients. node
16
16
17
17
``` javascript
18
18
var pg = require (' pg' );
19
- var conString = " postgres://postgres:1234 @localhost/postgres " ;
19
+ var conString = " postgres://username:password @localhost/database " ;
20
20
21
21
pg .connect (conString, function (err , client , done ) {
22
22
if (err) {
23
- return console .error (' error fetching client from pool' , err);
23
+ return console .error (' error fetching client from pool' , err);
24
24
}
25
- client .query (' SELECT $1::int AS numbor ' , [' 1' ], function (err , result ) {
25
+ client .query (' SELECT $1::int AS number ' , [' 1' ], function (err , result ) {
26
26
// call `done()` to release the client back to the pool
27
27
done ();
28
28
@@ -45,7 +45,7 @@ var pg = require('pg');
45
45
// or native libpq bindings
46
46
// var pg = require('pg').native
47
47
48
- var conString = " postgres://postgres:1234 @localhost/postgres " ;
48
+ var conString = " postgres://username:password @localhost/database " ;
49
49
50
50
var client = new pg.Client (conString);
51
51
client .connect (function (err ) {
You can’t perform that action at this time.
0 commit comments