|
Ditto 5.0.0
|
Defines the interface for executing DQL queries. More...
Public Member Functions | |
| Task< DittoQueryResult > | ExecuteAsync (string query, Dictionary< string, object > arguments=default) |
| Executes a DQL query and returns matching items as a query result. | |
Defines the interface for executing DQL queries.
| Task< DittoQueryResult > DittoSDK.Store.IDittoQueryExecuting.ExecuteAsync | ( | string | query, |
| Dictionary< string, object > | arguments = default ) |
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.
| query | A string containing a valid query expressed in DQL. |
| arguments | A dictionary of values keyed by the placeholder name without the leading :. Example: new Dictionary<string, object> { { "mileage", 123 } }. |
| DittoQueryInvalidException | Thrown if the query string is not valid DQL. |
| DittoQueryArgumentsInvalidException | Thrown if the arguments dictionary is invalid (contains unsupported types). |
| DittoTransactionReadOnlyException | Thrown when a mutating query is executed on a read-only transaction. |
| DittoException | Other DittoException errors may also be thrown. |
Implemented in DittoSDK.Store.DittoStore, and DittoSDK.Store.DittoTransaction.