classIndexVisibility
final class IndexVisibility
implements IndexOption
uses Snapshot
Public API: explicitly declared with
@visibility public.VISIBLE or INVISIBLE: whether the optimizer uses the index (MySQL 8.0 and later).
Source: https://dev.mysql.com/doc/refman/8.4/en/create-index.html.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT, KEY (a) INVISIBLE)');
$create->statement->elements[1]->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Key\Option\IndexVisibility // => trueProperties§
public bool $visibleMethods§
public function __construct(public bool $visible)Parameters
$visible | bool | Whether VISIBLE is written |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.