TransactionalRelation
public class TransactionalRelation : MutableRelation, RelationDefaultChangeObserverImplementation
Undocumented
-
Undocumented
Declaration
Swift
open var changeObserverData: RelationDefaultChangeObserverImplementationData -
Declaration
Swift
public var debugName: String? -
Declaration
Swift
open var scheme: Scheme { get } -
Declaration
Swift
open var contentProvider: RelationContentProvider { get } -
Undocumented
Declaration
Swift
open var underlyingRelationForQueryExecution: ChangeLoggingRelation { get } -
Undocumented
Declaration
Swift
open func delete(_ query: SelectExpression) -> Result<Void, RelationError> -
Declaration
Swift
open func update(_ query: SelectExpression, newValues: Row) -> Result<Void, RelationError>
-
Undocumented
Declaration
Swift
public func takeSnapshot() -> ChangeLoggingRelationSnapshot -
Undocumented
Declaration
Swift
public func rawRestoreSnapshot(_ snapshot: ChangeLoggingRelationSnapshot) -> Result<RelationChange, RelationError> -
Undocumented
Declaration
Swift
public func computeDelta(from: ChangeLoggingRelationSnapshot, to: ChangeLoggingRelationSnapshot) -> ChangeLoggingRelationDelta -
Undocumented
Declaration
Swift
public func apply(delta: ChangeLoggingRelationDelta) -> Result<Void, RelationError>
-
Replaces the rows in this relation (asynchronously) by performing a delete-all followed by an add for each row.
Declaration
Swift
public func asyncReplaceRows(_ rows: [Row]) -
Replaces the rows in this relation (asynchronously) by performing a delete-all followed by an add for each value.
Declaration
Swift
public func asyncReplaceValues(_ values: [RelationValue])
-
Returns an AsyncReadWriteProperty that delivers a set of all RelationValues for the single attribute and updates the relation when new values are provided to the property.
Declaration
Swift
public func undoableAllRelationValues(_ db: UndoableDatabase, _ action: String) -> AsyncReadWriteProperty<Set<RelationValue>>
TransactionalRelation Class Reference