enumPatternOperator
enum PatternOperator: string
Public API: explicitly declared with
@visibility public.The pattern matching operators; each one calls the function of the same name.
Source: https://sqlite.org/lang_expr.html#the_like_glob_regexp_match_and_extract_operators.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze("SELECT a GLOB 'x*' FROM t");
$query->statement->columns[0]->expression->operator // => \SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\PatternOperator::GlobCases§
case Like = 'LIKE'case Glob = 'GLOB'case Regexp = 'REGEXP'case Match = 'MATCH'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
PredicateRuleTest::testMatchLowersEachPatternOperatorWithItsNegationcallsPrecedenceTest::testEdgesOfAMatchEndWithTheEscapeWhenWrittencallsPatternMatchTest::testRefusesAMatchedOperandThatEndsInAWeakerOperatorcallsPatternMatchTest::testRefusesAnEscapeAfterAPatternThatWouldTakeItcallsPatternMatchTest::testRefusesAnEscapeOperandThatStartsWithAnEqualityOperatorcallsPatternMatchTest::testRefusesAPatternThatStartsWithAnEqualityOperatorcallsPatternMatchTest::testRenderWritesANewlyBuiltMatchcallsPatternMatchTest::testRenderWritesTheNegationAndTheEscapecalls
Relations§
Static calls 1
Constant reads 3
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\PatternMatch::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/PatternMatch.php:89
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\PatternMatch::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/PatternMatch.php:89
- class-const SqlSemantics\Platform\Sqlite\Statement\Expression\Operator\PatternMatch::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Operator/PatternMatch.php:90