June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int Db::verify(const char *file, const char *database, ostream *outfile, u_int32_t flags);
The Db::verify method verifies the integrity of all databases in the file specified by the file argument, and optionally outputs the databases’ key/data pairs to a file stream.
The flags parameter must be set to 0 or one of the following values:
DB_SALVAGE Write the key/data pairs from all databases in the file to the file stream named in the outfile argument. The output format is the same as that specified for the db_dump utility, and can be used as input for the db_load utility.
Because the key/data pairs are output in page order as opposed to the sort order used by db_dump, using Db::verify to dump key/data ...