ChangeLoggingDatabase
public class ChangeLoggingDatabase
Undocumented
-
Undocumented
Declaration
Swift
public init(_ db: StoredDatabase) -
Undocumented
Declaration
Swift
public subscript(name: String) -> ChangeLoggingRelation { get } -
Undocumented
Declaration
Swift
public func save() -> Result<Void, RelationError>
-
Undocumented
See moreDeclaration
Swift
public class Transaction -
Undocumented
Declaration
Swift
public func transaction(_ transactionFunction: (Transaction) -> Void) -> Result<Void, RelationError>
-
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>
ChangeLoggingDatabase Class Reference