Skip to main content

Module query_config

Module query_config 

Source
Expand description

Shared filter/sort parsing and application for CLI, TUI, and MCP.

Functions§

apply_filters
Applies resolved FieldConditions (field left may be const / technical / label).
apply_filters_json
Applies JSON filter objects ({field, op, value}) to screener.
apply_sort
Sets sort column when sort_by is present and non-empty.
filter_condition_from_json
Builds a FieldCondition from a JSON {field, op, value} object.
parse_filter_conditions_from_cli
Parses repeatable --filter tokens plus optional --filters JSON.
parse_filter_token
Parses a CLI FIELD:OP:VALUE token into a FieldCondition.
parse_filter_value
Parses a filter right-hand value: f64, then JSON, else a string.
parse_filters_arg
Parses optional filters JSON (None / empty → empty list).
parse_filters_json
Parses a filters JSON string into a list of {field, op, value} objects.
require_resolved
Resolves a field const / technical / label name for asset.