enumBooleanOperator
enum BooleanOperator
Public API: explicitly declared with
@visibility public.The binary boolean operators, as PostgreSQL's BoolExprType distinguishes them.
Source: https://www.postgresql.org/docs/17/functions-logical.html.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT true AND false');
$query->field(0)->expression->operator // => \SqlSemantics\Platform\PostgreSql\Statement\Expression\Operator\BooleanOperator::AndCases§
case AndAND.
case OrOR.
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 6
PrecedenceTest::testEdgesAnswersTheOperandsAndLevelscallsBooleanOperationTest::testDeriveScalarIsBooleancallsBooleanOperationTest::testDeriveScalarReportsANonBooleanOperandcallsBooleanOperationTest::testRejectsADisjunctionInsideAConjunctioncallsBooleanOperationTest::testRenderWritesTheOperatorcallsNegationTest::testRejectsAConjunctioncalls
Relations§
Constant reads 6
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\OperatorRule::operators() packages/sql-semantics-postgres/src/Lowering/Expression/OperatorRule.php:90
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Expression\OperatorRule::operators() packages/sql-semantics-postgres/src/Lowering/Expression/OperatorRule.php:91
- class-const SqlSemantics\Platform\PostgreSql\Rules\Expression\Precedence::operators() packages/sql-semantics-postgres/src/Rules/Expression/Precedence.php:209
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Operator\BooleanOperation::__construct() packages/sql-semantics-postgres/src/Statement/Expression/Operator/BooleanOperation.php:49
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Operator\BooleanOperation::deriveScalar() packages/sql-semantics-postgres/src/Statement/Expression/Operator/BooleanOperation.php:60
- class-const SqlSemantics\Platform\PostgreSql\Statement\Expression\Operator\BooleanOperation::render() packages/sql-semantics-postgres/src/Statement/Expression/Operator/BooleanOperation.php:73