These objects are returned when using DittoScopedWriteTransaction.FindById(string) functionality.
More...
These objects are returned when using DittoScopedWriteTransaction.FindById(string) functionality.
You can use them to perform updates on, remove, evict, or find a document.
◆ Evict()
unsafe bool Ditto.SyncKit.DittoWriteTransactionPendingIDSpecificOperation.Evict |
( |
| ) |
|
|
inline |
Evict the document with the matching ID.
- Returns
true
if the document was found and evicted. false
if the document wasn't found and therefore wasn't evicted.
◆ Exec()
unsafe DittoDocument Ditto.SyncKit.DittoWriteTransactionPendingIDSpecificOperation.Exec |
( |
| ) |
|
|
inline |
◆ Remove()
unsafe bool Ditto.SyncKit.DittoWriteTransactionPendingIDSpecificOperation.Remove |
( |
| ) |
|
|
inline |
Remove the document with the matching ID.
- Returns
true
if the document was found and removed. false
if the document wasn't found and therefore wasn't removed.
◆ Update()
Update the document with the matching ID.
- Parameters
-
updater | An Action that gets called with the document matching the ID. If found, the document is a DittoMutableDocument, so you can call update-related functions on it. If the document is not found then the value provided to the action will be nil . |
- Returns
- A list of DittoUpdateResult objects that describe the updates that were performed on the document.