June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int Db::rename(const char *file, const char *database, const char *newname, u_int32_t flags);
The Db::rename interface renames the database specified by the file and database arguments to newname. If no database is specified, the underlying file represented by file is renamed, incidentally renaming all databases that it contained.
Applications should not rename databases that are currently in use. If an underlying file is being renamed and logging is currently enabled in the database environment, no database in the file may be open when the Db::rename method is called. In particular, some architectures do not permit renaming files with open handles. On these architectures, attempts to rename databases ...