80 const std::string&
id,
111 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>,
bool> =
true>
117 return insert_raw(coll,
id, Transcoder::encode(content), std::move(handler));
134 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>,
bool> =
true>
137 return replace_raw(std::move(doc), Transcoder::encode(content), std::move(handler));
151 std::string statement,
166 return query(std::move(statement), std::move(opts), {}, std::move(handler));
178 return query(std::move(statement), {}, std::move(handler));
185 virtual void insert_raw(
const collection& coll,
194 virtual void query(std::string statement,
196 std::optional<std::string> query_context,
The collection provides access to all collection APIs.
Definition collection.hxx:70
The scope identifies a group of collections and allows high application density as a result.
Definition scope.hxx:47
The async_attempt_context is used for all asynchronous transaction operations.
Definition async_attempt_context.hxx:42
void insert(const collection &coll, std::string id, Document &&content, async_result_handler &&handler)
Insert a document into a collection.
Definition async_attempt_context.hxx:112
void query(std::string statement, transaction_query_options opts, async_query_handler &&handler)
Perform a query.
Definition async_attempt_context.hxx:164
void query(const scope &scope, std::string statement, transaction_query_options opts, async_query_handler &&handler)
Perform a query, within a scope.
virtual void remove(transaction_get_result doc, async_err_handler &&handler)=0
Remove a document from a collection.
virtual ~async_attempt_context()=default
virtual void get_replica_from_preferred_server_group(const couchbase::collection &coll, const std::string &id, async_result_handler &&handler)=0
Get a document copy from the selected server group.
void replace(transaction_get_result doc, Document &&content, async_result_handler &&handler)
Replace the contents of a document in a collection.
Definition async_attempt_context.hxx:135
virtual void get(const collection &coll, std::string id, async_result_handler &&handler)=0
Get document from a collection.
void query(std::string statement, async_query_handler &&handler)
Perform a query.
Definition async_attempt_context.hxx:176
The representation of the document in context of distributed transaction.
Definition transaction_get_result.hxx:57
The transaction_query_options are options specific to a query.
Definition transaction_query_options.hxx:35
Transactional queries will return a transaction_query_result.
Definition transaction_query_result.hxx:27
json_transcoder< tao_json_serializer > default_json_transcoder
Definition default_json_transcoder.hxx:28
std::function< void(error, transaction_get_result)> async_result_handler
Definition async_attempt_context.hxx:29
std::function< void(error, transaction_query_result)> async_query_handler
Definition async_attempt_context.hxx:30
std::function< void(error)> async_err_handler
Definition async_attempt_context.hxx:31
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
@ query
The Query service (SQL++)
Definition encoded_value.hxx:27