File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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
1616
1717``` javascript
1818var pg = require (' pg' );
19- var conString = " postgres://postgres:1234 @localhost/postgres " ;
19+ var conString = " postgres://username:password @localhost/database " ;
2020
2121pg .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
5050var client = new pg.Client (conString);
5151client .connect (function (err ) {
You can’t perform that action at this time.
0 commit comments