classDropTextSearchMapping
final class DropTextSearchMapping
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to remove the mappings of token types from a text search configuration.
Rule: PG-TS-CONFIG-003. Mirrors AlterTSConfigurationStmt of kind DROP_MAPPING with missing_ok. Source: https://www.postgresql.org/docs/17/sql-altertsconfig.html. Status: Implemented.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TEXT SEARCH CONFIGURATION c DROP MAPPING IF EXISTS FOR word');
$operation->statement->ifExists // => trueProperties§
public non-empty-list<Name> $tokenspublic DottedName $configurationpublic bool $ifExistsMethods§
public function __construct(
public DottedName $configuration,
public bool $ifExists,
list<Name> $tokens,
)Parameters
$configuration | DottedName | The configuration name |
$ifExists | bool | Whether IF EXISTS is written |
$tokens | list<Name> | The token types; at least one |
Calls 2
- static-call Check::listOf() line 44
- class-const Name::class() line 44
public function deriveStatement(Derivation $derivation): voidDerives nothing: configurations are not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 59
- method-call Output::symbol() line 66
- method-call Output::name() line 68
- class-const NameUse::Column() line 68
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 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\TextSearchRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/TextSearchRule.php:62
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\TextSearchRule::statement() packages/sql-semantics-postgres/src/Lowering/Catalog/TextSearchRule.php:63