mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Merge pull request #496 from benighted/patch-1
Added note about node-postgres-pure
This commit is contained in:
commit
ec08034221
@ -74,9 +74,9 @@ Documentation is a work in progress primarily taking place on the github WIKI
|
||||
|
||||
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.
|
||||
|
||||
To use native libpq bindings replace `require('pg')` with `require('pg').native`.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user