final class IndexParser
    implements IndexOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

The WITH PARSER option of a full-text index: the full-text parser plugin.

Source: https://dev.mysql.com/doc/refman/8.4/en/create-index.html.

Reading an index optiondoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a TEXT, FULLTEXT (a) WITH PARSER ngram)');
    $create->statement->elements[1]->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Key\Option\IndexParser // => true

Properties§

public Name $parser

Methods§

public function __construct(public Name $parser)

Parameters

$parserNameThe parser plugin
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 2

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1