#include <DbXml.hpp> void XmlManager::compactContainer( const std::string &name, XmlUpdateContext &context) void XmlManager::compactContainer( XmlTransaction &txn, const std::string &name, XmlUpdateContext &context) void XmlManager::compactContainer( const std::string &name, XmlUpdateContext &context, const XmlContainerConfig &flags) void XmlManager::compactContainer( XmlTransaction &txn, const std::string &name, XmlUpdateContext &context, const XmlContainerConfig &flags)
Compacts all of the databases in the container using Db::compact
.
The container must be closed; the system throws an exception if the container is open.
If the operation is to be transaction-protected, the
txn
parameter is an
XmlTransaction
handle
returned from XmlManager::createTransaction.
The XmlUpdateContext object to be used for this operation.
The XmlManager::upgradeContainer method may fail and throw XmlException , encapsulating one of the following non-zero errors:
An error occurred in an underlying Berkeley DB database. The XmlException::getDbErrno method will return the error code for the error.