XmlManager::upgradeContainer |
![]() ![]() |
#include <DbXml.hpp>void XmlManager::upgradeContainer(const std::string &name, XmlUpdateContext &context);
Upgrades the container from a previous version of Berkeley DB XML, or Berkeley DB, to the current version. A Berkeley DB upgrade is first performed using the Db::upgrade method, and then the Berkeley DB XML container is upgraded. If no upgrade is needed, then no changes are made.
Container upgrades are done in place and are destructive. For example, if pages need to be allocated and no disk space is available, the container may be left corrupted. Backups should be made before containers are upgraded. See Upgrading databases for more information.
The container must be closed; the system throws an exception if the container is open.
The XmlManager::upgradeContainer method may fail and throw XmlException, encapsulating one of the following non-zero errors:
![]() ![]() |
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.