classAlterTableCmdWithAlterOptColumnColIdAddPGeneratedGeneratedWhenAsIdentityPOptParenthesizedSeq_2b4cc759
final class AlterTableCmdWithAlterOptColumnColIdAddPGeneratedGeneratedWhenAsIdentityPOptParenthesizedSeq_2b4cc759
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\AlterTableCmdWithAlterOptColumnColIdAddPGeneratedGeneratedWhenAsIdentityPOptParenthesizedSeq_2b4cc759 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptColumnForm $optColumnpublic ColIdForm $colIdpublic GeneratedWhenForm $generatedWhenpublic OptParenthesizedSeqOptListForm $optParenthesizedSeqOptListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptColumnForm $optColumn,
public ColIdForm $colId,
public GeneratedWhenForm $generatedWhen,
public OptParenthesizedSeqOptListForm $optParenthesizedSeqOptList,
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 | |
$generatedWhen | GeneratedWhenForm | |
$optParenthesizedSeqOptList | OptParenthesizedSeqOptListForm | |
$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 40
- method-call Writer::append() line 41
- method-call OptColumnForm::write() line 43
- method-call ColIdForm::write() line 45
- method-call GeneratedWhenForm::write() line 51
- method-call OptParenthesizedSeqOptListForm::write() line 57
public function withOptColumn(OptColumnForm $optColumn): selfReturns a copy with a new optColumn, preserving every other field.
Parameters
$optColumn | OptColumnForm |
Returns
selfCalls 1
- new
selfline 65
public function withColId(ColIdForm $colId): selfpublic function withGeneratedWhen(GeneratedWhenForm $generatedWhen): selfReturns a copy with a new generatedWhen, preserving every other field.
Parameters
$generatedWhen | GeneratedWhenForm |
Returns
selfCalls 1
- new
selfline 81
public function withOptParenthesizedSeqOptList(OptParenthesizedSeqOptListForm $optParenthesizedSeqOptList): selfReturns a copy with a new optParenthesizedSeqOptList, preserving every other field.
Parameters
$optParenthesizedSeqOptList | OptParenthesizedSeqOptListForm |
Returns
selfCalls 1
- new
selfline 89