classPLpgSqlExprWithOptDistinctClauseOptTargetListFromClauseWhereClauseGroupClauseHavingClauseW_ea473d71
final class PLpgSqlExprWithOptDistinctClauseOptTargetListFromClauseWhereClauseGroupClauseHavingClauseW_ea473d71
implements PLpgSqlExprForm
uses Assertion
@visibility public.The PLpgSQL_Expr SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\PLpgSqlExprWithOptDistinctClauseOptTargetListFromClauseWhereClauseGroupClauseHavingClauseW_ea473d71 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptDistinctClauseForm $optDistinctClausepublic OptTargetListForm $projectionspublic FromClauseForm $frompublic WhereClauseForm $wherepublic GroupClauseForm $groupBypublic HavingClauseForm $havingpublic WindowClauseForm $windowClausepublic OptSortClauseForm $optSortClausepublic OptSelectLimitForm $optSelectLimitpublic OptForLockingClauseForm $optForLockingClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptDistinctClauseForm $optDistinctClause,
public OptTargetListForm $projections,
public FromClauseForm $from,
public WhereClauseForm $where,
public GroupClauseForm $groupBy,
public HavingClauseForm $having,
public WindowClauseForm $windowClause,
public OptSortClauseForm $optSortClause,
public OptSelectLimitForm $optSelectLimit,
public OptForLockingClauseForm $optForLockingClause,
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
$optDistinctClause | OptDistinctClauseForm | |
$projections | OptTargetListForm | |
$from | FromClauseForm | |
$where | WhereClauseForm | |
$groupBy | GroupClauseForm | |
$having | HavingClauseForm | |
$windowClause | WindowClauseForm | |
$optSortClause | OptSortClauseForm | |
$optSelectLimit | OptSelectLimitForm | |
$optForLockingClause | OptForLockingClauseForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 11
- method-call Writer::comments() line 52
- method-call OptDistinctClauseForm::write() line 53
- method-call OptTargetListForm::write() line 55
- method-call FromClauseForm::write() line 57
- method-call WhereClauseForm::write() line 59
- method-call GroupClauseForm::write() line 61
- method-call HavingClauseForm::write() line 63
- method-call WindowClauseForm::write() line 65
- method-call OptSortClauseForm::write() line 67
- method-call OptSelectLimitForm::write() line 69
- method-call OptForLockingClauseForm::write() line 71
public function withOptDistinctClause(OptDistinctClauseForm $optDistinctClause): selfReturns a copy with a new optDistinctClause, preserving every other field.
Parameters
$optDistinctClause | OptDistinctClauseForm |
Returns
selfCalls 1
- new
selfline 79
public function withProjections(OptTargetListForm $projections): selfReturns a copy with a new projections, preserving every other field.
Parameters
$projections | OptTargetListForm |
Returns
selfCalls 1
- new
selfline 87
public function withFrom(FromClauseForm $from): selfReturns a copy with a new from, preserving every other field.
Parameters
$from | FromClauseForm |
Returns
selfCalls 1
- new
selfline 95
public function withWhere(WhereClauseForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | WhereClauseForm |
Returns
selfCalls 1
- new
selfline 103
public function withGroupBy(GroupClauseForm $groupBy): selfReturns a copy with a new groupBy, preserving every other field.
Parameters
$groupBy | GroupClauseForm |
Returns
selfCalls 1
- new
selfline 111
public function withHaving(HavingClauseForm $having): selfReturns a copy with a new having, preserving every other field.
Parameters
$having | HavingClauseForm |
Returns
selfCalls 1
- new
selfline 119
public function withWindowClause(WindowClauseForm $windowClause): selfReturns a copy with a new windowClause, preserving every other field.
Parameters
$windowClause | WindowClauseForm |
Returns
selfCalls 1
- new
selfline 127
public function withOptSortClause(OptSortClauseForm $optSortClause): selfReturns a copy with a new optSortClause, preserving every other field.
Parameters
$optSortClause | OptSortClauseForm |
Returns
selfCalls 1
- new
selfline 135
public function withOptSelectLimit(OptSelectLimitForm $optSelectLimit): selfReturns a copy with a new optSelectLimit, preserving every other field.
Parameters
$optSelectLimit | OptSelectLimitForm |
Returns
selfCalls 1
- new
selfline 143
public function withOptForLockingClause(OptForLockingClauseForm $optForLockingClause): selfReturns a copy with a new optForLockingClause, preserving every other field.
Parameters
$optForLockingClause | OptForLockingClauseForm |
Returns
selfCalls 1
- new
selfline 151