enum ParameterSource
Public API: explicitly declared with @visibility public.

Where a SET without a written value takes the value from.

SET name TO DEFAULT restores the default of the parameter, as RESET does; SET name FROM CURRENT saves the value in effect when the command runs, which is meaningful for the setting of a routine, role or database. Mirrors VAR_SET_DEFAULT and VAR_SET_CURRENT of PostgreSQL's VariableSetKind. Source: https://www.postgresql.org/docs/17/sql-set.html, https://www.postgresql.org/docs/17/sql-createfunction.html.

Reading the source of a SET ... FROM CURRENTdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SET search_path FROM CURRENT');
    $operation->statement->source // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\ParameterSource::Current

Cases§

case Default
case Current

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Constant reads 5
Type declarations 1