classIndexUsing
final class IndexUsing
implements IndexOption
uses Snapshot
Public API: explicitly declared with
@visibility public.A USING clause written after the key parts. TYPE is a deprecated synonym of USING.
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) USING HASH)');
$create->statement->elements[1]->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Key\Option\IndexUsing // => trueProperties§
public IndexAlgorithm $algorithmMethods§
public function __construct(public IndexAlgorithm $algorithm)Parameters
$algorithm | IndexAlgorithm | The index structure |
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.