DittoTransaction

public class DittoTransaction
extension DittoTransaction: DittoQueryExecuting

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(_:hint:with:) for more information on how to create and use transactions. For a complete guide on transactions, please refer to the Ditto documentation.

See also

DittoStore.transaction(_:hint:with:)
  • Provides information about the current transaction.

    Declaration

    Swift

    public var info: DittoTransactionInfo { get }
  • The store this transaction belongs to.

    Declaration

    Swift

    public let store: DittoStore

DittoQueryExecuting