I have a set of Berkeley DB files on my Linux file system that I\'d like to examine.
What useful tools exist for getting a quick overview of the contents? I can writ
I found @strickli's answer to be the most helpful, as I didn't want to add any new packages to the machine with the database I was on. However, the db file I was reading was of type btree, not hash, so I had to use bsddb
# file foo.db
foo.db: Berkeley DB (Btree, version 9, native byte-order)
# python
>>> import bsddb
>>> for k, v in bsddb.btopen("**").iteritems():
... print k,v
...