classMergeInsertDefaults
final class MergeInsertDefaults
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The action INSERT DEFAULT VALUES of a MERGE WHEN clause: a row of column defaults is inserted.
Mirrors a MergeWhenClause with CMD_INSERT and no values. Source: https://www.postgresql.org/docs/17/sql-merge.html.
$merge = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('MERGE INTO t USING u ON t.a = u.a WHEN NOT MATCHED THEN INSERT DEFAULT VALUES');
$merge->statement->clauses[0]->action instanceof \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Merge\MergeInsertDefaults // => trueMethods§
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
MergeInsertDefaultsTestcalls
Relations§
Instantiated in 1
Type checks 1
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\MergeRule packages/sql-semantics-postgres/src/Lowering/Manipulation/MergeRule.php:136
- type SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Merge\MergeWhen packages/sql-semantics-postgres/src/Statement/Manipulation/Merge/MergeWhen.php:43