Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A pure-Ruby (pr) library for accessing PostgreSQL databases

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 README
Octocat-spinner-32 TODO
Octocat-spinner-32 postgres-pr.gemspec
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.