classSimpleSelectWithSelectDistinctClauseTargetListIntoClauseFromClauseWhereClauseGroupClauseHav_83a4cbe8
final class SimpleSelectWithSelectDistinctClauseTargetListIntoClauseFromClauseWhereClauseGroupClauseHav_83a4cbe8
implements ExplainableStmtForm, PreparableStmtForm, RuleActionListForm, RuleActionMultiForm, RuleActionStmtForm, RuleActionStmtOrEmptyForm, SelectStmtForm, InsertRestForm, ParseToplevelForm, RoutineBodyStmtForm, SelectClauseForm, SelectNoParensForm, SimpleSelectForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The simple_select SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\SimpleSelectWithSelectDistinctClauseTargetListIntoClauseFromClauseWhereClauseGroupClauseHav_83a4cbe8 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public DistinctClauseForm $distinctpublic TargetListForm $projectionspublic IntoClauseForm $intoClausepublic FromClauseForm $frompublic WhereClauseForm $wherepublic GroupClauseForm $groupBypublic HavingClauseForm $havingpublic WindowClauseForm $windowClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public DistinctClauseForm $distinct,
public TargetListForm $projections,
public IntoClauseForm $intoClause,
public FromClauseForm $from,
public WhereClauseForm $where,
public GroupClauseForm $groupBy,
public HavingClauseForm $having,
public WindowClauseForm $windowClause,
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
$distinct | DistinctClauseForm | |
$projections | TargetListForm | |
$intoClause | IntoClauseForm | |
$from | FromClauseForm | |
$where | WhereClauseForm | |
$groupBy | GroupClauseForm | |
$having | HavingClauseForm | |
$windowClause | WindowClauseForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 10
- method-call Writer::comments() line 48
- method-call Writer::append() line 49
- method-call DistinctClauseForm::write() line 51
- method-call TargetListForm::write() line 53
- method-call IntoClauseForm::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
public function withDistinct(DistinctClauseForm $distinct): selfReturns a copy with a new distinct, preserving every other field.
Parameters
$distinct | DistinctClauseForm |
Returns
selfCalls 1
- new
selfline 73
public function withProjections(TargetListForm $projections): selfReturns a copy with a new projections, preserving every other field.
Parameters
$projections | TargetListForm |
Returns
selfCalls 1
- new
selfline 81
public function withIntoClause(IntoClauseForm $intoClause): selfReturns a copy with a new intoClause, preserving every other field.
Parameters
$intoClause | IntoClauseForm |
Returns
selfCalls 1
- new
selfline 89
public function withFrom(FromClauseForm $from): selfReturns a copy with a new from, preserving every other field.
Parameters
$from | FromClauseForm |
Returns
selfCalls 1
- new
selfline 97
public function withWhere(WhereClauseForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | WhereClauseForm |
Returns
selfCalls 1
- new
selfline 105
public function withGroupBy(GroupClauseForm $groupBy): selfReturns a copy with a new groupBy, preserving every other field.
Parameters
$groupBy | GroupClauseForm |
Returns
selfCalls 1
- new
selfline 113
public function withHaving(HavingClauseForm $having): selfReturns a copy with a new having, preserving every other field.
Parameters
$having | HavingClauseForm |
Returns
selfCalls 1
- new
selfline 121
public function withWindowClause(WindowClauseForm $windowClause): selfReturns a copy with a new windowClause, preserving every other field.
Parameters
$windowClause | WindowClauseForm |
Returns
selfCalls 1
- new
selfline 129