classSimpleSelectWithSelectOptAllClauseOptTargetListIntoClauseFromClauseWhereClauseGroupClauseHa_0d11e19c
final class SimpleSelectWithSelectOptAllClauseOptTargetListIntoClauseFromClauseWhereClauseGroupClauseHa_0d11e19c
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\SimpleSelectWithSelectOptAllClauseOptTargetListIntoClauseFromClauseWhereClauseGroupClauseHa_0d11e19c $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptAllClauseForm $optAllClausepublic OptTargetListForm $projectionspublic IntoClauseForm $intoClausepublic FromClauseForm $frompublic WhereClauseForm $wherepublic GroupClauseForm $groupBypublic HavingClauseForm $havingpublic WindowClauseForm $windowClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptAllClauseForm $optAllClause,
public OptTargetListForm $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
$optAllClause | OptAllClauseForm | |
$projections | OptTargetListForm | |
$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 OptAllClauseForm::write() line 51
- method-call OptTargetListForm::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 withOptAllClause(OptAllClauseForm $optAllClause): selfReturns a copy with a new optAllClause, preserving every other field.
Parameters
$optAllClause | OptAllClauseForm |
Returns
selfCalls 1
- new
selfline 73
public function withProjections(OptTargetListForm $projections): selfReturns a copy with a new projections, preserving every other field.
Parameters
$projections | OptTargetListForm |
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