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

Derives the result facts of the SQLite operators.

Rule: SQLITE-OPERATOR-RESULT-001. Comparisons, bitwise operators and the logical operators yield INTEGER; the IS family is never NULL; AND and OR can be NULL when an operand can; every other operator is NULL when an operand is. Addition, subtraction and multiplication yield INTEGER or REAL (integer overflow turns into REAL) and REAL when an operand is REAL. Division and remainder do the same and are NULL for a zero divisor, so they can always be NULL. Concatenation yields TEXT. -> yields the TEXT of a JSON value and ->> an INTEGER, REAL or TEXT value; both are NULL when the path selects nothing. Unary minus follows the arithmetic rule, unary plus changes nothing, ~ and NOT yield INTEGER. Source: https://sqlite.org/lang_expr.html#operators_and_parse_affecting_attributes, https://sqlite.org/datatype3.html#operators, https://sqlite.org/json1.html#jptr. Status: Implemented.

Methods§

public function binary(
    BinaryOperator $operator,
    ScalarFact $left,
    ScalarFact $right,
): ScalarFact

Answers the facts of a binary operation from the facts of its operands.

Parameters

Returns

Test cases 7
Called from 1
Calls 27

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 10

Relations§

Instantiated in 2
Method calls 2