In Files

Methods

YALTools::YaAllDocs

Description

YALTools::YaAllDocs is designed to handle huge amount of documents using the BulkDoc (_all_docs) API.

Usage

    view = YALTools::YaAllDocs.new(@couch, @dbname)
    view.each(opts, @opts[:page], @opts[:limit]) do |rows, skip, page, max_page, max_rows|
      rows.each do |i|
       YALTools::CmdLine::save_data(i.to_json, @opts[:outfile], "w")
      end
    end

Private Instance Methods

gen_view_uri(opts={}) click to toggle source
     # File yalt/yaview.rb, line 477
477:     def gen_view_uri(opts={})
478:       uri = format("/%s/_all_docs", @dbname)
479:       return gen_uri_with_options(uri, opts)
480:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.