32class tao_json_serializer;
56 , rows_{ std::move(rows) }
80 [[nodiscard]]
auto rows_as_binary() const -> const std::vector<codec::binary>&
86 typename Document =
typename Serializer::document_type,
87 std::enable_if_t<codec::is_serializer_v<Serializer>,
bool> =
true>
88 [[nodiscard]]
auto rows_as() const -> std::vector<Document>
90 std::vector<Document> rows;
91 rows.reserve(rows_.size());
92 for (
const auto& row : rows_) {
93 rows.emplace_back(Serializer::template deserialize<Document>(row));
100 std::vector<codec::binary> rows_{};
Definition tao_json_serializer.hxx:42
Represents result of cluster::query() and scope::query() calls.
Definition query_result.hxx:42
auto rows_as_binary() const -> const std::vector< codec::binary > &
Definition query_result.hxx:80
auto rows_as() const -> std::vector< Document >
Definition query_result.hxx:88
query_result(query_meta_data meta_data, std::vector< codec::binary > rows)
Definition query_result.hxx:54
auto meta_data() const -> const query_meta_data &
Returns the query_meta_data giving access to the additional metadata associated with this query.
Definition query_result.hxx:69
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28