Skip to content
A pure-Ruby (pr) library for accessing PostgreSQL databases
Ruby
Latest commit e60f6c9 Jan 19, 2015 @mneumann Merge pull request #3 from aef/master
First step to Rails 3 compatibility
Failed to load latest commit information.
examples Use location for Linux Feb 26, 2009
lib Merge pull request #3 from aef/master Jan 19, 2015
test * moved classes and modules into PostgresPR module Nov 22, 2004
README Project moved away from ruby-dbi to it's own Oct 31, 2008
TODO
postgres-pr.gemspec Fix URL Dec 15, 2009

README

= Pure Ruby PostgreSQL interface

This is a library to access PostgreSQL (>= 7.4) from Ruby without the need of
any C library.

== Author and Copyright

Copyright (c) 2005, 2008 by Michael Neumann (mneumann@ntecs.de). 
Released under the same terms of license as Ruby.

== Homepage

http://rubyforge.org/projects/ruby-dbi

== Quick Example

  > gem install postgres-pr
  > irb -r rubygems 

Then in the interactive Ruby interpreter type (replace DBNAME and DBUSER
accordingly):

  require 'postgres-pr/connection'
  c = PostgresPR::Connection.new('DBNAME', 'DBUSER')
  c.query('SELECT 1+2').rows              # => [["3"]]
Something went wrong with that request. Please try again.