final class CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageNameHandlerHandlerNameOptI_8ae70d23
    implements CreatePLangStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
    uses Assertion
Public API: explicitly declared with @visibility public.

The CreatePLangStmt SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreatePLangStmtWithCreateOptOrReplaceOptTrustedOptProceduralLanguageNameHandlerHandlerNameOptI_8ae70d23 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public OptOrReplaceForm $optOrReplace
public OptTrustedForm $optTrusted
public OptProceduralForm $optProcedural
public NameForm $name
public HandlerNameForm $handlerName
public OptInlineHandlerForm $optInlineHandler
public OptValidatorForm $optValidator
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public OptOrReplaceForm $optOrReplace,
    public OptTrustedForm $optTrusted,
    public OptProceduralForm $optProcedural,
    public NameForm $name,
    public HandlerNameForm $handlerName,
    public OptInlineHandlerForm $optInlineHandler,
    public OptValidatorForm $optValidator,
    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

$optOrReplaceOptOrReplaceForm
$optTrustedOptTrustedForm
$optProceduralOptProceduralForm
$nameNameForm
$handlerNameHandlerNameForm
$optInlineHandlerOptInlineHandlerForm
$optValidatorOptValidatorForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 9
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): self

Returns a copy with a new optOrReplace, preserving every other field.

Parameters

$optOrReplaceOptOrReplaceForm

Returns

self
Calls 1
public function withOptTrusted(OptTrustedForm $optTrusted): self

Returns a copy with a new optTrusted, preserving every other field.

Parameters

$optTrustedOptTrustedForm

Returns

self
Calls 1
public function withOptProcedural(OptProceduralForm $optProcedural): self

Returns a copy with a new optProcedural, preserving every other field.

Parameters

$optProceduralOptProceduralForm

Returns

self
Calls 1
public function withName(NameForm $name): self

Returns a copy with a new name, preserving every other field.

Parameters

Returns

self
Calls 1
public function withHandlerName(HandlerNameForm $handlerName): self

Returns a copy with a new handlerName, preserving every other field.

Parameters

$handlerNameHandlerNameForm

Returns

self
Calls 1
public function withOptInlineHandler(OptInlineHandlerForm $optInlineHandler): self

Returns a copy with a new optInlineHandler, preserving every other field.

Parameters

$optInlineHandlerOptInlineHandlerForm

Returns

self
Calls 1
public function withOptValidator(OptValidatorForm $optValidator): self

Returns a copy with a new optValidator, preserving every other field.

Parameters

$optValidatorOptValidatorForm

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1