blob: be979ff7ad4a4669cf058cc32440963a60ac5cf9 [file] [log] [blame]
#include "data_query.hpp"
#include "datastore_access.hpp"
#include "schema.hpp"
#include "utils.hpp"
DataQuery::DataQuery(DatastoreAccess& datastore)
: m_datastore(datastore)
{
m_schema = m_datastore.schema();
}
std::vector<ListInstance> DataQuery::listKeys(const dataPath_& location, const ModuleNodePair& node) const
{
auto listPath = joinPaths(pathToDataString(location, Prefixes::Always), fullNodeName(location, node));
return m_datastore.listInstances(listPath);
}