final class SupportFunction
    implements RoutineOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

SUPPORT function: the planner support function of the routine.

Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Reading the support functiondoctest
$option = new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\SupportFunction(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('helper')]));
    $option->function->last()->value // => 'helper'

Properties§

public DottedName $function

Methods§

public function __construct(public DottedName $function)

Parameters

$functionDottedNameThe support function
public function alterable(): bool

Tells that ALTER accepts the option.

Returns

bool
Test cases 1
public function setting(): string

Answers support.

Returns

string
Test cases 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a name holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes SUPPORT and the function name.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 1