PartialChangeUnifier Class @beta

Combines partial EC change instances (one per SQLite table row) into complete instances that span all tables mapping to a single EC entity.

The merge key is derived from the instanceKey and stage stored in $meta.instanceKey and $meta.stage.

Usage:

using reader = ChangesetReader.openFile({ fileName, db }); using unifier = new PartialChangeUnifier(); while (reader.step()) { unifier.appendFrom(reader); } for (const instance of unifier.instances) { ... }

Implements

  • Disposable

Methods

Name Description
constructor(_cache: ChangeCache = ...): PartialChangeUnifier    
[dispose](): void Releases the underlying cache.  
appendFrom(source: ChangeSource): void Append partial changes from the current reader row and merge them into the cache.  

Properties

Name Type Description
instanceCount Accessor ReadOnly number Number of complete (merged) instances currently accumulated.  
instances Accessor ReadOnly IterableIterator<ChangeInstance, any, any> Iterator over all fully-merged EC change instances.  

Defined in

Last Updated: 05 May, 2026