ChangeLoggingRelation

public class ChangeLoggingRelation

Undocumented

  • Save changes into the underlying database. Note that this does not use a transaction. Since we’re likely to be saving multiple tables at once, the transaction takes place in that code to ensure everything is done together.

    Declaration

    Swift

    public func save() -> Result<Void, RelationError>
  • Undocumented

    Declaration

    Swift

    public func takeSnapshot() -> ChangeLoggingRelationSnapshot
  • Undocumented

    Declaration

    Swift

    public func restoreSnapshot(_ snapshot: ChangeLoggingRelationSnapshot) -> Result<Void, RelationError>
  • Undocumented

    Declaration

    Swift

    public func computeDelta(from: ChangeLoggingRelationSnapshot, to: ChangeLoggingRelationSnapshot) -> ChangeLoggingRelationDelta
  • Undocumented

    Declaration

    Swift

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