pg.js
node-postgres without the bindings
Last updated 11 years ago by brianc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pg.js 
SYNC missed versions from official npm registry.

node-postgres-pure

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.

install

npm install pg.js

use

//exact same code, you can just change the string
//in your requires from pg to pg.js and you're done
var pg = require('pg.js')

pg.connect(function(err, client, release) {
  if (err) throw err;
  client.query('SELECT NOW()', function(err, res) {
    release()
    if (err) throw err;
    console.log(res.rows[0])
  })
})

how it works

I pull in the node-postgres repo and delete the /src folder and the .gyp file.

Then I publish the same code to npm as pg.js. So easy.

license

MIT

Current Tags

  • 4.1.1                                ...           latest (11 years ago)

30 Versions

  • 4.1.1                                ...           11 years ago
  • 4.1.0 [deprecated]           ...           11 years ago
  • 3.6.2                                ...           11 years ago
  • 3.5.0                                ...           12 years ago
  • 3.4.4                                ...           12 years ago
  • 3.4.2                                ...           12 years ago
  • 3.4.1                                ...           12 years ago
  • 3.4.0                                ...           12 years ago
  • 3.3.0                                ...           12 years ago
  • 3.2.0                                ...           12 years ago
  • 3.1.0                                ...           12 years ago
  • 3.0.4                                ...           12 years ago
  • 3.0.3                                ...           12 years ago
  • 3.0.2                                ...           12 years ago
  • 3.0.1                                ...           12 years ago
  • 2.11.1                                ...           12 years ago
  • 2.11.0                                ...           12 years ago
  • 2.10.0                                ...           12 years ago
  • 2.9.0                                ...           12 years ago
  • 2.8.4                                ...           12 years ago
  • 2.8.2                                ...           12 years ago
  • 2.8.1                                ...           12 years ago
  • 2.8.0                                ...           12 years ago
  • 2.7.0                                ...           13 years ago
  • 2.6.2                                ...           13 years ago
  • 2.6.1                                ...           13 years ago
  • 2.6.0                                ...           13 years ago
  • 2.5.1                                ...           13 years ago
  • 2.5.0                                ...           13 years ago
  • 0.9.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (1)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |