enumUnaryOperator
enum UnaryOperator: string
Public API: explicitly declared with
@visibility public.The prefix operators of SQLite expressions.
Source: https://sqlite.org/lang_expr.html#operators_and_parse_affecting_attributes.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT NOT 1');
$query->statement->columns[0]->expression->operator // => \SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\UnaryOperator::NotCases§
case Not = 'NOT'case BitNot = '~'case Plus = '+'case Minus = '-'Test cases 14§
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 12
OperatorRuleTest::testExpressionLowersThePrefixOperatorscallsPrecedenceTest::testEdgesOfAPrefixOperatorHaveNoLeftOperandcallsOrdinalsTest::testValueIsNullForAnOrdinaryExpressioncallsOrdinalsTest::testValueLooksThroughSignsCollationsAndParenthesescallsOperatorsTest::testUnaryMinusFollowsTheArithmeticRulecallsOperatorsTest::testUnaryNotAndBitNotAreIntegerUnlessTheOperandIsNullcallsOperatorsTest::testUnaryPlusKeepsTheTypeAndTheNullabilitycallsBinaryTest::testRefusesIsFollowedByAPrefixNotcallsPatternMatchTest::testRefusesAnEscapeAfterAPatternThatWouldTakeItcallsUnaryTest::testRefusesAnOperandThatStartsWithAWeakerOperatorcallsUnaryTest::testRenderWritesANewlyBuiltNegationOverASumcallsOutputOrdinalTest::testPositionCountsFromOnecalls
Relations§
Static calls 1
Constant reads 15
- class-const SqlSemantics\Platform\Sqlite\Lowering\Expression\OperatorRule::expression() packages/sql-semantics-sqlite/src/Lowering/Expression/OperatorRule.php:55
- class-const SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\LiteralDefaults::constant() packages/sql-semantics-sqlite/src/Rules/Definition/Expression/LiteralDefaults.php:90
- class-const SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\LiteralDefaults::constant() packages/sql-semantics-sqlite/src/Rules/Definition/Expression/LiteralDefaults.php:90
- class-const SqlSemantics\Platform\Sqlite\Rules\Definition\Query\ValueKinds::of() packages/sql-semantics-sqlite/src/Rules/Definition/Query/ValueKinds.php:88
- class-const SqlSemantics\Platform\Sqlite\Rules\Expression\Precedence::edges() packages/sql-semantics-sqlite/src/Rules/Expression/Precedence.php:116
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\Ordinals::value() packages/sql-semantics-sqlite/src/Rules/Query/Ordinals.php:39
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\Ordinals::value() packages/sql-semantics-sqlite/src/Rules/Query/Ordinals.php:39
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\Ordinals::value() packages/sql-semantics-sqlite/src/Rules/Query/Ordinals.php:40
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Operators::unary() packages/sql-semantics-sqlite/src/Rules/Typing/Operators.php:74
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Operators::unary() packages/sql-semantics-sqlite/src/Rules/Typing/Operators.php:75
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Operators::unary() packages/sql-semantics-sqlite/src/Rules/Typing/Operators.php:76
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Operators::unary() packages/sql-semantics-sqlite/src/Rules/Typing/Operators.php:76
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\Binary::__construct() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/Binary.php:53
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\Unary::__construct() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/Unary.php:46
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\Unary::render() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/Unary.php:65