classDropHistogram
final class DropHistogram
implements Histogram
uses Snapshot
Public API: explicitly declared with
@visibility public.DROP HISTOGRAM ON column, …: a request to remove the histograms of columns.
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 DROP HISTOGRAM ON a");
[$analyze->toString(), $analyze->statement->histogram->columns[0]->value === 'a'] // => ["ANALYZE TABLE t DROP HISTOGRAM ON a", true]Properties§
public list<Name> $columnsMethods§
public function __construct(list<Name> $columns)Parameters
$columns | list<Name> | The column names in written order; at least one |
Throws
InvalidConstruction When the column list is emptyCalls 2
- static-call Check::listOf() line 41
- class-const Name::class() line 41
public function columns(): list<Name>public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 59
- method-call Histograms::render() line 60
- new Histograms line 60
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.