final class AlterTextSearchDictionary
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

A request to change the template options of a text search dictionary.

Rule: PG-TS-DICTIONARY-001. Mirrors AlterTSDictionaryStmt; an option without a value is removed. Source: https://www.postgresql.org/docs/17/sql-altertsdictionary.html. Status: Implemented.

Changing a dictionary optiondoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TEXT SEARCH DICTIONARY my_dict (StopWords = newrussian)');
    $operation->statement->options[0]->name->value // => 'stopwords'

Properties§

public non-empty-list<Definition> $options
public DottedName $name

Methods§

public function __construct(public DottedName $name, list<Definition> $options)

Parameters

$nameDottedNameThe dictionary name
$optionslist<Definition>The options; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the option values.

Parameters

$derivationDerivation
Calls 2
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 1

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1