forked from kashif/postgres-pr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
25 lines (16 loc) · 622 Bytes
/
README
File metadata and controls
25 lines (16 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
= 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"]]