|
This post originated from an RSS feed registered with Ruby Buzz
by Michael Neumann.
|
Original Post: Pure Ruby PostgreSQL interface released
Feed Title: Mike's Weblog
Feed URL: http://www.ntecs.de/blog-old/index.rss?cat=ruby&count=7
Feed Description: Blogging about Ruby and other interesting stuff.
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Michael Neumann
Latest Posts From Mike's Weblog
|
|
I'm proud to announce the first public "release" of postgres-pr.
It is a library to access PostgreSQL from Ruby without the need of any C
library.
- You can use it only with newer 7.x databases that use wire-protocol 3.
- Lot's of stuff is missing, only the wire-protocol is quite complete.
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 = Connection.new('DBNAME', 'DBUSER')
c.query('SELECT 1+2') # => [["3"]]
Have fun!
Read: Pure Ruby PostgreSQL interface released