classQueryExpressionWithQueryExpressionBodyOptOrderClauseOptLimitClause_15bbdf22
final class QueryExpressionWithQueryExpressionBodyOptOrderClauseOptLimitClause_15bbdf22
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\QueryExpressionWithQueryExpressionBodyOptOrderClauseOptLimitClause_15bbdf22 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public QueryExpressionBodyForm $queryExpressionBodypublic OptOrderClauseForm $orderBypublic OptLimitClauseForm $optLimitClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
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
$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 4
- method-call Writer::comments() line 38
- method-call QueryExpressionBodyForm::write() line 39
- method-call OptOrderClauseForm::write() line 41
- method-call OptLimitClauseForm::write() line 43
public function withQueryExpressionBody(QueryExpressionBodyForm $queryExpressionBody): selfReturns a copy with a new queryExpressionBody, preserving every other field.
Parameters
$queryExpressionBody | QueryExpressionBodyForm |
Returns
selfCalls 1
- new
selfline 51
public function withOrderBy(OptOrderClauseForm $orderBy): selfReturns a copy with a new orderBy, preserving every other field.
Parameters
$orderBy | OptOrderClauseForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptLimitClause(OptLimitClauseForm $optLimitClause): selfReturns a copy with a new optLimitClause, preserving every other field.
Parameters
$optLimitClause | OptLimitClauseForm |
Returns
selfCalls 1
- new
selfline 67