classCreateExtensionStmtWithCreateExtensionIfPNotExistsNameOptWithCreateExtensionOptList_38c25b72
final class CreateExtensionStmtWithCreateExtensionIfPNotExistsNameOptWithCreateExtensionOptList_38c25b72
implements CreateExtensionStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateExtensionStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateExtensionStmtWithCreateExtensionIfPNotExistsNameOptWithCreateExtensionOptList_38c25b72 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public NameForm $namepublic OptWithForm $optWithpublic CreateExtensionOptListForm $createExtensionOptListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public NameForm $name,
public OptWithForm $optWith,
public CreateExtensionOptListForm $createExtensionOptList,
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
$name | NameForm | |
$optWith | OptWithForm | |
$createExtensionOptList | CreateExtensionOptListForm | |
$comments | Comments |
Calls 3
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 NameForm::write() line 49
- method-call OptWithForm::write() line 51
- method-call CreateExtensionOptListForm::write() line 53
public function withName(NameForm $name): selfpublic function withOptWith(OptWithForm $optWith): selfReturns a copy with a new optWith, preserving every other field.
Parameters
$optWith | OptWithForm |
Returns
selfCalls 1
- new
selfline 69
public function withCreateExtensionOptList(CreateExtensionOptListForm $createExtensionOptList): selfReturns a copy with a new createExtensionOptList, preserving every other field.
Parameters
$createExtensionOptList | CreateExtensionOptListForm |
Returns
selfCalls 1
- new
selfline 77