XmlManager::createQueryContext

#include <DbXml.hpp>

XmlQueryContext XmlManager::createQueryContext(
    XmlQueryContext::ReturnType rt =XmlQueryContext::LiveValues,
    XmlQueryContext::EvaluationType et = XmlQueryContext::Eager)

Creates a new XmlQueryContext .

Parameters

rt

Specifies whether to return live or dead values:

  • XmlQueryContext::LiveValues

    Return references to the actual document stored in Berkeley DB XML.

  • XmlQueryContext::DeadValues

    Return a copy of the data stored in Berkeley DB XML.

evaluationType

The evaluation type must be specified as either:

  • XmlQueryContext::Eager

    The query is executed and its resultant values are derived and stored in-memory before query evaluation is completed.

  • XmlQueryContext::Lazy

    The query is executed and its resultant values are calculated as you ask for them.

Class

XmlManager

See Also

XmlManager Methods