Method: CouchConsole#allDocuments

Defined in:
lib/commands/all_documents.rb

#allDocumentsObject



14
15
16
17
18
19
20
# File 'lib/commands/all_documents.rb', line 14

def allDocuments
  all = @db.documents
  puts "#{all["total_rows"]} documents :"
  all["rows"].each do |doc|
    puts "  id : #{doc["id"]} - rev : #{doc["value"]["rev"]}"
  end
end