Skip to main content

Column Modifiers

Column modifiers are prefixes you add to a column's alias to change how Kvery renders that column in the result. They are written as a prefix followed by :: in the column alias, so the change lives entirely in your SQL — no separate UI configuration needed.

SELECT
id,
name,
payload AS "json::details",
password AS "hidden::password_hash"
FROM records;

In this example the details column is rendered as formatted JSON and the password_hash column is hidden when the table opens. A hidden column is still part of the result that reaches the viewer (see hidden:: below), so leave values that must stay secret out of the SELECT.

Available modifiers​

ModifierWhat it does
json::Show the column's value as a collapsible JSON tree, collapsed at first; Expand / Collapse above it opens and closes it. The column cannot be sorted.
hidden::Hide the column when the table opens. The column stays in the result: where the table has its Columns, CSV and Excel buttons, anyone who sees it can show the column again with Columns, and the exports contain it; the search box matches its values, and with Responsive data in modal? on, the details window of a row lists it. Its values reach the viewer's browser, and the public API returns it. It gets no column filter, and the card and simple views and the chart settings leave it out.
select::Removed from the column name; it does not change the table.
selectable::Turn the column into a row-selection column: clicking its cell selects the row, and the table gets select-all and select-none buttons (select all works with up to 100 rows on the current page). A Link field in a column header appears while rows are selected and passes them to the linked query. The column cannot be sorted or searched.
nosort::Disable sorting on the column.
nosearch::Exclude the column from the table's search.
operations::Disable sorting and searching on the column — for a column of row actions.
simple::Disable sorting and searching on the column, like operations::.
long::Long content: a value longer than 75 characters is truncated, with a (more) link that opens the full value in a Details window; a JSON value is pretty-printed. The column cannot be sorted or searched.
long-value::Same as long::.
trdata::Attach the value to the table row (<tr>) as a data-<column name> attribute.
tddata::Attach the plain-text value to the table cell (<td>) as a data-val attribute.
tdata::Both: trdata:: and tddata::.

How to apply a modifier​

Add the modifier as a prefix to the column alias:

SELECT
created_at,
status AS "nosort::status",
description AS "long-value::description",
internal_flag AS "hidden::internal_flag",
metadata AS "json::metadata"
FROM tickets;

The editor suggests each modifier as an autocomplete item, so you can insert it without remembering the exact spelling.

Common patterns​

  • Hide helper columns. Select a column you need for logic but do not want to show, and prefix it with hidden::. This keeps the table tidy, it does not keep the values from viewers.
  • Pretty-print JSON. Wrap a JSON/text column with json:: so it displays formatted instead of as a raw string.
  • Truncate long text. Use long-value:: for big text fields so the table stays readable, with an option to expand. Columns without it show their values in full.
  • Select rows. Use selectable:: to tick rows and pass them to a linked query.
  • Tables — how table results behave (sort, search, paginate).
  • Cards — the alternative card layout.