Sha256: 6df6d9c23adf763c0805d0cd4a9d4d1eb98ffee18538348d3e8fbddfbc967306

Contents?: true

Size: 163 Bytes

Versions: 1

Compression:

Stored size: 163 Bytes

Contents

module PgConduit
  class DBWriter
    def initialize(pool)
      @pool = pool
    end

    def write
      @pool.with { |conn| conn.exec yield }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_conduit-0.1.0 lib/pg_conduit/db_writer.rb