class DittoStore
Provides access to DittoCollections and a write transaction API.
fun collection(name: String): DittoCollection
Returns a DittoCollection with the provided name. |
|
fun collectionNames(): List<String>
Returns a list of the names of collections in the store. |
|
fun write(block: (DittoWriteTransaction) -> Unit): List<DittoWriteTransactionResult> fun write(handler: DittoWriteTransactionHandler): List<DittoWriteTransactionResult>
Allows you to group multiple operations together that affect multiple documents, potentially across multiple collections. |