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.

Reading the type of the current timestampdoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT CURRENT_TIMESTAMP');
    $query->field(0)->type->descriptor // => \SqlSemantics\Platform\Sqlite\Statement\Type\Storage::Text

Properties§

public TimeKeyword $keyword

Methods§

public function __construct(public TimeKeyword $keyword)

Parameters

$keywordTimeKeywordThe keyword written
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFact

Derives TEXT.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Calls 4
public function render(Output $out): void

Writes the keyword.

Parameters

$outOutput
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 2
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Constant reads 1
Type checks 3