enum RoutineAttribute: string
    implements RoutineOption
Public API: explicitly declared with @visibility public.

A routine option written as keywords only: null-input behavior, volatility, security, leakproofness or WINDOW.

CALLED ON NULL INPUT, RETURNS NULL ON NULL INPUT and STRICT set the same attribute; the last two mean the same and are kept apart because they are written differently. EXTERNAL SECURITY ... is SECURITY ... with an optional noise word. WINDOW is accepted by CREATE only. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Reading the attribute a keyword setsdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineAttribute::ReturnsNullOnNullInput->setting() // => 'strict'

Cases§

case CalledOnNullInput = 'CALLED ON NULL INPUT'
case ReturnsNullOnNullInput = 'RETURNS NULL ON NULL INPUT'
case Strict = 'STRICT'
case Immutable = 'IMMUTABLE'
case Stable = 'STABLE'
case Volatile = 'VOLATILE'
case SecurityDefiner = 'SECURITY DEFINER'
case SecurityInvoker = 'SECURITY INVOKER'
case Leakproof = 'LEAKPROOF'
case NotLeakproof = 'NOT LEAKPROOF'
case Window = 'WINDOW'

Methods§

public function alterable(): bool

Tells whether ALTER accepts the keyword: every one but WINDOW.

Returns

bool
Calls 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a keyword holds no expression.

Parameters

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

Writes the keywords.

Parameters

$outOutput
Calls 2

Test cases 11§

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

Dedicated tests 4
Other tests reaching this symbol 7

Relations§

Constant reads 13