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

The keyword DEFAULT used as a value: the default of the column it is assigned to.

Mirrors PostgreSQL's SetToDefault node. The value is only meaningful where a statement assigns it to a column (a VALUES row of INSERT, an UPDATE SET item); the statement that holds the assignment knows the column.

Rule: PG-DEFAULT-001. Facts: until the assignment converts it to the column type, the value has the pseudo-type unknown, like a string constant whose type its context decides; it can be NULL. Source: https://www.postgresql.org/docs/17/sql-insert.html, https://www.postgresql.org/docs/17/sql-update.html. Status: Implemented.

Reading DEFAULTdoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\DefaultRequest()) instanceof \SqlSemantics\Platform\PostgreSql\Model\Statement\Scalar // => true

Methods§

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

Derives the pseudo-type the assignment resolves.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

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

Writes the keyword.

Parameters

$outOutput
Test cases 1
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
Type checks 3
Type declarations 1