ChangeLoggingDatabase

public class ChangeLoggingDatabase

Undocumented

  • Undocumented

    Declaration

    Swift

    public func takeSnapshot() -> ChangeLoggingDatabaseSnapshot
  • Undocumented

    Declaration

    Swift

    public func restoreSnapshot(_ snapshot: ChangeLoggingDatabaseSnapshot) -> Result<Void, RelationError>
  • A wrapper function that performs a transaction and provides before and after snapshots to the caller.

    Declaration

    Swift

    public func transactionWithSnapshots(_ transactionFunction: (Transaction) -> Void) -> (before: ChangeLoggingDatabaseSnapshot, after: ChangeLoggingDatabaseSnapshot)
  • Undocumented

    Declaration

    Swift

    public func computeDelta(from: ChangeLoggingDatabaseSnapshot, to: ChangeLoggingDatabaseSnapshot) -> ChangeLoggingDatabaseDelta
  • Undocumented

    Declaration

    Swift

    public func apply(delta: ChangeLoggingDatabaseDelta) -> Result<Void, RelationError>