blob: e231ac35975f6418d01e0abe32695f3b07586dde [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);
}