Skip to content

Commit 1f503ed

Browse files
committed
updated readme
1 parent 0569257 commit 1f503ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ To use native libpq bindings replace `require('pg')` with `require('pg').native`
1414

1515
The two share the same interface so __no other code changes should be required__. If you find yourself having to change code other than the require statement when switching from `pg` to `pg.native`, please report an issue.
1616

17+
node-postgres supports both an 'event emitter' style API and a 'callback' style. The callback style is more concise and generally preferred, but the evented API can come in handy. They can be mixed and matched. The only events which do __not__ fire when callbacks are supplied are the `error` events, as they are to be handled by the callback function.
18+
1719
### Simple, using built-in client pool
1820

1921
var pg = require('pg');
@@ -80,7 +82,7 @@ The two share the same interface so __no other code changes should be required__
8082
* tested with with
8183
* postgres 8.x, 9.x
8284
* Linux, OS X
83-
* node 2.x, 3.x, & 4.x
85+
* node 2.x & 4.x
8486
* row-by-row result streaming
8587
* optional, built-in connection pooling
8688
* responsive project maintainer

0 commit comments

Comments
 (0)