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.

Dropping a mapping if it existsdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TEXT SEARCH CONFIGURATION c DROP MAPPING IF EXISTS FOR word');
    $operation->statement->ifExists // => true

Properties§

public non-empty-list<Name> $tokens
public DottedName $configuration
public bool $ifExists

Methods§

public function __construct(
    public DottedName $configuration,
    public bool $ifExists,
    list<Name> $tokens,
)

Parameters

$configurationDottedNameThe configuration name
$ifExistsboolWhether IF EXISTS is written
$tokenslist<Name>The token types; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives nothing: configurations are not part of a declaration context.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 4

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