interface RoutineOption
    extends Clause
Public API: explicitly declared with @visibility public.

One option of a routine definition or alteration, such as IMMUTABLE, LANGUAGE sql or SET search_path = x.

Mirrors the DefElem items PostgreSQL builds for createfunc_opt_item and common_func_opt_item. Each option sets one attribute of the routine; the attribute it sets is its setting, and an attribute may be set once per statement, except configuration settings. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Telling that an attribute keyword is a routine optiondoctest
\SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineAttribute::Immutable instanceof \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineOption // => true

Methods§

public function alterable(): bool

Tells whether ALTER FUNCTION, PROCEDURE and ROUTINE accept the option too.

Returns

bool
public function setting(): ?string

Answers the attribute the option sets, as the server names it, or null when the option may be repeated.

Returns

?string

Test cases 1§

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

Dedicated tests 1

Relations§

Implemented by 8
Constant reads 2
Type declarations 2