ChangeLoggingRelation
public class ChangeLoggingRelation
Undocumented
-
Declaration
Swift
public var debugName: String? -
Undocumented
Declaration
Swift
public var changeObserverData: RelationDefaultChangeObserverImplementationData -
Undocumented
Declaration
Swift
public convenience init(baseRelation: MutableRelation) -
Declaration
Swift
public func update(_ query: SelectExpression, newValues: Row) -> Result<Void, RelationError>
-
Declaration
Swift
public var scheme: Scheme { get } -
Declaration
Swift
public var contentProvider: RelationContentProvider { get } -
Undocumented
Declaration
Swift
public func delete(_ query: SelectExpression) -> Result<Void, RelationError>
-
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>
ChangeLoggingRelation Class Reference