1#ifndef _DITTO_WRITE_TRANSACTION_PENDING_ID_SPECIFIC_OPERATION_
2#define _DITTO_WRITE_TRANSACTION_PENDING_ID_SPECIFIC_OPERATION_
5#include "DocumentId.hpp"
6#include "MutableDocument.hpp"
7#include "UpdateResult.hpp"
8#include "WriteTransaction.hpp"
16class DittoHandleWrapper;
28 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
33 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper,
55 std::shared_ptr<Document>
exec()
const;
67 std::vector<std::unique_ptr<UpdateResult>>
This is used as part of update operations for documents.
Definition MutableDocument.hpp:29
ScopedWriteTransaction exposes functionality that allows you to perform multiple operations on the st...
Definition ScopedWriteTransaction.hpp:23
WriteTransaction exposes functionality that allows you to perform multiple operations on the store wi...
Definition WriteTransaction.hpp:25
These objects are returned when ScopedWriteTransaction::find_by_id is called.
Definition WriteTransactionPendingIDSpecificOperation.hpp:25
bool remove() const
Remove the document with the matching ID.
Definition WriteTransactionPendingIDSpecificOperation.cpp:38
bool evict() const
Evict the document with the matching ID.
Definition WriteTransactionPendingIDSpecificOperation.cpp:49
std::shared_ptr< Document > exec() const
Execute the find operation to return the document with the matching ID, if it exists.
Definition WriteTransactionPendingIDSpecificOperation.cpp:22
std::string collection_name
Definition WriteTransactionPendingIDSpecificOperation.hpp:40
DocumentId document_id
Definition WriteTransactionPendingIDSpecificOperation.hpp:45
std::vector< std::unique_ptr< UpdateResult > > update(std::function< void(MutableDocument &)> fn) const
Update the document with the matching ID.
Definition WriteTransactionPendingIDSpecificOperation.cpp:28
An identifier for a Document.
Definition DocumentId.hpp:21