#pragma once #include #include #include #include #include "storage/model/properties/properties.hpp" struct ResultList { using sptr = std::shared_ptr; using data_t = std::vector; ResultList() = default; ResultList(ResultList& other) = delete; ResultList(ResultList&& other) = default; ResultList(data_t&& data) : data(std::forward(data)) {} explicit operator bool() const { return data.size() > 0; } std::vector data; }; struct QueryResult { using sptr = std::shared_ptr; using data_t = std::unordered_map; QueryResult() = default; QueryResult(QueryResult& other) = delete; QueryResult(QueryResult&& other) = default; QueryResult(data_t&& data) : data(std::forward(data)) {} explicit operator bool() const { return data.size() > 0; } data_t data; };