Sha256: 8f0d6a665d40ffde3fdaba72227e8f591781290268f58288e931470c013b3cc1
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
class CouchConsole def init puts "** initialize all_documents" @commands << { :regexp => /documents|all_docs/, :method => :allDocuments, :documentation => [ ["documents", "Show the document with id"], ["_all_docs", "Same as documents"] ] } end 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchc-0.1.0 | lib/commands/all_documents.rb |