Class: Green::EM::PG

Inherits:
EM::PG
  • Object
show all
Defined in:
lib/green-em/pg.rb,
lib/green-em/pg/sequel.rb

Direct Known Subclasses

PGconn

Defined Under Namespace

Classes: PGconn, Sequel

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.new(*args) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/green-em/pg.rb', line 7

def self.new(*args)
  Green.hub # ensure started green hub
  db = allocate
  db.instance_eval do
    initialize(*args)
  end
  Green::EM.sync db
  db
end