You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-25
Original file line number
Diff line number
Diff line change
@@ -3,32 +3,9 @@ node-postgres-pure
3
3
4
4
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.
5
5
6
-
### install
6
+
##DEPRECATED
7
7
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:
0 commit comments