classAlterTablespaceStmtWithAlterTablespaceSymIdentAddTsDatafileOptAlterTablespaceOptions_7730373f
final class AlterTablespaceStmtWithAlterTablespaceSymIdentAddTsDatafileOptAlterTablespaceOptions_7730373f
implements AlterTablespaceStmtForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StoredRoutineBodyForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The alter_tablespace_stmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\AlterTablespaceStmtWithAlterTablespaceSymIdentAddTsDatafileOptAlterTablespaceOptions_7730373f $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IdentForm $identpublic TsDatafileForm $tsDatafilepublic OptAlterTablespaceOptionsForm $optAlterTablespaceOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IdentForm $ident,
public TsDatafileForm $tsDatafile,
public OptAlterTablespaceOptionsForm $optAlterTablespaceOptions,
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 | |
$tsDatafile | TsDatafileForm | |
$optAlterTablespaceOptions | OptAlterTablespaceOptionsForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call IdentForm::write() line 43
- method-call TsDatafileForm::write() line 47
- method-call OptAlterTablespaceOptionsForm::write() line 49
public function withIdent(IdentForm $ident): selfpublic function withTsDatafile(TsDatafileForm $tsDatafile): selfReturns a copy with a new tsDatafile, preserving every other field.
Parameters
$tsDatafile | TsDatafileForm |
Returns
selfCalls 1
- new
selfline 65
public function withOptAlterTablespaceOptions(OptAlterTablespaceOptionsForm $optAlterTablespaceOptions): selfReturns a copy with a new optAlterTablespaceOptions, preserving every other field.
Parameters
$optAlterTablespaceOptions | OptAlterTablespaceOptionsForm |
Returns
selfCalls 1
- new
selfline 73