interfaceRoutineOption
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.
\SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineAttribute::Immutable instanceof \SqlSemantics\Platform\PostgreSql\Statement\Routine\Option\RoutineOption // => trueMethods§
public function alterable(): boolTells whether ALTER FUNCTION, PROCEDURE and ROUTINE accept the option too.
Returns
boolpublic function setting(): ?stringAnswers the attribute the option sets, as the server names it, or null when the option may be repeated.
Returns
?stringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RoutineOptionTestcalls
Relations§
Implemented by 8
- ConfigurationSetting packages/sql-semantics-postgres/src/Statement/Routine/Option/ConfigurationSetting.php:27
- ParallelSafety packages/sql-semantics-postgres/src/Statement/Routine/Option/ParallelSafety.php:25
- RoutineAttribute packages/sql-semantics-postgres/src/Statement/Routine/Option/RoutineAttribute.php:24
- RoutineDefinition packages/sql-semantics-postgres/src/Statement/Routine/Option/RoutineDefinition.php:27
- RoutineEstimate packages/sql-semantics-postgres/src/Statement/Routine/Option/RoutineEstimate.php:23
- RoutineLanguage packages/sql-semantics-postgres/src/Statement/Routine/Option/RoutineLanguage.php:27
- SupportFunction packages/sql-semantics-postgres/src/Statement/Routine/Option/SupportFunction.php:23
- Transforms packages/sql-semantics-postgres/src/Statement/Routine/Option/Transforms.php:24
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Statement\Routine\AlterRoutine::__construct() packages/sql-semantics-postgres/src/Statement/Routine/AlterRoutine.php:47
- class-const SqlSemantics\Platform\PostgreSql\Statement\Routine\CreateFunction::__construct() packages/sql-semantics-postgres/src/Statement/Routine/CreateFunction.php:65