classCurrentTime
final class CurrentTime
implements Scalar
uses Snapshot
Public API: explicitly declared with
@visibility public.The current UTC date, time or timestamp as text.
Rule: SQLITE-CURRENT-TIME-001. Each keyword yields a TEXT value in a fixed format and is never NULL. Source: https://sqlite.org/lang_expr.html#literal_values_constants_. Status: Implemented.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT CURRENT_TIMESTAMP');
$query->field(0)->type->descriptor // => \SqlSemantics\Platform\Sqlite\Statement\Type\Storage::TextProperties§
public TimeKeyword $keywordMethods§
public function __construct(public TimeKeyword $keyword)Parameters
$keyword | TimeKeyword | The keyword written |
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFactDerives TEXT.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 4
- new ScalarFact line 46
- new Known line 46
- class-const Storage::Text() line 46
- class-const Nullability::NotNull() line 46
public function render(Output $out): voidTest cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 3
Relations§
Instantiated in 1
Constant reads 1
Type checks 3
- instanceof SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\Limits::classify() packages/sql-semantics-sqlite/src/Rules/Definition/Expression/Limits.php:126
- instanceof SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\LiteralDefaults::literal() packages/sql-semantics-sqlite/src/Rules/Definition/Expression/LiteralDefaults.php:76
- instanceof SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\LiteralDefaults::constant() packages/sql-semantics-sqlite/src/Rules/Definition/Expression/LiteralDefaults.php:97