Ditto Store
Provides access to execute Ditto queries, work with DittoCollections and a write transaction API.
Types
Functions
Returns a DittoCollection with the provided name.
Returns a list of the names of collections in the store.
Returns an object that lets you fetch or observe the collections in the store.
Non-suspend version of execute. Provides a simpler API to Java where Kotlin Coroutines are not typically used.
Returns a DittoCollection with the provided name.
Returns a hash representing the current version of the given queries. When a document matching such queries gets mutated, the hash will change as well.
Returns a sequence of English words representing the current version of the given queries. When a document matching such queries gets mutated, the words will change as well.
Convenience method, same as registerObserver where signalNext
is called automatically after the changeHandler finishes.
Installs and returns a store observer for a query, configuring Ditto to trigger the passed in change handler whenever documents in the local store change such that the result of the matching query changes. The passed in query must be a SELECT
query, otherwise a StoreError with QueryNotSupported reason is thrown.
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections.