Couchbase C++ SDK 1.0.4 (rev. 5355b0f)
Loading...
Searching...
No Matches
query_result Class Reference

Represents result of cluster::query() and scope::query() calls. More...

#include <couchbase/query_result.hxx>

Inheritance diagram for query_result:
Inheritance graph

Public Member Functions

 query_result ()=default
 
 query_result (query_meta_data meta_data, std::vector< codec::binary > rows)
 
auto meta_data () const -> const query_meta_data &
 Returns the query_meta_data giving access to the additional metadata associated with this query.
 
auto rows_as_binary () const -> const std::vector< codec::binary > &
 
template<typename Serializer = codec::tao_json_serializer, typename Document = typename Serializer::document_type, std::enable_if_t< codec::is_serializer_v< Serializer >, bool > = true>
auto rows_as () const -> std::vector< Document >
 

Detailed Description

Represents result of cluster::query() and scope::query() calls.

Since
1.0.0
Committed
Generally available API and should be preferred in production

Constructor & Destructor Documentation

◆ query_result() [1/2]

query_result ( )
default
Since
1.0.0
Internal
Internal interface

◆ query_result() [2/2]

query_result ( query_meta_data meta_data,
std::vector< codec::binary > rows )
inline
Since
1.0.0
Volatile
Should not be used in production

Member Function Documentation

◆ meta_data()

auto meta_data ( ) const -> const query_meta_data&
inlinenodiscard

Returns the query_meta_data giving access to the additional metadata associated with this query.

Returns
response metadata
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ rows_as()

template<typename Serializer = codec::tao_json_serializer, typename Document = typename Serializer::document_type, std::enable_if_t< codec::is_serializer_v< Serializer >, bool > = true>
auto rows_as ( ) const -> std::vector<Document>
inlinenodiscard

◆ rows_as_binary()

auto rows_as_binary ( ) const -> const std::vector<codec::binary>&
inlinenodiscard
Returns
list of query results as binary strings
Since
1.0.0
Internal
Internal interface

The documentation for this class was generated from the following file: