Represents result of mutate_in operations.
More...
#include <couchbase/mutate_in_result.hxx>
Represents result of mutate_in operations.
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ mutate_in_result() [1/2]
◆ mutate_in_result() [2/2]
Constructs result for mutate_in_result operation.
- Parameters
-
cas | |
token | mutate_in token returned by the server |
entries | list of the fields returned by the server |
is_deleted | true if the document is a tombstone |
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ content_as() [1/2]
template<typename Document >
auto content_as |
( |
const std::string & | path | ) |
const -> Document
|
|
inline |
Decodes field of the document into type.
- Template Parameters
-
- Parameters
-
path | the path of the result field |
- Returns
- decoded document content
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ content_as() [2/2]
template<typename Document >
auto content_as |
( |
std::size_t | index | ) |
const -> Document
|
|
inline |
Decodes field of the document into type.
- Template Parameters
-
- Parameters
-
index | the index of the result field |
- Returns
- decoded document content
- Since
- 1.0.0
- Committed
- Generally available API and should be preferred in production
◆ has_value() [1/2]
Returns whether the field has value.
- Parameters
-
path | the path of the result field |
- Returns
- true if the server returned value for the field
- Since
- 1.0.0
- Internal
- Internal interface
◆ has_value() [2/2]
auto has_value |
( |
std::size_t | index | ) |
const -> bool
|
|
inline |
Returns whether the field has value.
- Parameters
-
index | the index of the result field |
- Returns
- true if the server returned value for the field
- Since
- 1.0.0
- Internal
- Internal interface
◆ is_deleted()
Returns whether this document was deleted (a tombstone).
Will always be false unless lookup_in_options#access_deleted()
has been set.
For internal use only: applications should not require it.
- Returns
- whether this document was a tombstone
- Since
- 1.0.0
- Internal
- Internal interface
The documentation for this class was generated from the following file: