classCreateIndexStmtWithCreateSpatialSymIndexSymIdentOnSymTableIdentKeyListWithExpressionOptSpatial_e11a9a1f
final class CreateIndexStmtWithCreateSpatialSymIndexSymIdentOnSymTableIdentKeyListWithExpressionOptSpatial_e11a9a1f
implements CreateIndexStmtForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The create_index_stmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\CreateIndexStmtWithCreateSpatialSymIndexSymIdentOnSymTableIdentKeyListWithExpressionOptSpatial_e11a9a1f $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IdentForm $identpublic TableIdentForm $tableIdentpublic KeyListWithExpressionForm $keyListWithExpressionpublic OptSpatialIndexOptionsForm $optSpatialIndexOptionspublic OptIndexLockAndAlgorithmForm $optIndexLockAndAlgorithmpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IdentForm $ident,
public TableIdentForm $tableIdent,
public KeyListWithExpressionForm $keyListWithExpression,
public OptSpatialIndexOptionsForm $optSpatialIndexOptions,
public OptIndexLockAndAlgorithmForm $optIndexLockAndAlgorithm,
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
$ident | IdentForm | |
$tableIdent | TableIdentForm | |
$keyListWithExpression | KeyListWithExpressionForm | |
$optSpatialIndexOptions | OptSpatialIndexOptionsForm | |
$optIndexLockAndAlgorithm | OptIndexLockAndAlgorithmForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call IdentForm::write() line 49
- method-call TableIdentForm::write() line 53
- method-call KeyListWithExpressionForm::write() line 57
- method-call OptSpatialIndexOptionsForm::write() line 61
- method-call OptIndexLockAndAlgorithmForm::write() line 63
public function withIdent(IdentForm $ident): selfpublic function withTableIdent(TableIdentForm $tableIdent): selfReturns a copy with a new tableIdent, preserving every other field.
Parameters
$tableIdent | TableIdentForm |
Returns
selfCalls 1
- new
selfline 79
public function withKeyListWithExpression(KeyListWithExpressionForm $keyListWithExpression): selfReturns a copy with a new keyListWithExpression, preserving every other field.
Parameters
$keyListWithExpression | KeyListWithExpressionForm |
Returns
selfCalls 1
- new
selfline 87
public function withOptSpatialIndexOptions(OptSpatialIndexOptionsForm $optSpatialIndexOptions): selfReturns a copy with a new optSpatialIndexOptions, preserving every other field.
Parameters
$optSpatialIndexOptions | OptSpatialIndexOptionsForm |
Returns
selfCalls 1
- new
selfline 95
public function withOptIndexLockAndAlgorithm(OptIndexLockAndAlgorithmForm $optIndexLockAndAlgorithm): selfReturns a copy with a new optIndexLockAndAlgorithm, preserving every other field.
Parameters
$optIndexLockAndAlgorithm | OptIndexLockAndAlgorithmForm |
Returns
selfCalls 1
- new
selfline 103