June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int Db::upgrade(const char *file, u_int32_t flags);
The Db::upgrade method upgrades all of the databases included in the file file, if necessary. If no upgrade is necessary, Db::upgrade always returns success.
Database upgrades are done in place and are destructive; for example, if pages need to be allocated and no disk space is available, the database may be left corrupted. Backups should be made before databases are upgraded. See “Upgrading Databases” for more information.
Unlike all other database operations, Db::upgrade may only be done on a system with the same byte-order as the database.
The flags parameter must be set to 0 or one of the following values:
DB_DUPSORT This flag is only meaningful ...