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.

Reading the text a keyword value stands fordoctest
\SqlSemantics\Platform\PostgreSql\Statement\Option\Toggle::On->text() // => 'on'

Cases§

case True = 'TRUE'
case False = 'FALSE'
case On = 'ON'

Methods§

public function text(): string

Answers the text the server receives for the keyword.

Returns

string
Test cases 1
Calls 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a keyword holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
public function render(Output $out): void

Writes the keyword.

Parameters

$outOutput
Calls 1

Test 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

Relations§

Constant reads 4
Type checks 5
Type declarations 2