classMergeAction
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.
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\MergeAction())->outputName()->value // => 'merge_action'Methods§
public function outputName(): NameNames an unaliased result column.
Returns
Test cases 1
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFactDerives the documented type and NULL fact.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 4
- new ScalarFact line 48
- new Known line 48
- class-const Builtin::Text() line 48
- class-const Nullability::NotNull() line 48
public function render(Output $out): voidWrites MERGE_ACTION().
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 56
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.