$realm
$realm : \Drupal\strata\Journal\Realm
What one table saw during one request.
The statement tap folds many statements per table into one of these, so a request writing four hundred rows to one table produces one operation rather than four hundred.
The verb it keeps is the most consequential one seen, not the last. A window holding an insert and a truncate is described by the truncate, because that is what a reader has to notice, and a structural change outranks every content change for the same reason.
$realm : \Drupal\strata\Journal\Realm
$verb : \Drupal\strata\Journal\Verb
fold(\Drupal\strata\Capture\SqlStatement $statement, string $sample) : self
Folds another statement in.
| \Drupal\strata\Capture\SqlStatement | $statement | The classified statement. |
| string | $sample | Its shape, kept only when it becomes the described statement. |
A new record.
fieldNames() : list<string>
The keywords seen, as the field names an operation records.
A statement has no fields, so the keywords are what a diff viewer can usefully list: they say whether the window inserted, updated, deleted or restructured.
The keywords, in first-seen order.
__construct(\Drupal\strata\Journal\Realm $realm, \Drupal\strata\Journal\Verb $verb, int $statements, array$keywords, string $sample) : mixed
Constructs a record of one table's writes.
| \Drupal\strata\Journal\Realm | $realm | Realm::TABLE for row changes, Realm::SCHEMA once anything structural has been seen. |
| \Drupal\strata\Journal\Verb | $verb | The most consequential verb seen. |
| int | $statements | How many statements were folded in. |
| array |
$keywords | Leading keyword keyed to how many statements began with it. |
| string | $sample | The shape of the statement that set the current verb, safe to show in a timeline. |