Structsยง
- Operator
Mode ๐
Constantsยง
- ANY_
CHAR_ ๐REGEX_ PATTERN - MAX_
REGEX_ ๐ALTERNATIONS_ EXPANSION - Maximum number of regex alternations (
foo|bar|...) that will be expanded into multipleLIKEexpressions.
Functionsยง
- anchored_
alternation_ ๐to_ exprs - anchored_
literal_ ๐to_ expr - Extracts a string literal expression assuming that
is_anchored_literalreturned true. - collect_
concat_ ๐to_ like_ string - is_
anchored_ ๐capture - Returns true if the elements in a
Concatpattern are: - is_
anchored_ ๐literal - Returns true if the elements in a
Concatpattern are: - is_
safe_ ๐for_ like - like_
str_ ๐from_ literal - Returns a str represented by
Literalif it contains a valid utf8 sequence and is safe for like (has no โ%โ and โ_โ) - lower_
alt ๐ - Calls
lower_simplefor each alternative and combine the results withororandbased onOperatorMode. Any fail attempt to lower an alternative will makes this function to returnNone. - lower_
simple ๐ - Tries to lower (transform) a simple regex pattern to a LIKE expression.
- partial_
anchored_ ๐literal_ to_ like - Returns the
LIKEpattern if theConcatpattern is partial anchored: - simplify_
regex_ expr - Tries to convert a regexp expression to a
LIKEorEq/NotEqexpression. - str_
from_ ๐literal - Returns a str represented by
Literalif it contains a valid utf8