neosqlite.collection.expr_evaluator.python_evaluators.array_ops module

Array and array-transform Python evaluators.

class neosqlite.collection.expr_evaluator.python_evaluators.array_ops.ArrayPythonMixin[source]

Bases: BasePythonMixin

Array, set, and transform ($filter/$map/$reduce) operators.

_evaluate_array_python(operator: str, operands: list[Any], document: dict[str, Any]) Any[source]

Evaluate array operators in Python.

_evaluate_array_transform_python(operator: str, operands: Any, document: dict[str, Any]) Any[source]

Evaluate $filter, $map, $reduce operators in Python.

These operators use variable scoping: - $filter: {input: <array>, as: <var>, cond: <expr>} - $map: {input: <array>, as: <var>, in: <expr>} - $reduce: {input: <array>, initialValue: <val>, in: <expr>}