classSingleTableWithTableIdentOptUsePartitionOptTableAliasOptKeyDefinitionOptTablesampleClause_9f1642ba
final class SingleTableWithTableIdentOptUsePartitionOptTableAliasOptKeyDefinitionOptTablesampleClause_9f1642ba
implements DerivedTableListForm, EscTableRefForm, EscTableReferenceForm, FromTablesForm, JoinTableListForm, SelectDerivedForm, SingleTableForm, TableFactorForm, TableRefForm, TableReferenceForm, TableReferenceListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The single_table SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\SingleTableWithTableIdentOptUsePartitionOptTableAliasOptKeyDefinitionOptTablesampleClause_9f1642ba $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public TableIdentForm $tableIdentpublic OptUsePartitionForm $optUsePartitionpublic OptTableAliasForm $optTableAliaspublic OptKeyDefinitionForm $optKeyDefinitionpublic OptTablesampleClauseForm $optTablesampleClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public TableIdentForm $tableIdent,
public OptUsePartitionForm $optUsePartition,
public OptTableAliasForm $optTableAlias,
public OptKeyDefinitionForm $optKeyDefinition,
public OptTablesampleClauseForm $optTablesampleClause,
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
$tableIdent | TableIdentForm | |
$optUsePartition | OptUsePartitionForm | |
$optTableAlias | OptTableAliasForm | |
$optKeyDefinition | OptKeyDefinitionForm | |
$optTablesampleClause | OptTablesampleClauseForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 6
- method-call Writer::comments() line 42
- method-call TableIdentForm::write() line 43
- method-call OptUsePartitionForm::write() line 45
- method-call OptTableAliasForm::write() line 47
- method-call OptKeyDefinitionForm::write() line 49
- method-call OptTablesampleClauseForm::write() line 51
public function withTableIdent(TableIdentForm $tableIdent): selfReturns a copy with a new tableIdent, preserving every other field.
Parameters
$tableIdent | TableIdentForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptUsePartition(OptUsePartitionForm $optUsePartition): selfReturns a copy with a new optUsePartition, preserving every other field.
Parameters
$optUsePartition | OptUsePartitionForm |
Returns
selfCalls 1
- new
selfline 67
public function withOptTableAlias(OptTableAliasForm $optTableAlias): selfReturns a copy with a new optTableAlias, preserving every other field.
Parameters
$optTableAlias | OptTableAliasForm |
Returns
selfCalls 1
- new
selfline 75
public function withOptKeyDefinition(OptKeyDefinitionForm $optKeyDefinition): selfReturns a copy with a new optKeyDefinition, preserving every other field.
Parameters
$optKeyDefinition | OptKeyDefinitionForm |
Returns
selfCalls 1
- new
selfline 83
public function withOptTablesampleClause(OptTablesampleClauseForm $optTablesampleClause): selfReturns a copy with a new optTablesampleClause, preserving every other field.
Parameters
$optTablesampleClause | OptTablesampleClauseForm |
Returns
selfCalls 1
- new
selfline 91