DittoTransaction

Represents a transaction in the Ditto store.

A DittoTransaction is used to group multiple operations into a single atomic unit. This ensures that either all operations within the transaction are applied, or none of them are, maintaining the integrity of the data.

Please consult the documentation of DittoStore.transaction for more information on how to create and use transactions. For a complete guide on transactions, please refer to the Ditto documentation.

Since

4.11.0

See also

Properties

Link copied to clipboard

Provides information about the current transaction.

Link copied to clipboard

The DittoStore instance that this transaction belongs to.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun execute(query: String, arguments: Map<String, Any?>?): DittoQueryResult

Executes a DQL query and returns matching items as a query result.

Link copied to clipboard
@JvmName(name = "execute")
fun executeBlocking(query: String, arguments: Map<String, Any?>? = mapOf()): DittoQueryResult

Implements the DittoQueryExecuting protocol.