enumParameterSource
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SET search_path FROM CURRENT');
$operation->statement->source // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\ParameterSource::CurrentCases§
case Defaultcase CurrentTest 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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule::more() packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:162
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule::generic() packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:187
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\AlterSystemSetting::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Session/AlterSystemSetting.php:42
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetParameterFrom::render() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetParameterFrom.php:56
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetParameterFrom::render() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetParameterFrom.php:57