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

The binary logical operators of MySQL.

&& is a synonym of AND and, unless PIPES_AS_CONCAT is set, || is a synonym of OR; both are written in their keyword form. Each case holds the keyword. Source: https://dev.mysql.com/doc/refman/8.4/en/logical-operators.html.

Reading the operator of a disjunctiondoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t WHERE a || b');
    $query->statement->where->operator // => \SqlSemantics\Platform\MySql\Statement\Expression\LogicalOperator::Or

Cases§

case Or = 'OR'
case Xor = 'XOR'
case And = 'AND'

Methods§

Test cases 10§

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 8

Relations§

Method calls 2
Constant reads 3
Type declarations 1