Skip to content

Commit 9c459ea

Browse files
committed
Added note about node-postgres-pure
In response to Issue #495.
1 parent 9dd2840 commit 9c459ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Documentation is a work in progress primarily taking place on the github WIKI
7474

7575
node-postgres contains a pure JavaScript driver and also exposes JavaScript bindings to libpq. You can use either interface. I personally use the JavaScript bindings as the are quite fast, and I like having everything implemented in JavaScript.
7676

77-
To use native libpq bindings replace `require('pg')` with `require('pg').native`.
77+
To use native libpq bindings replace `require('pg')` with `require('pg').native`. If you __do not__ need or want the native bindings at all, consider using [node-postgres-pure](https://github.com/brianc/node-postgres-pure) instead which does not include them.
7878

79-
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.
79+
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` or `pg.js`, please report an issue.
8080

8181
## Features
8282

0 commit comments

Comments
 (0)