classOptOnConflictWithOnConflictOptConfExprDoUpdateSetSetClauseListWhereClause_e0d5ce03
final class OptOnConflictWithOnConflictOptConfExprDoUpdateSetSetClauseListWhereClause_e0d5ce03
implements OptOnConflictForm
uses Assertion
Public API: explicitly declared with
@visibility public.The opt_on_conflict SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\OptOnConflictWithOnConflictOptConfExprDoUpdateSetSetClauseListWhereClause_e0d5ce03 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptConfExprForm $optConfExprpublic SetClauseListForm $setClauseListpublic WhereClauseForm $wherepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptConfExprForm $optConfExpr,
public SetClauseListForm $setClauseList,
public WhereClauseForm $where,
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
$optConfExpr | OptConfExprForm | |
$setClauseList | SetClauseListForm | |
$where | WhereClauseForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call OptConfExprForm::write() line 43
- method-call SetClauseListForm::write() line 51
- method-call WhereClauseForm::write() line 53
public function withOptConfExpr(OptConfExprForm $optConfExpr): selfReturns a copy with a new optConfExpr, preserving every other field.
Parameters
$optConfExpr | OptConfExprForm |
Returns
selfCalls 1
- new
selfline 61
public function withSetClauseList(SetClauseListForm $setClauseList): selfReturns a copy with a new setClauseList, preserving every other field.
Parameters
$setClauseList | SetClauseListForm |
Returns
selfCalls 1
- new
selfline 69
public function withWhere(WhereClauseForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | WhereClauseForm |
Returns
selfCalls 1
- new
selfline 77