classAlterTextSearchDictionary
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.
$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> $optionspublic DottedName $nameMethods§
public function __construct(public DottedName $name, list<Definition> $options)Parameters
$name | DottedName | The dictionary name |
$options | list<Definition> | The options; at least one |
Calls 2
- static-call Check::listOf() line 42
- class-const Definition::class() line 42
public function deriveStatement(Derivation $derivation): voidDerives the option values.
Parameters
$derivation | Derivation |
Calls 2
- method-call ClauseFacts::derive() line 50
- new ClauseFacts line 50
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.