Skip to main content

Module query

Module query 

Source
Expand description

The data grid query engine: filter → search → sort → group → summarize. Pure functions over rows, independent of the UI.

Structs§

GridQuery
What the user asked the grid to show.
GridTable
The rows of a grid as it stands: the columns showing, the rows matching, in order.
GridTableColumn
A column of a GridTable.
QueryResult
The output of run_query: what the grid shows.

Enums§

GridExportFormat
A file format of a grid’s Export menu.
GridTableKind
What a column holds, for a file to show it well.
ViewRow
A visible row of the grid: a group header or a data row.

Functions§

check_formula
A formula read and checked against the columns, or what is wrong with it.
formula_value
What a formula comes to over these rows.
group_keys
Every group’s key under this query, as if all were open: what collapsing all of them means.
matches_filter
Does value (shown as display) pass a filter-row expression?
run_query
Runs the whole pipeline.
to_csv
Matching rows as CSV (RFC 4180), visible columns only, in display order.
to_table
Takes what the grid shows into a table for a file. A column with a format of its own goes as the text it shows, since only that format knows what it means.
to_tsv
Rows as tab-separated text, the way spreadsheets copy and paste: the shown (formatted) values of the visible columns, no header.