classFunctionClause
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.
(new \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\FunctionClause(\SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\FunctionRole::Validator))->function // => nullProperties§
public FunctionRole $rolepublic DottedName|null $function = nullMethods§
public function __construct(public FunctionRole $role, public DottedName|null $function = null)Parameters
$role | FunctionRole | The role of the function |
$function | DottedName|null | The function name; null for the NO form |
public function render(Output $out): voidTest 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
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule::validator() packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:233
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule::validator() packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:234
- new SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ForeignDataRule::functions() packages/sql-semantics-postgres/src/Lowering/Catalog/ForeignDataRule.php:113
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Statement\Catalog\ForeignData\AlterFdw::__construct() packages/sql-semantics-postgres/src/Statement/Catalog/ForeignData/AlterFdw.php:51
- class-const SqlSemantics\Platform\PostgreSql\Statement\Catalog\ForeignData\CreateFdw::__construct() packages/sql-semantics-postgres/src/Statement/Catalog/ForeignData/CreateFdw.php:52
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Lowering\Catalog\ExtensionRule packages/sql-semantics-postgres/src/Lowering/Catalog/ExtensionRule.php:226
- type SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\CreateLanguage packages/sql-semantics-postgres/src/Statement/Catalog/Language/CreateLanguage.php:47