enumToggle
enum Toggle: string
implements OptionArgument
Public API: explicitly declared with
@visibility public.The keywords TRUE, FALSE and ON written as an option or parameter value.
The grammar reads these three reserved words where it otherwise reads a word or a string, and passes them on as the texts true, false and on. Source: https://www.postgresql.org/docs/17/sql-set.html.
\SqlSemantics\Platform\PostgreSql\Statement\Option\Toggle::On->text() // => 'on'Cases§
case True = 'TRUE'case False = 'FALSE'case On = 'ON'Methods§
public function text(): stringAnswers the text the server receives for the keyword.
Returns
stringTest cases 1
Calls 1
- function-call
strtolowerline 33
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: a keyword holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidTest cases 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 9
OptionsTest::testValueLowersKeywordsWordsStringsAndNumberscallsOptionRuleTest::testArgumentLowersEachValuecallsOptionArgumentsTest::testBooleanReadsTheValuesTheServerAcceptscallsOptionArgumentsTest::testEnabledReadsTheLastOccurrencecallsOptionRulesTest::testFindAnswersTheLastOccurrencecallsOptionRulesTest::testWritableRefusesWhatTheWordSyntaxCannotHoldcallsAlterDatabaseSettingTest::testDeriveStatementDerivesTheSettingcallsOptionArgumentTest::testTheValueKindsOfTheOptionSyntaxAreArgumentscallsUtilityOptionTest::testTextAnswersTheValueAsTheServerReceivesItcalls
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Options::value() packages/sql-semantics-postgres/src/Lowering/Leaf/Options.php:248
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Options::value() packages/sql-semantics-postgres/src/Lowering/Leaf/Options.php:249
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Leaf\Options::value() packages/sql-semantics-postgres/src/Lowering/Leaf/Options.php:250
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyArguments::__construct() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyArguments.php:47
Type checks 5
- instanceof SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule::argument() packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:102
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionArguments::boolean() packages/sql-semantics-postgres/src/Rules/Utility/OptionArguments.php:53
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyOption::__construct() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyOption.php:46
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption::render() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:77
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption::text() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:96
Type declarations 2
- type SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:93
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:45