21 #include <couchbase/transactions/transaction_get_result.hxx> 25 namespace transactions
60 virtual boost::optional<transaction_get_result>
get_optional(std::shared_ptr<collection>
collection,
const std::string&
id) = 0;
81 template<
typename Content>
84 const Content& content)
86 nlohmann::json json_content = content;
106 template<
typename Content>
109 nlohmann::json json_content = content;
138 virtual void commit() = 0;
155 const std::string&
id,
156 const nlohmann::json& content) = 0;
161 const nlohmann::json& content) = 0;
Definition: bucket.hxx:33
transaction_get_result replace(std::shared_ptr< collection > collection, const transaction_get_result &document, const Content &content)
Definition: attempt_context.hxx:82
Encapsulates results of an individual transaction operation.
Definition: transaction_get_result.hxx:38
virtual transaction_get_result replace_raw(std::shared_ptr< collection > collection, const transaction_get_result &document, const nlohmann::json &content)=0
virtual transaction_get_result insert_raw(std::shared_ptr< collection > collection, const std::string &id, const nlohmann::json &content)=0
virtual void rollback()=0
virtual boost::optional< transaction_get_result > get_optional(std::shared_ptr< collection > collection, const std::string &id)=0
Provides methods to perform transactional operations.
Definition: attempt_context.hxx:35
Exposes collection-level kv operations.
Definition: collection.hxx:46
transaction_get_result insert(std::shared_ptr< collection > collection, const std::string &id, const Content &content)
Definition: attempt_context.hxx:107