daff.TableDiff
Build a highlighter diff of two/three tables.
Type: class
Constructor:
new(align : Alignment, flags : CompareFlags)
Parameters:
align
a pre-computed alignment of the tables involvedflags
options to control the appearance of the diff
Methods:
getComparisonState () : TableComparisonState
getSummary () : DiffSummary
Get statistics of the diff - number of rows deleted, updated,
etc.
hasDifference () : Bool
Returns: true if a difference was found during call to
hilite()
hasSchemaDifference () : Bool
Returns: true if a schema difference was found during call to
hilite()
hilite (output : Table) : Bool
Generate a highlighter diff.
Parameters:
output
the table in which to place the diff - it can then be converted to html usingDiffRender
Returns: true on success
hiliteWithNesting (output : Tables) : Bool
isNested () : Bool
setCellBuilder (builder : CellBuilder) : Void
If you wish to customize how diff cells are generated,
call this prior to calling `hilite()`.
Parameters:
builder
hooks to generate custom cells