Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
libpg binding to node
branch: master

This branch is 19 commits ahead of jdunck:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE-MIT
README
binding.cc
package.json
postgres.js
test.js
type-oids.h
wscript

README

At the moment this is an experiemental project. Grab the latest node (39e6d95
or better) and do

  node-waf configure build


h2. Getting Started


You'll need postgres to run this. Here's the easy way to do this locally:

  wget http://wwwmaster.postgresql.org/redir/198/h/source/v8.4.2/postgresql-8.4.2.tar.gz 
  tar -zxf postgresql-8.4.2.tar.gz 
  cd postgresql-8.4.2
  ./configure --prefix=$HOME/local/postgres-8.4.2 && make && make install
  cd $HOME/local/postgres-8.4.2
  bin/initdb ./data
  bin/postgres -D ./data

You'll probably want to add $HOME/local/postgres-8.4.2/bin to your PATH
environment variable.
  
  export PATH=$HOME/local/postgres-8.4.2/bin:$PATH

And puts few things into the database

  createdb test
  echo "CREATE TABLE test (a int, b int); INSERT INTO test VALUES (1, 2);" | psql -d test 

  cd ~/src/node_postgres
  node-waf configure 
  node-waf build
  node test.js


Something went wrong with that request. Please try again.