Ditto Store
class DittoStore
Content copied to clipboard
Provides access to DittoCollections and a write transaction API.
Functions
collection
Link copied to clipboard
Returns a DittoCollection with the provided name.
collection Names
Link copied to clipboard
Returns a list of the names of collections in the store.
collections
Link copied to clipboard
Returns an object that lets you fetch or observe the collections in the store.
get
Link copied to clipboard
Returns a DittoCollection with the provided name.
queries Hash
Link copied to clipboard
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.
queries Hash Mnemonic
Link copied to clipboard
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.
write
Link copied to clipboard
fun write(block: (DittoWriteTransaction) -> Unit): List<DittoWriteTransactionResult>
Content copied to clipboard
fun write(handler: DittoWriteTransactionHandler): List<DittoWriteTransactionResult>
Content copied to clipboard
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections.