final class MergeDelete
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The action DELETE of a MERGE WHEN clause: the target row is deleted.

Mirrors a MergeWhenClause with CMD_DELETE. Source: https://www.postgresql.org/docs/17/sql-merge.html.

Reading a delete actiondoctest
$merge = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('MERGE INTO t USING u ON t.a = u.a WHEN MATCHED THEN DELETE');
    $merge->statement->clauses[0]->action instanceof \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Merge\MergeDelete // => true

Methods§

public function render(Output $out): void

Writes DELETE.

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
Type checks 1
Type declarations 2