ChangesetECAdaptor Class

Transform sqlite change to ec change. EC change is partial change as it is per table while a single instance can span multiple table.

@note PrimitiveArray and StructArray are not supported types.

Implements

Methods

Name Description
constructor(reader: SqliteChangesetReader, disableMetaData: boolean = false): ChangesetECAdaptor Construct adaptor with a initialized reader.  
acceptClass(classFullName: string): ChangesetECAdaptor Setup filter that will result in change enumeration restricted to  
acceptOp(op: SqliteChangeOp): ChangesetECAdaptor Setup filter that will result in change enumeration restricted to  
acceptTable(table: string): ChangesetECAdaptor Setup filter that will result in change enumeration restricted to  
close(): void close current instance and it will also close the changeset reader.  
dispose(): void dispose current instance and it will also dispose the changeset reader.  
isECTable(tableName: string): boolean Check if sqlite change table is a EC data table  
step(): boolean Advance reader to next change or a change that meets the filter set in the current adaptor  

Properties

Name Type Description
debugFlags Readonly { replaceBlobWithEllipsis: boolean, replaceGeomWithEllipsis: boolean, replaceGuidWithEllipsis: boolean } set debug flags  
deleted undefined | ChangedECInstance Return partial deleted instance.  
boolean    
inserted undefined | ChangedECInstance Return partial inserted instance  
isDeleted Accessor ReadOnly boolean Return true if current change is of type "Deleted"  
isInserted Accessor ReadOnly boolean Return true if current change is of type "Inserted"  
isUpdated Accessor ReadOnly boolean Return true if current change is of type "Updated"  
op Accessor ReadOnly SqliteChangeOp helper method around reader.op  
reader Readonly SqliteChangesetReader wrap changeset reader.  

Defined in

Last Updated: 01 May, 2024