module Semian::PG

def with_resource_timeout(temp_timeout)

def with_resource_timeout(temp_timeout)
  prev_conn_timeout = conninfo_hash[:connect_timeout]
  begin
    @connect_timeout = temp_timeout
    yield
  ensure
    @connect_timeout = prev_conn_timeout
  end
end