final class MergeAction
    implements Scalar, OutputNaming
    uses Snapshot
Public API: explicitly declared with @visibility public.

MERGE_ACTION(): the action a MERGE performed for the row returned (PostgreSQL 17).

Mirrors PostgreSQL's MergeSupportFunc node. Rule: PG-MERGE-ACTION-001. Facts: text, never NULL (INSERT, UPDATE or DELETE). The result column is named merge_action. Source: https://www.postgresql.org/docs/17/functions-merge-support.html. Status: Implemented.

Naming the result columndoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\MergeAction())->outputName()->value // => 'merge_action'

Methods§

public function outputName(): Name

Names an unaliased result column.

Returns

Test cases 1
Calls 1
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFact

Derives the documented type and NULL fact.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Calls 4
public function render(Output $out): void

Writes MERGE_ACTION().

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 1
Type checks 1