From 9c459ea6c5f7960ddc89c2b9dbeed348acc67df1 Mon Sep 17 00:00:00 2001 From: Michael Payne Date: Fri, 3 Jan 2014 16:38:49 -0500 Subject: [PATCH] Added note about node-postgres-pure In response to Issue #495. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4051c5f2..e43853c1 100644 --- a/README.md +++ b/README.md @@ -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