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.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\UpdateStmtWithOptWithClauseUpdateRelationExprOptAliasSetSetClauseListFromClauseWhereOrCur_ab509204 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public RelationExprOptAliasForm $relationExprOptAlias
public SetClauseListForm $setClauseList
public WhereOrCurrentClauseForm $whereOrCurrentClause
public ReturningClauseForm $returningClause
public 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

$withOptWithClauseForm
$relationExprOptAliasRelationExprOptAliasForm
$setClauseListSetClauseListForm
$fromFromClauseForm
$whereOrCurrentClauseWhereOrCurrentClauseForm
$returningClauseReturningClauseForm
$commentsComments
Calls 3
public function write(Writer $writer): void
public function withWith(OptWithClauseForm $with): self

Returns a copy with a new with, preserving every other field.

Parameters

Returns

self
Calls 1
public function withRelationExprOptAlias(RelationExprOptAliasForm $relationExprOptAlias): self

Returns a copy with a new relationExprOptAlias, preserving every other field.

Parameters

$relationExprOptAliasRelationExprOptAliasForm

Returns

self
Calls 1
public function withSetClauseList(SetClauseListForm $setClauseList): self

Returns a copy with a new setClauseList, preserving every other field.

Parameters

$setClauseListSetClauseListForm

Returns

self
Calls 1
public function withFrom(FromClauseForm $from): self

Returns a copy with a new from, preserving every other field.

Parameters

Returns

self
Calls 1
public function withWhereOrCurrentClause(WhereOrCurrentClauseForm $whereOrCurrentClause): self

Returns a copy with a new whereOrCurrentClause, preserving every other field.

Parameters

$whereOrCurrentClauseWhereOrCurrentClauseForm

Returns

self
Calls 1
public function withReturningClause(ReturningClauseForm $returningClause): self

Returns a copy with a new returningClause, preserving every other field.

Parameters

$returningClauseReturningClauseForm

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1