lib/wyrm/pump.rb
# decide which kind of paged iteration will be best for this table.
# Return an iterator, or yield row hashes to the block
decide which kind of paged iteration will be best for this table.
Return an iterator, or yield row hashes to the block
decide which kind of paged iteration will be best for this table . Return an iterator or yield row hashes to the block
def _dump( &encode_block )
      return enum_for(__method__) unless block_given?
      case
      when table_dataset.respond_to?( :stream )
        stream_dump &encode_block
      when primary_keys.empty?
        paginated_dump &encode_block
      when primary_keys.all?{|i| i == :id }
        min_max_dump &encode_block
      else
        inner_dump &encode_block
      end
    end
def _dump ( & encode_block ) return enum_for ( __method__ ) unless block_given? case when table_dataset . respond_to? ( :stream ) stream_dump & encode_block when primary_keys . empty? paginated_dump & encode_block when primary_keys . all? { | i | i == :id } min_max_dump & encode_block else inner_dump & encode_block end end
decide which kind of paged iteration will be best for this table.
decide which kind of paged iteration will be best for this table .
encode_block
<not_specific>