Skip to main content

Table View

The table is the default way Kvery shows your query results. It is an interactive grid: you can page through rows, sort by any column, and search across the data without touching your SQL.

Paging through rows​

Large result sets are paginated so the page stays fast. A table starts with 25 rows per page (the query's Rows per page setting changes it, see Query settings) and you move between pages with the pager controls. On a mobile device, a dashboard tile shows 5 rows per page so the tile stays compact.

Sorting​

Click a column header to sort by that column; click again to reverse the order. If a particular column shouldn't be sortable — for example a pre-formatted label column — disable it from your SQL with the nosort:: modifier.

Searching​

Use the table's search box to filter rows by text. The search runs over the rows already returned by your query. To stop a column from being searched (for instance a column containing long JSON), mark it with nosearch::.

When the result has more than 10 rows, the table also has a filter field under each column; it filters the rows by that column only. Columns that cannot be searched (for example nosearch::, long:: or hidden:: columns) have none.

Showing and hiding columns​

The Columns button above the table lists the columns; click one to hide it or show it again. In a result table this lasts until the page is loaded again; the Queries list has the same button and remembers its columns in the browser. This changes only your view. A hidden:: column is hidden when the table opens, but it is still part of the result: it can be shown again with Columns, it is included in CSV and Excel exports, and the search box matches its values. To keep a column away from viewers, leave it out of the SELECT.

Long values​

Cells show their values in full unless the column is marked with the long:: or long-value:: modifier. In such a column a value longer than 75 characters is truncated, and its (more) link opens the full value in a window; a JSON value is pretty-printed, and a value that contains < or > is shown unchanged. A long-value column cannot be sorted or searched.

Column behaviour from SQL​

Everything about how a column renders is controlled from your query using column modifiers:

GoalModifier
Hide a helper column when the table opens (its values stay in the result)hidden::
Render a column as formatted JSON (not sortable)json::
Disable sortingnosort::
Disable searchingnosearch::
Attach data to the row or the celltrdata:: / tddata:: / tdata::

Row operations​

When your query exposes an identifier, a column can hold row-level operations (for example edit or delete actions that open a write query for the row, see posting data). Mark that column with the operations:: modifier: it takes the column out of sorting and searching. With selectable:: rows can be ticked and passed to a linked query together. This turns a read-only table into a lightweight admin grid.