moshe wrote:
Quote:
I'm using berkeley DB in my software. for one of the usages in my
software I need to dump all the DB data.
from first look I've found only one way of doing so, and it is also not
in code level (using the external utility db_dump).
I want to dump the data in code level. when looking in the db_dump
implementaion I noticed the use of a hidden function DB::dump. I
searched for it in the documentation and found no reference to it.
why is that method not mentioned in the documentation? and is there a
way I can use it inside my own code (in C++), so I'll be able to write
my dump method? |
We've never documented the DB::dump method because we're not
confident the existing implementation is the correct interface
to export to applications. That said, there's no reason that
you can't use the interface in your application, if you find it
useful. I can guarantee the interface isn't going to go away
(although it may change if we document and export it in the
standard API). There's currently no C++ method, you'll have to
reach through the Db handle to the underlying DB handle, or call
the underlying C function directly.
Regards,
--keith
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (Yahoo IM)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com