classConstraintElemWithUniqueOptUniqueNullTreatmentColumnListOptCIncludeOptDefinitionOptConsTableS_8d7c79bb
final class ConstraintElemWithUniqueOptUniqueNullTreatmentColumnListOptCIncludeOptDefinitionOptConsTableS_8d7c79bb
implements ConstraintElemForm, OptTableElementListForm, TableConstraintForm, TableElementForm, TableElementListForm, TypedTableElementForm, TypedTableElementListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The ConstraintElem SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\ConstraintElemWithUniqueOptUniqueNullTreatmentColumnListOptCIncludeOptDefinitionOptConsTableS_8d7c79bb $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptUniqueNullTreatmentForm $optUniqueNullTreatmentpublic ColumnListForm $columnListpublic OptCIncludeForm $optCIncludepublic OptDefinitionForm $optDefinitionpublic OptConsTableSpaceForm $optConsTableSpacepublic ConstraintAttributeSpecForm $constraintAttributeSpecpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptUniqueNullTreatmentForm $optUniqueNullTreatment,
public ColumnListForm $columnList,
public OptCIncludeForm $optCInclude,
public OptDefinitionForm $optDefinition,
public OptConsTableSpaceForm $optConsTableSpace,
public ConstraintAttributeSpecForm $constraintAttributeSpec,
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
$optUniqueNullTreatment | OptUniqueNullTreatmentForm | |
$columnList | ColumnListForm | |
$optCInclude | OptCIncludeForm | |
$optDefinition | OptDefinitionForm | |
$optConsTableSpace | OptConsTableSpaceForm | |
$constraintAttributeSpec | ConstraintAttributeSpecForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 8
- method-call Writer::comments() line 44
- method-call Writer::append() line 45
- method-call OptUniqueNullTreatmentForm::write() line 47
- method-call ColumnListForm::write() line 51
- method-call OptCIncludeForm::write() line 55
- method-call OptDefinitionForm::write() line 57
- method-call OptConsTableSpaceForm::write() line 59
- method-call ConstraintAttributeSpecForm::write() line 61
public function withOptUniqueNullTreatment(OptUniqueNullTreatmentForm $optUniqueNullTreatment): selfReturns a copy with a new optUniqueNullTreatment, preserving every other field.
Parameters
$optUniqueNullTreatment | OptUniqueNullTreatmentForm |
Returns
selfCalls 1
- new
selfline 69
public function withColumnList(ColumnListForm $columnList): selfReturns a copy with a new columnList, preserving every other field.
Parameters
$columnList | ColumnListForm |
Returns
selfCalls 1
- new
selfline 77
public function withOptCInclude(OptCIncludeForm $optCInclude): selfReturns a copy with a new optCInclude, preserving every other field.
Parameters
$optCInclude | OptCIncludeForm |
Returns
selfCalls 1
- new
selfline 85
public function withOptDefinition(OptDefinitionForm $optDefinition): selfReturns a copy with a new optDefinition, preserving every other field.
Parameters
$optDefinition | OptDefinitionForm |
Returns
selfCalls 1
- new
selfline 93
public function withOptConsTableSpace(OptConsTableSpaceForm $optConsTableSpace): selfReturns a copy with a new optConsTableSpace, preserving every other field.
Parameters
$optConsTableSpace | OptConsTableSpaceForm |
Returns
selfCalls 1
- new
selfline 101
public function withConstraintAttributeSpec(ConstraintAttributeSpecForm $constraintAttributeSpec): selfReturns a copy with a new constraintAttributeSpec, preserving every other field.
Parameters
$constraintAttributeSpec | ConstraintAttributeSpecForm |
Returns
selfCalls 1
- new
selfline 109