classMergeStmtWithOptWithClauseMergeIntoRelationExprOptAliasUsingTableRefOnAExprMergeWhenList_76187741
final class MergeStmtWithOptWithClauseMergeIntoRelationExprOptAliasUsingTableRefOnAExprMergeWhenList_76187741
implements ExplainableStmtForm, MergeStmtForm, PreparableStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The MergeStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\MergeStmtWithOptWithClauseMergeIntoRelationExprOptAliasUsingTableRefOnAExprMergeWhenList_76187741 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptWithClauseForm $withpublic RelationExprOptAliasForm $relationExprOptAliaspublic TableRefForm $tableRefpublic AExprForm $aExprpublic MergeWhenListForm $mergeWhenListpublic ReturningClauseForm $returningClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptWithClauseForm $with,
public RelationExprOptAliasForm $relationExprOptAlias,
public TableRefForm $tableRef,
public AExprForm $aExpr,
public MergeWhenListForm $mergeWhenList,
public ReturningClauseForm $returningClause,
public Comments $comments = new \SqlSemantics\Statement\Comments(),
)Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.
Parameters
$with | OptWithClauseForm | |
$relationExprOptAlias | RelationExprOptAliasForm | |
$tableRef | TableRefForm | |
$aExpr | AExprForm | |
$mergeWhenList | MergeWhenListForm | |
$returningClause | ReturningClauseForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 8
- method-call Writer::comments() line 44
- method-call OptWithClauseForm::write() line 45
- method-call Writer::append() line 47
- method-call RelationExprOptAliasForm::write() line 51
- method-call TableRefForm::write() line 55
- method-call AExprForm::write() line 59
- method-call MergeWhenListForm::write() line 61
- method-call ReturningClauseForm::write() line 63
public function withWith(OptWithClauseForm $with): selfReturns a copy with a new with, preserving every other field.
Parameters
$with | OptWithClauseForm |
Returns
selfCalls 1
- new
selfline 71
public function withRelationExprOptAlias(RelationExprOptAliasForm $relationExprOptAlias): selfReturns a copy with a new relationExprOptAlias, preserving every other field.
Parameters
$relationExprOptAlias | RelationExprOptAliasForm |
Returns
selfCalls 1
- new
selfline 79
public function withTableRef(TableRefForm $tableRef): selfReturns a copy with a new tableRef, preserving every other field.
Parameters
$tableRef | TableRefForm |
Returns
selfCalls 1
- new
selfline 87
public function withAExpr(AExprForm $aExpr): selfpublic function withMergeWhenList(MergeWhenListForm $mergeWhenList): selfReturns a copy with a new mergeWhenList, preserving every other field.
Parameters
$mergeWhenList | MergeWhenListForm |
Returns
selfCalls 1
- new
selfline 103
public function withReturningClause(ReturningClauseForm $returningClause): selfReturns a copy with a new returningClause, preserving every other field.
Parameters
$returningClause | ReturningClauseForm |
Returns
selfCalls 1
- new
selfline 111