Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 634 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 634 Bytes

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 ([email protected]). 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"]]