enumExtractUnit
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.
\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(): stringTest 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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:55
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:56
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:57
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:58
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:59
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:60
Type checks 2
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Extract::fieldName() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Extract.php:58
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Extract::render() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Extract.php:88