Skip to content

Commit 328e941

Browse files
committed
Update README.md
1 parent 50bb230 commit 328e941

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

README.md

+2-25
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,9 @@ node-postgres-pure
33

44
The exact same node-postgres module without any of the C/C++ stuff. If you're just using the pure JavaScript bindings, there's really no reason to wait for the native stuff to compile.
55

6-
### install
6+
## DEPRECATED
77

8-
`npm install pg.js`
9-
10-
### use
11-
12-
```js
13-
//exact same code, you can just change the string
14-
//in your requires from pg to pg.js and you're done
15-
var pg = require('pg.js')
16-
17-
pg.connect(function(err, client, release) {
18-
if (err) throw err;
19-
client.query('SELECT NOW()', function(err, res) {
20-
release()
21-
if (err) throw err;
22-
console.log(res.rows[0])
23-
})
24-
})
25-
```
26-
27-
### how it works
28-
29-
I pull in the node-postgres repo and delete the `/src` folder and the `.gyp` file.
30-
31-
Then I publish the same code to npm as `pg.js`. So easy.
8+
node-postgres has been updated to make the native compilation and bindings an optional install. This module is no longer nessassary - it's literally the exact same code as node-postgres now, so you should go install that instead. :smile:
329

3310
### license
3411

0 commit comments

Comments
 (0)