enumVariableScope
enum VariableScope: string
Public API: explicitly declared with
@visibility public.The scope a system variable is read from or assigned in.
LOCAL is a synonym of SESSION. PERSIST and PERSIST_ONLY are scopes of SET only. Source: https://dev.mysql.com/doc/refman/8.4/en/using-system-variables.html, https://dev.mysql.com/doc/refman/8.4/en/set-variable.html.
\SqlSemantics\Platform\MySql\Statement\Variable\VariableScope::PersistOnly->value // => 'PERSIST_ONLY'Cases§
case Global = 'GLOBAL'case Session = 'SESSION'case Persist = 'PERSIST'case PersistOnly = 'PERSIST_ONLY'Test cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 12
VariableRuleTest::testLegacySystemLowersTheScopeAndComponentOfMySql5callsVariableRuleTest::testScopeLowersEveryScopeKeywordcallsVariableRuleTest::testSystemLowersTheSettableVariableFormscallsVariableRuleTest::testVariableLowersUserAndSystemVariablesOfEveryGenerationcallsSignalRuleTest::testOperandLowersLiteralsVariablesAndNamescallsSetTransactionTest::testDeriveStatementDerivesNothingcallsSetVariablesTest::testScopeOfAnswersTheInheritedScopecallsShowStatusTest::testDeriveStatementResolvesTheConditioncallsShowVariablesTest::testDeriveStatementResolvesTheConditioncallsSystemVariableTest::testDeriveScalarNamesTheInstanceOfAStructuredVariablecallsSystemVariableTest::testRenderBuildsSqlFromAnExplicitStructurecallsSystemVariableTest::testRenderSpellsLocalAsSessioncalls
Relations§
Constant reads 22
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:42
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:42
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:43
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:43
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:44
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:45
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:45
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:47
- class-const SqlSemantics\Platform\MySql\Lowering\Server\Instance\PluginRule::setting() packages/sql-semantics-mysql/src/Lowering/Server/Instance/PluginRule.php:108
- class-const SqlSemantics\Platform\MySql\Lowering\Server\Instance\PluginRule::setting() packages/sql-semantics-mysql/src/Lowering/Server/Instance/PluginRule.php:109
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:47
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:47
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:48
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:67
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:67
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:68
- class-const SqlSemantics\Platform\MySql\Statement\Server\Plugin\ComponentSetting::__construct() packages/sql-semantics-mysql/src/Statement/Server/Plugin/ComponentSetting.php:42
- class-const SqlSemantics\Platform\MySql\Statement\Server\Plugin\ComponentSetting::__construct() packages/sql-semantics-mysql/src/Statement/Server/Plugin/ComponentSetting.php:42
Type declarations 13
- type SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:117
- type SqlSemantics\Platform\MySql\Lowering\Leaf\VariableRule packages/sql-semantics-mysql/src/Lowering/Leaf/VariableRule.php:135
- type SqlSemantics\Platform\MySql\Lowering\Utility\Set\ItemRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/ItemRule.php:129
- type SqlSemantics\Platform\MySql\Lowering\Utility\Set\ItemRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/ItemRule.php:144
- type SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:123
- type SqlSemantics\Platform\MySql\Lowering\Utility\Set\SetRule packages/sql-semantics-mysql/src/Lowering/Utility/Set/SetRule.php:174
- type SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:189
- type SqlSemantics\Platform\MySql\Statement\Utility\Set\NameAssignment packages/sql-semantics-mysql/src/Statement/Utility/Set/NameAssignment.php:51
- type SqlSemantics\Platform\MySql\Statement\Utility\Set\SetTransaction packages/sql-semantics-mysql/src/Statement/Utility/Set/SetTransaction.php:49
- type SqlSemantics\Platform\MySql\Statement\Utility\Set\SetVariables packages/sql-semantics-mysql/src/Statement/Utility/Set/SetVariables.php:61
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowStatus.php:43
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowVariables packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowVariables.php:43
- type SqlSemantics\Platform\MySql\Statement\Variable\SystemVariable packages/sql-semantics-mysql/src/Statement/Variable/SystemVariable.php:47