Ditto 4.7.2-rc.2
Loading...
Searching...
No Matches
WriteTransaction.hpp
1#ifndef _DITTO_WRITE_TRANSACTION_
2#define _DITTO_WRITE_TRANSACTION_
3
4#include "DocumentId.hpp"
5#include "WriteTransactionResult.hpp"
6
7#include <memory>
8#include <string>
9#include <vector>
10
11struct CWriteTransaction;
12
13namespace ditto {
14class DittoHandleWrapper;
15class ScopedWriteTransaction;
16
26 friend class ScopedWriteTransaction;
27 friend class Store;
30
32 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
33 std::vector<std::unique_ptr<WriteTransactionResult>> results;
34
36 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper);
37
38public:
52 ScopedWriteTransaction scoped(std::string collection_name);
53};
54} // namespace ditto
55#endif
ScopedWriteTransaction exposes functionality that allows you to perform multiple operations on the st...
Definition ScopedWriteTransaction.hpp:23
Provides access to Collections and a write transaction API.
Definition Store.hpp:29
WriteTransaction exposes functionality that allows you to perform multiple operations on the store wi...
Definition WriteTransaction.hpp:25
ScopedWriteTransaction scoped(std::string collection_name)
Creates a ScopedWriteTransaction object that will ensure that operations called on it are all in the ...
Definition WriteTransaction.cpp:15
These objects are returned when using find-like functionality on ScopedWriteTransactions....
Definition WriteTransactionPendingCursorOperation.hpp:25
These objects are returned when ScopedWriteTransaction::find_by_id is called.
Definition WriteTransactionPendingIDSpecificOperation.hpp:25
Definition Arc.hpp:11