Couchbase C++ SDK 1.0.1 (rev. 58d46d7)
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 , typename Document = typename Serializer::document_type, std::enable_if_t< codec::is_serializer_v< Serializer >, bool > = true>
auto rows_as () const -> std::vector< Document >
 
auto rows_as_json () const -> std::vector< codec::tao_json_serializer::document_type >
 

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&
inline

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 , typename Document = typename Serializer::document_type, std::enable_if_t< codec::is_serializer_v< Serializer >, bool > = true>
auto rows_as ( ) const -> std::vector<Document>
inline

◆ rows_as_binary()

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

◆ rows_as_json()

auto rows_as_json ( ) const -> std::vector<codec::tao_json_serializer::document_type>
inline

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