neosqlite.collection.expr_evaluator.python_evaluators.string_ops module¶
String and regex Python evaluators.
- class neosqlite.collection.expr_evaluator.python_evaluators.string_ops.StringPythonMixin[source]¶
Bases:
BasePythonMixinString and regex operators.
- _evaluate_string_python(operator: str, operands: Any, document: dict[str, Any]) Any[source]¶
Evaluate string operators in Python.
- Parameters:
operator – The string operator ($toUpper, $toLower, etc.)
operands – The operand(s). Can be: - A single value for simple cases like {“$toUpper”: “$field”} - A list of values for array format - A dict for operators like $trim, $regexMatch
document – The document to evaluate against