class DittoScopedWriteTransaction
DittoScopedWriteTransaction exposes functionality that allows you to perform multiple operations on the store within a single write transaction.
DittoScopedWriteTransaction(baseTransaction: DittoWriteTransaction, collectionName: String)
DittoScopedWriteTransaction exposes functionality that allows you to perform multiple operations on the store within a single write transaction. |
val baseTransaction: DittoWriteTransaction |
|
val collectionName: String
the name of the collection that the scoped write transaction is scoped to. |
fun find(query: String): DittoWriteTransactionPendingCursorOperation
Generates a DittoWriteTransactionPendingCursorOperation with the provided query that can be used to update, remove, or evict documents. |
|
fun findAll(): DittoWriteTransactionPendingCursorOperation
Generates a DittoWriteTransactionPendingCursorOperation that can be used to update, remove or evict documents. |
|
fun findByID(id: String): DittoWriteTransactionPendingIDSpecificOperation
Generates a DittoWriteTransactionPendingIDSpecificOperation with the provided document ID that can be used to update, remove, or evict the document. |
|
fun <T : Any> insert(value: T, id: String? = null, isDefault: Boolean = false): String
Inserts a document into the scoped collection and returns the document's ID. |