classAlterTableCmdWithAlterOptColumnColIdSetColumnStorage_9077d2df
final class AlterTableCmdWithAlterOptColumnColIdSetColumnStorage_9077d2df
implements AlterTableCmdForm, AlterTableCmdsForm
uses Assertion
Public API: explicitly declared with
@visibility public.The alter_table_cmd SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\AlterTableCmdWithAlterOptColumnColIdSetColumnStorage_9077d2df $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptColumnForm $optColumnpublic ColIdForm $colIdpublic ColumnStorageForm $columnStoragepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptColumnForm $optColumn,
public ColIdForm $colId,
public ColumnStorageForm $columnStorage,
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
$optColumn | OptColumnForm | |
$colId | ColIdForm | |
$columnStorage | ColumnStorageForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call AlterTableCmdWithAlterOptColumnColIdSetColumnStorage_9077d2df::assert() line 28
- static-call Contracts::contains() line 28
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 OptColumnForm::write() line 41
- method-call ColIdForm::write() line 43
- method-call ColumnStorageForm::write() line 47
public function withOptColumn(OptColumnForm $optColumn): selfReturns a copy with a new optColumn, preserving every other field.
Parameters
$optColumn | OptColumnForm |
Returns
selfCalls 1
- new
selfline 55
public function withColId(ColIdForm $colId): selfpublic function withColumnStorage(ColumnStorageForm $columnStorage): selfReturns a copy with a new columnStorage, preserving every other field.
Parameters
$columnStorage | ColumnStorageForm |
Returns
selfCalls 1
- new
selfline 71