enumOptionKeyword
enum OptionKeyword: string
Public API: explicitly declared with
@visibility public.The option names the grammar reads as keywords of their own.
ANALYZE is a reserved word with the British spelling ANALYSE; both name the option analyze. FORMAT directly before the word JSON is read as a keyword of its own and names the option format. Every other option name is an ordinary word. The value is the keyword. Source: https://www.postgresql.org/docs/17/sql-explain.html, https://www.postgresql.org/docs/17/sql-analyze.html.
[\SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\OptionKeyword::Analyse->option(), \SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\OptionKeyword::Format->option()] // => ['analyze', 'format']Cases§
case Analyze = 'ANALYZE'case Analyse = 'ANALYSE'case Format = 'FORMAT'Methods§
public function option(): stringAnswers the option name the keyword stands for.
Returns
stringCalls 3
- class-const OptionKeyword::Analyze() line 32
- class-const OptionKeyword::Analyse() line 32
- class-const OptionKeyword::Format() line 33
Test cases 6§
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 5
Relations§
Constant reads 6
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule::name() packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:83
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule::keyword() packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:119
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule::keyword() packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:120
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Analyze::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Analyze.php:54
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Analyze::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Analyze.php:56
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:47
Type checks 3
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::writable() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:86
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::write() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:112
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption::render() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:71
Type declarations 4
- type SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:76
- type SqlSemantics\Platform\PostgreSql\Lowering\Utility\OptionRule packages/sql-semantics-postgres/src/Lowering/Utility/OptionRule.php:114
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Analyze packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Analyze.php:54
- type SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\UtilityOption packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/UtilityOption.php:45