How to retrieve all the records from a Berkeley DB in Ruby
- by Federico Builes
I'd like to be able to get all the key-values stored in a Berkeley DB using the Ruby bindings from http://github.com/mattbauer/bdb/tree/master but I'm not sure how to proceed. Any pointers will be appreciated.
UPDATE
Here's a small script that loops over the keys and prints them. Based on Pax' answer:
require 'rubygems'
require 'bdb'
env =…