Couchbase C++ SDK 1.0.1 (rev. 58d46d7)
Loading...
Searching...
No Matches
query_meta_data Class Reference

Stores any non-rows results related to the execution of a particular N1QL query. More...

#include <couchbase/query_meta_data.hxx>

Public Member Functions

 query_meta_data ()=default
 
 query_meta_data (std::string request_id, std::string client_context_id, query_status status, std::vector< query_warning > warnings, std::optional< query_metrics > metrics, std::optional< codec::binary > signature, std::optional< codec::binary > profile)
 
auto request_id () const -> const std::string &
 Returns the request identifier string of the query request.
 
auto client_context_id () const -> const std::string &
 Returns the client context identifier string set on the query request.
 
auto status () const -> query_status
 Returns the raw query execution status as returned by the query engine.
 
auto warnings () const -> const std::vector< query_warning > &
 Returns any warnings returned by the query engine.
 
auto metrics () const -> const std::optional< query_metrics > &
 Returns the query_metrics as returned by the query engine if enabled.
 
auto signature () const -> const std::optional< codec::binary > &
 Returns the signature as returned by the query engine.
 
auto profile () const -> const std::optional< codec::binary > &
 Returns the profiling information returned by the query engine.
 

Detailed Description

Stores any non-rows results related to the execution of a particular N1QL query.

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

Constructor & Destructor Documentation

◆ query_meta_data() [1/2]

query_meta_data ( )
default
Since
1.0.0
Internal
Internal interface

◆ query_meta_data() [2/2]

query_meta_data ( std::string request_id,
std::string client_context_id,
query_status status,
std::vector< query_warning > warnings,
std::optional< query_metrics > metrics,
std::optional< codec::binary > signature,
std::optional< codec::binary > profile )
inline
Since
1.0.0
Volatile
Should not be used in production

Member Function Documentation

◆ client_context_id()

auto client_context_id ( ) const -> const std::string&
inline

Returns the client context identifier string set on the query request.

Returns
client context identifier
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ metrics()

auto metrics ( ) const -> const std::optional<query_metrics>&
inline

Returns the query_metrics as returned by the query engine if enabled.

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

◆ profile()

auto profile ( ) const -> const std::optional<codec::binary>&
inline

Returns the profiling information returned by the query engine.

Returns
optional byte string containing JSON encoded profile
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ request_id()

auto request_id ( ) const -> const std::string&
inline

Returns the request identifier string of the query request.

Returns
The request identifier string
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ signature()

auto signature ( ) const -> const std::optional<codec::binary>&
inline

Returns the signature as returned by the query engine.

Returns
optional byte string containing JSON encoded signature
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ status()

auto status ( ) const -> query_status
inline

Returns the raw query execution status as returned by the query engine.

Returns
query execution status
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ warnings()

auto warnings ( ) const -> const std::vector<query_warning>&
inline

Returns any warnings returned by the query engine.

It returns an empty vector if no warnings were returned.

Returns
vector of the reported warnings.
Since
1.0.0
Committed
Generally available API and should be preferred in production

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