final class FunctionClause
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A HANDLER or VALIDATOR clause naming a support function, or NO HANDLER or NO VALIDATOR.

Mirrors the DefElem handler or validator whose argument is the function name, or nothing for the NO form. In ALTER FOREIGN DATA WRAPPER the NO form removes the function; in a CREATE command it states that there is none. Source: https://www.postgresql.org/docs/17/sql-createforeigndatawrapper.html, https://www.postgresql.org/docs/17/sql-alterforeigndatawrapper.html, https://www.postgresql.org/docs/17/sql-createlanguage.html.

Stating that there is no validatordoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\FunctionClause(\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\FunctionRole::Validator))->function // => null

Properties§

public DottedName|null $function = null

Methods§

public function __construct(public FunctionRole $role, public DottedName|null $function = null)

Parameters

$roleFunctionRoleThe role of the function
$functionDottedName|nullThe function name; null for the NO form
public function render(Output $out): void

Writes the clause.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 3
Constant reads 2
Type declarations 2