def dump(fname)

      File.open(fname, 'wb') do |file|

        ids.each do |id|

          doc = get(id, :attachments => true)

          doc.delete('_rev')
          (doc['_attachments'] || {}).values.each { |att| att.delete('revpos') }

          file.puts(Rufus::Json.encode(doc))
        end
      end
    end
def dump(fname)

      File.open(fname, 'wb') do |file|

        ids.each do |id|

          doc = get(id, :attachments => true)

          doc.delete('_rev')
          (doc['_attachments'] || {}).values.each { |att| att.delete('revpos') }

          file.puts(Rufus::Json.encode(doc))
        end
      end
    end
--
 dump and load
++
 Dumps all of the database in a dump file. One document per line.