Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 1 | #include "data_query.hpp" |
| 2 | #include "datastore_access.hpp" |
| 3 | #include "schema.hpp" |
| 4 | #include "utils.hpp" |
| 5 | |
| 6 | |
| 7 | DataQuery::DataQuery(DatastoreAccess& datastore) |
| 8 | : m_datastore(datastore) |
Václav Kubernát | de598b0 | 2020-06-08 17:42:31 +0200 | [diff] [blame] | 9 | , m_schema(m_datastore.schema()) |
Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 10 | { |
Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 11 | } |
| 12 | |
Václav Kubernát | 2db124c | 2020-05-28 21:58:36 +0200 | [diff] [blame] | 13 | std::vector<ListInstance> DataQuery::listKeys(const dataPath_& listPath) const |
Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 14 | { |
Václav Kubernát | 2db124c | 2020-05-28 21:58:36 +0200 | [diff] [blame] | 15 | auto listPathString = pathToDataString(listPath, Prefixes::Always); |
Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 16 | |
Václav Kubernát | 2db124c | 2020-05-28 21:58:36 +0200 | [diff] [blame] | 17 | return m_datastore.listInstances(listPathString); |
Václav Kubernát | ab612e9 | 2019-11-26 19:51:31 +0100 | [diff] [blame] | 18 | } |