classLoadHistogram
final class LoadHistogram
implements Histogram
uses Snapshot
Public API: explicitly declared with
@visibility public.UPDATE HISTOGRAM ON column USING DATA 'json': a request to store a histogram given as its JSON form (MySQL 8.0.31 and later).
The columns are those of the one table ANALYZE TABLE names; the statement checks them (MYSQL-HISTOGRAM-001). Source: https://dev.mysql.com/doc/refman/8.4/en/analyze-table.html.
$analyze = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("ANALYZE TABLE t UPDATE HISTOGRAM ON a USING DATA '{}'");
[$analyze->toString(), $analyze->statement->histogram->data->value === '{}'] // => ["ANALYZE TABLE t UPDATE HISTOGRAM ON a USING DATA '{}'", true]Properties§
public list<Name> $columnspublic Text $dataMethods§
Parameters
Throws
InvalidConstruction When the column list is emptyCalls 2
- static-call Check::listOf() line 43
- class-const Name::class() line 43
public function columns(): list<Name>public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 61
- method-call Histograms::render() line 62
- new Histograms line 62
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.