final class DerivedAffinity
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

The affinity SQLite derives for a result expression; a working value of one derivation.

SQLite keeps two states besides the five affinities: no affinity at all (SQLITE_AFF_NONE, the affinity of a literal or an operator), and the flexible numeric affinity (SQLITE_AFF_FLEXNUM) a CAST gets in a compound query, which counts as numeric but never equals the affinity of a type name. An affinity is not determined when it depends on a declaration the context lacks or on a name that did not resolve.

Properties§

public Affinity|null $affinity = null
public bool $flexible = false
public bool $determined = true

Methods§

public function __construct(
    public Affinity|null $affinity = null,
    public bool $flexible = false,
    public bool $determined = true,
)

Parameters

$affinityAffinity|nullThe affinity, or null for no affinity
$flexibleboolWhether the affinity is the flexible numeric one; implies the NUMERIC affinity
$determinedboolWhether the affinity is known; a value that is not determined has no affinity
public function typed(): bool

Tells whether the affinity is at least TEXT in the order SQLite ranks affinities: any affinity but BLOB and none.

Returns

bool
Test cases 1
Calls 1

Test cases 6§

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 4

Relations§

Instantiated in 15
Method calls 3
Type declarations 12