Class RR::ScanReportPrinters::ScanDetailReporter
In: lib/rubyrep/scan_report_printers/scan_detail_reporter.rb
Parent: ScanSummaryReporter

A ScanReportPrinter producing a summary (number of differences) only.

Methods

Attributes

primary_key_names  [RW]  Array of names of the primary key columns of the table currently being scanned.
report_mode  [RW]  Mode of reporting. Should be either
  • :full
  • :keys or
  • :diff
session  [RW]  The current Session object
tmpfile  [RW]  The temporary File receiving the differences

Public Class methods

A scan run is to be started using this scan result printer. arg is the command line argument as yielded by OptionParser#on.

Public Instance methods

Returns a cleaned row as per current report_mode. row is either a column_name => value hash or an array of 2 such rows.

Each difference is handed to the printer as described in the format as described e. g. in DirectTableScan#run

A scan of the given ‘left’ table and corresponding ‘right’ table is executed. Needs to yield so that the actual scan can be executed.

Optional method. If a scan report printer has it, it is called after the last table scan is executed. (A good place to print a final summary.)

[Validate]