enum ExtractUnit: string
Public API: explicitly declared with @visibility public.

A field of EXTRACT written as one of the keywords the grammar reserves for it.

The server passes the field to extract as the lower-case string. Source: https://www.postgresql.org/docs/17/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT.

Reading the field a keyword passesdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\ExtractUnit::Minute->field() // => 'minute'

Cases§

case Year = 'YEAR'
case Month = 'MONTH'
case Day = 'DAY'
case Hour = 'HOUR'
case Minute = 'MINUTE'
case Second = 'SECOND'

Methods§

public function field(): string

Answers the field name the server passes.

Returns

string
Calls 1

Test cases 5§

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 4

Relations§

Constant reads 6
Type checks 2
Type declarations 1