github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

creationix / postgres-js

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 42
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (1)
    • 0.0.1
  • Branch List
Sending Request…

The postgres backend protocol implemented in pure JS for use with node.js — Read more

  Cancel

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fix close to not hang when there are no pending queries 
creationix (author)
Wed Dec 30 08:36:53 -0800 2009
commit  ecbbc4b1bec96393b48a1984198be9bbfd80f670
tree    55e0f56d8177e5fac8187a6022dce740d2491b17
parent  fc0564298bab3ca887d72767b26e46aede744524
postgres-js /
name age
history
message
file .gitignore Sat Nov 28 21:34:18 -0800 2009 Remove my local test.js file so I don't duplica... [creationix]
file README.markdown Sat Nov 28 21:39:22 -0800 2009 Update the readme to require the sys module for... [creationix]
directory postgres-js/ Wed Dec 02 13:35:42 -0800 2009 Minor JS fixes to bits.js to make jslint happy ... [creationix]
file postgres.js Wed Dec 30 08:36:53 -0800 2009 Fix close to not hang when there are no pending... [creationix]
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 sys = require("sys");
var Postgres = require('postgres.js');

function onLoad() {
  var db = new Postgres.Connection("database", "username", "password");
  db.query("SELECT * FROM sometable", function (data) {
    sys.p(data);    
  });
  db.close();
}
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
ZW5kZW5yYWhheXU5QGdtYWlsLmNvbQ==