classUpdateStmtWithOptWithClauseUpdateRelationExprOptAliasSetSetClauseListFromClauseWhereOrCur_ab509204
final class UpdateStmtWithOptWithClauseUpdateRelationExprOptAliasSetSetClauseListFromClauseWhereOrCur_ab509204
implements ExplainableStmtForm, PreparableStmtForm, RuleActionListForm, RuleActionMultiForm, RuleActionStmtForm, RuleActionStmtOrEmptyForm, UpdateStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The UpdateStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\UpdateStmtWithOptWithClauseUpdateRelationExprOptAliasSetSetClauseListFromClauseWhereOrCur_ab509204 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptWithClauseForm $withpublic RelationExprOptAliasForm $relationExprOptAliaspublic SetClauseListForm $setClauseListpublic FromClauseForm $frompublic WhereOrCurrentClauseForm $whereOrCurrentClausepublic ReturningClauseForm $returningClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptWithClauseForm $with,
public RelationExprOptAliasForm $relationExprOptAlias,
public SetClauseListForm $setClauseList,
public FromClauseForm $from,
public WhereOrCurrentClauseForm $whereOrCurrentClause,
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 | |
$setClauseList | SetClauseListForm | |
$from | FromClauseForm | |
$whereOrCurrentClause | WhereOrCurrentClauseForm | |
$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 49
- method-call SetClauseListForm::write() line 53
- method-call FromClauseForm::write() line 55
- method-call WhereOrCurrentClauseForm::write() line 57
- method-call ReturningClauseForm::write() line 59
public function withWith(OptWithClauseForm $with): selfReturns a copy with a new with, preserving every other field.
Parameters
$with | OptWithClauseForm |
Returns
selfCalls 1
- new
selfline 67
public function withRelationExprOptAlias(RelationExprOptAliasForm $relationExprOptAlias): selfReturns a copy with a new relationExprOptAlias, preserving every other field.
Parameters
$relationExprOptAlias | RelationExprOptAliasForm |
Returns
selfCalls 1
- new
selfline 75
public function withSetClauseList(SetClauseListForm $setClauseList): selfReturns a copy with a new setClauseList, preserving every other field.
Parameters
$setClauseList | SetClauseListForm |
Returns
selfCalls 1
- new
selfline 83
public function withFrom(FromClauseForm $from): selfReturns a copy with a new from, preserving every other field.
Parameters
$from | FromClauseForm |
Returns
selfCalls 1
- new
selfline 91
public function withWhereOrCurrentClause(WhereOrCurrentClauseForm $whereOrCurrentClause): selfReturns a copy with a new whereOrCurrentClause, preserving every other field.
Parameters
$whereOrCurrentClause | WhereOrCurrentClauseForm |
Returns
selfCalls 1
- new
selfline 99
public function withReturningClause(ReturningClauseForm $returningClause): selfReturns a copy with a new returningClause, preserving every other field.
Parameters
$returningClause | ReturningClauseForm |
Returns
selfCalls 1
- new
selfline 107