Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The postgres backend protocol implemented in pure JS for use with node.js
JavaScript
tree: e9a102ed80

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
postgres-js
.gitignore
README.markdown
postgres.js

README.markdown

PostgreSQL for Javascript

This library is a implementation of the PostgreSQL backend/frontend protocol in javascript. It uses the node.js tcp and event libraries. A javascript md5 library is included for servers that require md5 password hashing (this is default).

Example use

var Postgres = require('postgres.js');

function onLoad() {
  var db = new Postgres.Connection("database", "username", "password");
  db.query("SELECT * FROM sometable", function (data) {
    p(data);    
  });
  db.close();
}
Something went wrong with that request. Please try again.