classOneselectWithSelectDistinctSelcollistFromWhereOptGroupbyOptHavingOptOrderbyOptLimitOpt_218e0475
final class OneselectWithSelectDistinctSelcollistFromWhereOptGroupbyOptHavingOptOrderbyOptLimitOpt_218e0475
implements CmdForm, CmdxForm, OneselectForm, SelectForm, SelectnowithForm, Command
uses Assertion
@visibility public.The oneselect SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\Sqlite\Value\OneselectWithSelectDistinctSelcollistFromWhereOptGroupbyOptHavingOptOrderbyOptLimitOpt_218e0475 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public DistinctForm $distinctpublic SelcollistForm $projectionspublic FromForm $frompublic WhereOptForm $wherepublic GroupbyOptForm $groupBypublic HavingOptForm $havingpublic OrderbyOptForm $orderBypublic LimitOptForm $paginationpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public DistinctForm $distinct,
public SelcollistForm $projections,
public FromForm $from,
public WhereOptForm $where,
public GroupbyOptForm $groupBy,
public HavingOptForm $having,
public OrderbyOptForm $orderBy,
public LimitOptForm $pagination,
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 | DistinctForm | |
$projections | SelcollistForm | |
$from | FromForm | |
$where | WhereOptForm | |
$groupBy | GroupbyOptForm | |
$having | HavingOptForm | |
$orderBy | OrderbyOptForm | |
$pagination | LimitOptForm | |
$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 DistinctForm::write() line 51
- method-call SelcollistForm::write() line 53
- method-call FromForm::write() line 55
- method-call WhereOptForm::write() line 57
- method-call GroupbyOptForm::write() line 59
- method-call HavingOptForm::write() line 61
- method-call OrderbyOptForm::write() line 63
- method-call LimitOptForm::write() line 65
public function withDistinct(DistinctForm $distinct): selfReturns a copy with a new distinct, preserving every other field.
Parameters
$distinct | DistinctForm |
Returns
selfCalls 1
- new
selfline 73
public function withProjections(SelcollistForm $projections): selfReturns a copy with a new projections, preserving every other field.
Parameters
$projections | SelcollistForm |
Returns
selfCalls 1
- new
selfline 81
public function withFrom(FromForm $from): selfpublic function withWhere(WhereOptForm $where): selfReturns a copy with a new where, preserving every other field.
Parameters
$where | WhereOptForm |
Returns
selfCalls 1
- new
selfline 97
public function withGroupBy(GroupbyOptForm $groupBy): selfReturns a copy with a new groupBy, preserving every other field.
Parameters
$groupBy | GroupbyOptForm |
Returns
selfCalls 1
- new
selfline 105
public function withHaving(HavingOptForm $having): selfReturns a copy with a new having, preserving every other field.
Parameters
$having | HavingOptForm |
Returns
selfCalls 1
- new
selfline 113
public function withOrderBy(OrderbyOptForm $orderBy): selfReturns a copy with a new orderBy, preserving every other field.
Parameters
$orderBy | OrderbyOptForm |
Returns
selfCalls 1
- new
selfline 121
public function withPagination(LimitOptForm $pagination): selfReturns a copy with a new pagination, preserving every other field.
Parameters
$pagination | LimitOptForm |
Returns
selfCalls 1
- new
selfline 129
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.