Skip to main content

Module filter

Module filter 

Source
Expand description

Report filter grammar: the operator names the server parser reads and the writer the visual builder emits them with.

Modules§

fixtures
Filter texts of every grammar form, shared by the tests of forms and its clients.

Structs§

Amount
A rational with a positive denominator.
Fault
The first refusal and where it is: path holds the index of each row on the way down from the list that was checked, empty for the list itself.
NotAnAmount
The text is not in the number grammar of Amount::parse.
ParseError
Why filter text did not parse, and the byte offset it went wrong at: the offending text, or the start of the form whose argument is bad.

Enums§

Comparison
Entity
Filter
A parsed filter. Ids stay text: the server checks them as UUIDs.
Item
One row or nested group of the visual builder.
Logic
Reason
Restored
What the visual builder can show of a filter text.

Constants§

ACCOUNT_EQ
ACCOUNT_IN
ACCOUNT_SUBTREE
ACCOUNT_TAG_EQ
AMOUNT_EQ
AMOUNT_GT
AMOUNT_LT
AND
COMMODITY_EQ
COMMODITY_IN
COUNTERPARTY_EQ
COUNTERPARTY_IN
NOT
OR
SPLIT_TAG_EQ
TRANSACTION_TAG_EQ
UNBUILDABLE
Written when the builder holds a condition it cannot express. It is not in the grammar, so the server refuses the request instead of running a broader report than the one asked for.

Functions§

check
Checks the rows of the builder. No rows is no filter and is fine.
check_item
Checks one row or nested group.
group_sexpr
The filter text for the rows of the builder; None for an empty builder, which means no filter. A single child stands for its group.
item_sexpr
The filter text for one builder row or group.
restore
Rows for text; blank text is an empty builder.