|
Ditto 5.0.0
|
Represents a transaction in the Ditto store. More...
Public Member Functions | |
| Task< DittoQueryResult > | ExecuteAsync (string query, Dictionary< string, object > arguments=null) |
| Executes a DQL query and returns matching items as a query result.This method only returns results from the local store without waiting for any DittoSyncSubscription to catch up with the latest changes. Only use this method if your program must proceed with immediate results. Use a DittoStoreObserver to receive updates to query results as soon as they have been synced to this peer. | |
| Public Member Functions inherited from DittoSDK.Internal.Drop | |
| void | Dispose () |
| Suppresses finalization and initiates custom disposal logic. | |
Protected Member Functions | |
| override unsafe void | Dispose (bool disposing) |
| Protected Member Functions inherited from DittoSDK.Internal.Drop | |
| void | Dispose (bool disposing) |
| Overload for types to dispose of resources, regardless of whether the type is being disposed or finalized. Note that finalization occurs on a dedicated thread. | |
Properties | |
| DittoTransactionInfo | Info [get] |
| Provides information about the current transaction. | |
| DittoStore | Store [get] |
| The store this transaction belongs to. | |
| Properties inherited from DittoSDK.Internal.Drop | |
| bool | IsDisposed [get] |
Represents a transaction in the Ditto store.
A DittoTransaction is used to group multiple operations into a single atomic unit. This ensures that either all operations within the transaction are applied, or none of them are, maintaining the integrity of the data.
Please consult the documentation of DittoStore.TransactionAsync for more information on how to create and use transactions. For a complete guide on transactions, please refer to the Ditto documentation
.
|
inline |
Executes a DQL query and returns matching items as a query result.This method only returns results from the local store without waiting for any DittoSyncSubscription to catch up with the latest changes. Only use this method if your program must proceed with immediate results. Use a DittoStoreObserver to receive updates to query results as soon as they have been synced to this peer.
Implements DittoSDK.Store.IDittoQueryExecuting.