classQuerySpecificationWithSelectSymSelectOptionsSelectItemListOptFromClauseOptWhereClauseOptGroupClau_1e0687be
final class QuerySpecificationWithSelectSymSelectOptionsSelectItemListOptFromClauseOptWhereClauseOptGroupClau_1e0687be
implements QueryExpressionBodyForm, QueryPrimaryForm, QuerySpecificationForm, SubselectForm
uses Assertion
@visibility public.The query_specification SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\QuerySpecificationWithSelectSymSelectOptionsSelectItemListOptFromClauseOptWhereClauseOptGroupClau_1e0687be $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SelectOptionsForm $optionspublic SelectItemListForm $projectionspublic OptFromClauseForm $frompublic OptWhereClauseForm $wherepublic OptGroupClauseForm $optGroupClausepublic OptHavingClauseForm $optHavingClausepublic OptWindowClauseForm $optWindowClausepublic OptQualifyClauseForm $optQualifyClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public SelectOptionsForm $options,
public SelectItemListForm $projections,
public OptFromClauseForm $from,
public OptWhereClauseForm $where,
public OptGroupClauseForm $optGroupClause,
public OptHavingClauseForm $optHavingClause,
public OptWindowClauseForm $optWindowClause,
public OptQualifyClauseForm $optQualifyClause,
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
$options | SelectOptionsForm | |
$projections | SelectItemListForm | |
$from | OptFromClauseForm | |
$where | OptWhereClauseForm | |
$optGroupClause | OptGroupClauseForm | |
$optHavingClause | OptHavingClauseForm | |
$optWindowClause | OptWindowClauseForm | |
$optQualifyClause | OptQualifyClauseForm | |
$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 SelectOptionsForm::write() line 51
- method-call SelectItemListForm::write() line 53
- method-call OptFromClauseForm::write() line 55
- method-call OptWhereClauseForm::write() line 57
- method-call OptGroupClauseForm::write() line 59
- method-call OptHavingClauseForm::write() line 61
- method-call OptWindowClauseForm::write() line 63
- method-call OptQualifyClauseForm::write() line 65
public function withOptions(SelectOptionsForm $options): selfReturns a copy with a new options, preserving every other field.
Parameters
$options | SelectOptionsForm |
Returns
selfCalls 1
- new
selfline 73
public function withProjections(SelectItemListForm $projections): selfReturns a copy with a new projections, preserving every other field.
Parameters
$projections | SelectItemListForm |
Returns
selfCalls 1
- new
selfline 81
public function withFrom(OptFromClauseForm $from): selfReturns a copy with a new from, preserving every other field.
Parameters
$from | OptFromClauseForm |
Returns
selfCalls 1
- new
selfline 89
public function withWhere(OptWhereClauseForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | OptWhereClauseForm |
Returns
selfCalls 1
- new
selfline 97
public function withOptGroupClause(OptGroupClauseForm $optGroupClause): selfReturns a copy with a new optGroupClause, preserving every other field.
Parameters
$optGroupClause | OptGroupClauseForm |
Returns
selfCalls 1
- new
selfline 105
public function withOptHavingClause(OptHavingClauseForm $optHavingClause): selfReturns a copy with a new optHavingClause, preserving every other field.
Parameters
$optHavingClause | OptHavingClauseForm |
Returns
selfCalls 1
- new
selfline 113
public function withOptWindowClause(OptWindowClauseForm $optWindowClause): selfReturns a copy with a new optWindowClause, preserving every other field.
Parameters
$optWindowClause | OptWindowClauseForm |
Returns
selfCalls 1
- new
selfline 121
public function withOptQualifyClause(OptQualifyClauseForm $optQualifyClause): selfReturns a copy with a new optQualifyClause, preserving every other field.
Parameters
$optQualifyClause | OptQualifyClauseForm |
Returns
selfCalls 1
- new
selfline 129