neosqlite.collection.expr_evaluator.sql_converters.base module

Base class for SQL converter mixins.

Declares shared method signatures that individual mixins call across category boundaries (e.g. _convert_operand_to_sql is defined in CoreMixin but used by StringMixin, MathTrigMixin, etc.).

class neosqlite.collection.expr_evaluator.sql_converters.base.BaseSqlMixin[source]

Bases: object

Shared annotations for all SQL converter mixins.

data_column: str
jsonb: JSONBContext
_current_context: Any
property json_each_function: str
property json_group_array_function: str
property json_function_prefix: str
_convert_operand_to_sql(operand: Any) tuple[str, list[Any]][source]
_convert_expr_to_sql(expr: dict[str, Any]) tuple[str, list[Any]][source]
_convert_logical_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_comparison_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_cmp_operator(operands: Any) tuple[str, list[Any]][source]
_convert_arithmetic_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_cond_operator(operands: Any) tuple[str, list[Any]][source]
_convert_ifNull_operator(operands: Any) tuple[str, list[Any]][source]
_convert_switch_operator(operands: Any) tuple[str, list[Any]][source]
_convert_array_transform_operator(operator: str, operands: Any) tuple[str, list[Any]][source]
_convert_array_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_set_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_string_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_math_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_trig_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_angle_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_date_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_date_arithmetic_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_date_diff_operator(operands: Any) tuple[str, list[Any]][source]
_convert_date_to_string_operator(operands: Any) tuple[str, list[Any]][source]
_convert_date_trunc_operator(operands: Any) tuple[str, list[Any]][source]
_convert_date_from_parts_operator(operands: Any) tuple[str, list[Any]][source]
_convert_date_to_parts_operator(operands: Any) tuple[str, list[Any]][source]
_convert_date_from_string_operator(operands: Any) tuple[str, list[Any]][source]
_convert_object_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_let_operator(operands: Any) tuple[str, list[Any]][source]
_convert_data_size_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_convert_type_operator(op: str, operands: Any) tuple[str, list[Any]][source]
_get_operator_return_type(operator: str) str | None[source]
_get_literal_bson_type(value: Any) str | None[source]
_map_comparison_operator(op: str) str[source]
_map_arithmetic_operator(op: str) str[source]
_build_pattern_with_options(regex: str, options: str) str[source]
_handle_aggregation_variable(operand: Any, ctx: Any) tuple[str, list[Any]][source]