final class NullLiteral
    implements Scalar
    uses Snapshot
Public API: explicitly declared with @visibility public.

The NULL literal.

Rule: SQLITE-NULL-LITERAL-001. The literal is the NULL value and nothing else. Source: https://sqlite.org/lang_expr.html#literal_values_constants_. Status: Implemented.

Reading the facts of NULLdoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT NULL');
    [$query->field(0)->type instanceof \SqlSemantics\Platform\Sqlite\Model\Statement\Type\NullOnly, $query->field(0)->nullability] // => [true, \SqlSemantics\Platform\Sqlite\Model\Statement\Type\Nullability::Nullable]

Methods§

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

Derives the NULL-only type.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

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

Writes the keyword.

Parameters

$outOutput
Calls 1

Test cases 11§

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 9

Relations§

Instantiated in 1
Constant reads 1
Type checks 2