Sha256: dc7810afafa960f83fa8480850a7c82c7b1659eab7fd27a22d2413a10b5a9a7e
Contents?: true
Size: 415 Bytes
Versions: 22
Compression:
Stored size: 415 Bytes
Contents
module Ddr::Index class AbstractQueryResult include Enumerable attr_reader :query, :conn delegate :params, to: :query def initialize(query) @query = query @conn = Connection.new end def count response = conn.select(params, rows: 0) response.num_found end def each raise NotImplementedError, "Subclasses must implement `#each`." end end end
Version data entries
22 entries across 22 versions & 1 rubygems