blob: cef7ec3cf5afc62f7683cd8d656a8191e7e72990 [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_& listPath) const
{
auto listPathString = pathToDataString(listPath, Prefixes::Always);
return m_datastore.listInstances(listPathString);
}