\Drupal\strata\Capture ReconcileReport

What one reconciliation pass found.

The number to read is drifted. Zero means every table that changed since the last pass had an operation recorded for it, which is the only evidence that capture is complete. Anything above zero names the tables the history has a gap for.

Summary

Methods
Properties
Constants
__construct
isClean
summary
jsonSerialize
examined
changed
drifted
captured
drift
problems
seconds
complete
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$examined

$examined : int

Type

int

$changed

$changed : int

Type

int

$drifted

$drifted : int

Type

int

$captured

$captured : int

Type

int

$drift

$drift : array

Type

array<string|int, mixed>

$problems

$problems : array

Type

array<string|int, mixed>

$seconds

$seconds : float

Type

float

$complete

$complete : bool

Type

bool

Methods

__construct()

__construct(int  $examined = 0, int  $changed = 0, int  $drifted = 0, int  $captured = 0, array  $drift = [], list  $problems = [], float  $seconds = 0.0, bool  $complete = true) : mixed

Constructs a report.

Parameters

int $examined

Tables whose watermark was read.

int $changed

Tables whose watermark moved.

int $drifted

Tables that moved with no captured operation to account for it.

int $captured

Rows the pass captured to close a gap.

array $drift

Table name keyed to what moved, for the tables that drifted.

list $problems

One line per table that could not be read.

float $seconds

How long the pass took.

bool $complete

FALSE when the pass stopped at a limit rather than covering every captured table.

Returns

mixed —

isClean()

isClean() : bool

Whether capture accounted for every change the pass saw.

Returns

bool —

TRUE when nothing drifted and every table was readable.

summary()

summary() : string

A one-line summary for a log entry or a command's output.

Returns

string —

The summary.

jsonSerialize()

jsonSerialize() : array<string,mixed>

{@inheritdoc}

Returns

array

The report as a plain array.