DVRecordTableRemote class

The server side of replay over a DVRecordTable: deduplicates by mutation id and resolves by the declared strategy and clock.

Implemented types

Constructors

DVRecordTableRemote(DVRecordTable table, {required DVConflict strategy, Future<bool> authorize(DVMutation mutation)?, bool validate(Map<String, Object?> values)?, String? actor})

Properties

actor → String?
final
appliedTable → String
Mutation ids already applied, and what came of each.
no setter
authorize → Future<bool> Function(DVMutation mutation)?
Whether this mutation may be applied at all, asked before anything is written and before validate.
final
clockTable → String
The declared clock of the last write that landed on each record.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensitiveColumns → Set<String>
The columns an outcome must not carry back.
no setteroverride
strategy → DVConflict
final
table → DVRecordTable
final
validate → bool Function(Map<String, Object?> values)?
Returns false to refuse a write permanently, as failed validation would.
final

Methods

apply(DVMutation mutation) → Future<DVRemoteOutcome>
override
applyDirect(Map<String, Object?> values, {required DateTime at}) → Future<DVRemoteOutcome>
A write made on the server itself, at at by the declared clock.
ensureSchema() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited