enum BinaryOperator: string
Public API: explicitly declared with @visibility public.

The binary operators of SQLite expressions, one case per spelling.

Source: https://sqlite.org/lang_expr.html#operators_and_parse_affecting_attributes.

Reading the operator of an expressiondoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 + 2');
    $query->statement->columns[0]->expression->operator // => \SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\BinaryOperator::Add

Cases§

case Or = 'OR'
case And = 'AND'
case Equal = '='
case DoubleEqual = '=='
case NotEqual = '<>'
case BangEqual = '!='
case Is = 'IS'
case IsNot = 'IS NOT'
case IsDistinctFrom = 'IS DISTINCT FROM'
case IsNotDistinctFrom = 'IS NOT DISTINCT FROM'
case Less = '<'
case LessOrEqual = '<='
case Greater = '>'
case GreaterOrEqual = '>='
case BitAnd = '&'
case BitOr = '|'
case ShiftLeft = '<<'
case ShiftRight = '>>'
case Add = '+'
case Subtract = '-'
case Multiply = '*'
case Divide = '/'
case Modulo = '%'
case Concat = '||'
case Extract = '->'
case ExtractValue = '->>'

Methods§

public function level(): int

Answers the binding level of the operator; a higher level binds tighter.

Returns

int
Test cases 1
Called from 4
Calls 34

Test cases 43§

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

Dedicated tests 4
Other tests reaching this symbol 39

Relations§

Static calls 1
Method calls 5
Constant reads 14
Type declarations 2