classQueryExpressionWithWithClauseQueryExpressionBodyOptOrderClauseOptLimitClause_f3d9f9a0
final class QueryExpressionWithWithClauseQueryExpressionBodyOptOrderClauseOptLimitClause_f3d9f9a0
implements AsCreateQueryExpressionForm, EvSqlStmtForm, EvSqlStmtInnerForm, ExplainableStmtForm, InsertFromSubqueryForm, InsertQueryExpressionForm, OptCreatePartitioningEtcForm, OptCreateTableOptionsEtcForm, OptDuplicateAsQeForm, QueryExpressionForm, QueryExpressionWithOptLockingClausesForm, SelectStmtForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The query_expression SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\QueryExpressionWithWithClauseQueryExpressionBodyOptOrderClauseOptLimitClause_f3d9f9a0 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public WithClauseForm $withpublic QueryExpressionBodyForm $queryExpressionBodypublic OptOrderClauseForm $orderBypublic OptLimitClauseForm $optLimitClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public WithClauseForm $with,
public QueryExpressionBodyForm $queryExpressionBody,
public OptOrderClauseForm $orderBy,
public OptLimitClauseForm $optLimitClause,
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
$with | WithClauseForm | |
$queryExpressionBody | QueryExpressionBodyForm | |
$orderBy | OptOrderClauseForm | |
$optLimitClause | OptLimitClauseForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 40
- method-call WithClauseForm::write() line 41
- method-call QueryExpressionBodyForm::write() line 43
- method-call OptOrderClauseForm::write() line 45
- method-call OptLimitClauseForm::write() line 47
public function withWith(WithClauseForm $with): selfReturns a copy with a new with, preserving every other field.
Parameters
$with | WithClauseForm |
Returns
selfCalls 1
- new
selfline 55
public function withQueryExpressionBody(QueryExpressionBodyForm $queryExpressionBody): selfReturns a copy with a new queryExpressionBody, preserving every other field.
Parameters
$queryExpressionBody | QueryExpressionBodyForm |
Returns
selfCalls 1
- new
selfline 63
public function withOrderBy(OptOrderClauseForm $orderBy): selfReturns a copy with a new orderBy, preserving every other field.
Parameters
$orderBy | OptOrderClauseForm |
Returns
selfCalls 1
- new
selfline 71
public function withOptLimitClause(OptLimitClauseForm $optLimitClause): selfReturns a copy with a new optLimitClause, preserving every other field.
Parameters
$optLimitClause | OptLimitClauseForm |
Returns
selfCalls 1
- new
selfline 79