green-em-pg

Simple wrapper around em-pg for Green. And Sequel adapter.

Usage

gem "green-em-pg"
require "green-em/pg"

db = Green::EM::PG.new host: "localhost",
  port: 5432,
  dbname: "test",
  user: "postgres",
  password: "postgres"

res = db.send_qeury "select * from test"

puts res.inspect

Sequel

require "green-em/pg/sequal"
url = "postgres://postgres:postgres@localhost:5432/test"
db = Sequel.connect(url, pool_class: Green::EM::PG::Sequel::ConnectionPool)

puts db[:test].all.inspect