49 , rows_{ std::move(rows) }
73 [[nodiscard]]
auto rows_as_binary() const -> const std::vector<codec::binary>&
78 template<
typename Serializer,
79 typename Document =
typename Serializer::document_type,
80 std::enable_if_t<codec::is_serializer_v<Serializer>,
bool> =
true>
81 [[nodiscard]]
auto rows_as() const -> std::vector<Document>
83 std::vector<Document> rows;
84 rows.reserve(rows_.size());
85 for (
const auto& row : rows_) {
86 rows.emplace_back(Serializer::template deserialize<Document>(row));
91 [[nodiscard]]
auto rows_as_json() const -> std::vector<codec::tao_json_serializer::document_type>
93 return rows_as<codec::tao_json_serializer>();
98 std::vector<codec::binary> rows_{};
Represents result of cluster::query() and scope::query() calls.
Definition query_result.hxx:35
auto rows_as_binary() const -> const std::vector< codec::binary > &
Definition query_result.hxx:73
auto rows_as() const -> std::vector< Document >
Definition query_result.hxx:81
auto rows_as_json() const -> std::vector< codec::tao_json_serializer::document_type >
Definition query_result.hxx:91
query_result(query_meta_data meta_data, std::vector< codec::binary > rows)
Definition query_result.hxx:47
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:62
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28