Data Grid & Editing
Double-click a table to open it in the data grid — a virtualized, server-paged view that stays smooth on very large tables.
!Data grid
Browsing large tables
- Virtualized rendering draws only the visible rows.
- Server-side keyset pagination loads pages as you scroll (falling back to offset paging when a table has no single-column primary key).
- The header shows the loaded count and the total estimate.
Toolbar
An icon toolbar sits above the grid: refresh, filter & sort (toggles the panel; shows a badge with the active-criteria count), add row, import CSV, export, and — when you have pending edits — revert and review & apply. The table name and loaded/estimate counts are shown on the right.
Column profile
Right-click a column header and choose Profile column… for instant stats: row / non-null / null counts, distinct count, min/max, and the most common values with mini bars.
Charts
Toggle the chart view (grid/chart buttons in the toolbar, or the Chart button under query results) to visualise the current rows. Pick a chart type (bar, line, area, pie), an X-axis / label column, and one or more numeric series. Charts render from the loaded rows — no query needed.
Filter & Sort
Click Filter & sort to open a panel where you can:
- Add multiple filter criteria — choose a column, an operator
(
=,≠,<,≤,>,≥,contains,starts with,is null,not null) and a value. Filters combine withAND. - Add multiple sort columns (ascending/descending). Sorting runs
server-side (
ORDER BY), so it covers the whole table — not just the loaded rows.
Click Apply filter & sort to reload the paged grid, or Clear to reset. You can also click a column header for a quick client-side sort of the loaded rows. (Filtering/sorting the grid is available on Pro.)
Foreign-key lookup
Cells in a foreign-key column show a ↗ button that opens the referenced table filtered to the matching row — or ⌘-click (Ctrl-click) the cell itself. (Pro)
Inspect a row
Hover a row and click ⌕ in its number cell — or double-click the number — to open the row inspector beside the grid. It reads the row again by its primary key, so what you see is what the server holds now, and shows:
- Every column, one per line, with a filter for column names and values. JSON is shown indented; any value can be copied.
- References — for each foreign key on the table, the row it points at.
Inspect moves the inspector to that row (← comes back); Open
opens it in a tab. A key that points at a row that does not exist is shown
in red as a dangling reference; a
NULLkey references nothing. - Referenced by — for each foreign key elsewhere that points at this table, how many rows point at this one, counted up to 1,000. Click to open them in a filtered tab.
- Extract a slice from this row… starts a slice from just this row. (Premium)
A composite foreign key is followed as one lookup on all its columns. The
inspector only reads: every lookup runs read-only and is rolled back. A key
the grid shows only as [N bytes] (a binary column) cannot be looked up, and
says so. On ClickHouse, which has no foreign keys and no row-identifying key,
the inspector shows the row as loaded.
Inline editing
On writable connections (Pro/Premium):
- Double-click a cell to edit; use ∅ to set
NULL. - Delete a row with the row's ✕ (toggles a strikethrough); Add row inserts a new row at the top.
- Changes are buffered and highlighted (edited = blue, deleted = red, new = green). The bar shows the pending count.
- Review & apply shows the exact
INSERT/UPDATE/DELETESQL, which runs in a single transaction. Revert discards the buffer.
Primary key required
Editing and deleting require a single-column primary key so rows can be targeted safely.
View a cell
Double-click a cell in a query result (or in a table you are not editing), or right-click any cell → View value…, to open it in the cell viewer:
- JSON as a tree you can fold, with a search that opens the branches holding a match.
- Time — a date-time, an ISO timestamp, or Unix seconds/milliseconds in a
numeric column — in UTC, your local time, relative ("3 hours ago") and as
Unix time. A
DATETIMEnames no zone, so it is read as UTC and the viewer says so. - Bytes — a BLOB shown in the grid as
[N bytes]is read again by its row's key (up to 4 MB) and shown as a hex dump, and as the image it holds when it is a PNG, JPEG, GIF, WebP or BMP — told by its first bytes, not by the column name. This needs a table with a primary key; a query result has no key to read the row again by.
The row inspector shows JSON as the same tree, puts the local and relative time under timestamps, and has a view link on long, JSON, time and binary values.
Copy in other shapes
Right-click a cell for:
- Copy value, and Copy row as JSON, SQL
INSERTor Markdown. - All loaded rows as a Markdown table (for a PR or a chat), CSV, JSON or
SQL
INSERTstatements — one per row, named after the table. Pending edits are copied as you see them. - Columns as a TypeScript interface or a Rust struct (
sqlx::FromRow), typed from the column types. Every field is nullable (| null,Option<…>): a result says what type a column is, not whether it can be NULL. A BIGINT or DECIMAL becomes astringin TypeScript, since a JavaScript number cannot hold every value.
Values stay as the grid has them: JSON holds strings, so a BIGINT or a DECIMAL is not rounded on the way.
Column tools
Right-click a column header to copy the column as a list or as an
IN (…) clause, or any of the shapes above for all loaded rows.