Help › Work with results

Work with results

Read the results pane, move and select in the grid, arrange columns, and load more of a large result.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

When a statement returns rows, they appear in the results pane under the editor. This topic covers reading and moving around; the other topics of this section cover what you can do with the rows:

The results pane

Along the top of the pane are its tabs:

TabShows
Result 1, Result 2, …One for each statement that returned rows, with its row count.
ChartA chart of the result; see Draw a chart from a result.
Plan, RawAfter Explain: the plan as a tree, and as the database returned it.
MessagesWhat else the run reported: rows changed, the server's notices, errors.

Query › Next Result and Query › Previous Result go from tab to tab.

The line above the grid says where things stand, for example "1,000 rows · 35 ms · more available": rows loaded, how long the statement took, and whether there is more. It also says whether the rows can be edited (Editable and the table's name, or Read-only and why) and which sort and filter are in effect.

ToPress
Put the keyboard in the results⌘2 on macOS or Ctrl+2 on Windows and Linux
Go back to the editor⌘1 on macOS or Ctrl+1 on Windows and Linux
Hide or show the results pane⌘J on macOS or Ctrl+J on Windows and Linux

Command Palette › View: Grow Results Pane and Command Palette › View: Shrink Results Pane change its height.

How values are shown

  • NULL is shown as a muted NULL, so it cannot be mistaken for an empty text.
  • Numbers are right-aligned and exact: a decimal is never rounded through a floating-point number.
  • Long text and JSON are shown on one line; open the value viewer to see all of it.
  • Binary values are shown as the start of their bytes in hex, or as the kind of image they hold.

Each column's header shows its name and its type.

Move around

To movePress
One cell↑ on macOS or Up on Windows and Linux, ↓ on macOS or Down on Windows and Linux, ← on macOS or Left on Windows and Linux, → on macOS or Right on Windows and Linux
To the next or previous cell⇥ on macOS or Tab on Windows and Linux, ⇧⇥ on macOS or Shift+Tab on Windows and Linux
A page up or down⇞ on macOS or PageUp on Windows and Linux, ⇟ on macOS or PageDown on Windows and Linux
To the start or end of the row⌘← on macOS or Home on Windows and Linux, ⌘→ on macOS or End on Windows and Linux
To the first or last row⌘↑ on macOS or Ctrl+Up on Windows and Linux, ⌘↓ on macOS or Ctrl+Down on Windows and Linux
To the first or last cell of the result↖ on macOS or Ctrl+Home on Windows and Linux, ↘ on macOS or Ctrl+End on Windows and Linux

Select cells

  • Drag across cells, or hold ⇧ on macOS or Shift on Windows and Linux and use the keys above to extend the selection; the table below has them.
  • ⇧ on macOS or Shift on Windows and Linux-click extends the selection to the cell you click; ⌘ on macOS or Ctrl on Windows and Linux-click adds a cell to it.
  • Click a row's number at the left to select the row (⇧Space on macOS or Shift+Space on Windows and Linux). Click the corner above the row numbers, or press ⌘A on macOS or Ctrl+A on Windows and Linux, to select everything loaded.
  • ⌥ on macOS or Alt on Windows and Linux-click a column's header to select the column (Command Palette › Results: Select Column).
To extend the selectionPress
By one cell⇧↑ on macOS or Shift+Up on Windows and Linux, ⇧↓ on macOS or Shift+Down on Windows and Linux, ⇧← on macOS or Shift+Left on Windows and Linux, ⇧→ on macOS or Shift+Right on Windows and Linux
By a page⇧⇞ on macOS or Shift+PageUp on Windows and Linux, ⇧⇟ on macOS or Shift+PageDown on Windows and Linux
To the start or end of the row⇧⌘← on macOS or Shift+Home on Windows and Linux, ⇧⌘→ on macOS or Shift+End on Windows and Linux
To the first or last row⇧⌘↑ on macOS or Ctrl+Shift+Up on Windows and Linux, ⇧⌘↓ on macOS or Ctrl+Shift+Down on Windows and Linux
To the first or last cell of the result⇧↖ on macOS or Ctrl+Shift+Home on Windows and Linux, ⇧↘ on macOS or Ctrl+Shift+End on Windows and Linux

Arrange the columns

ToDo this
Make a column wider or narrowerDrag the right edge of its header, or press ⌥⌘= on macOS or Ctrl+Alt+= on Windows and Linux and ⌥⌘- on macOS or Ctrl+Alt+- on Windows and Linux.
Fit a column to its contentDouble-click the edge of its header, or right-click the header and choose Fit Column Width to Content (Command Palette › Results: Fit Column Width to Content).
Move a columnDrag its header, or press ⌥⌘← on macOS or Ctrl+Alt+Left on Windows and Linux and ⌥⌘→ on macOS or Ctrl+Alt+Right on Windows and Linux.
Keep a column in view while you scroll sidewaysRight-click its header and choose Pin or Unpin Column (Command Palette › Results: Pin or Unpin Column).
Hide a columnRight-click its header and choose Hide Column (Command Palette › Results: Hide Column). Show All Columns (Command Palette › Results: Show All Columns) brings hidden ones back.

The arrangement belongs to this result. It is not kept for the next run.

Large results

Querlyn does not load a whole result at once. It loads the first 1,000 rows, and more as you scroll towards them, so a query that returns millions of rows shows its first rows straight away. The status line says more available while there are rows you have not scrolled to.

Each result may use a limited amount of memory, 256 MB. When a result reaches it, loading stops and the line reads memory budget reached. Then either:

  • choose Load More (Query › Load More Rows (Raise Memory Budget)) to let this result use as much again, or
  • export the result, which writes every row to a file without holding them in memory.

While a result is only partly loaded, its statement is still open on the tab's session. Run is ready meanwhile: running something else in the tab, or closing the tab, ends it. A statement that only reads is stopped on the server, so even a table of millions of rows ends at once; inside an open transaction, where stopping it would abort the transaction, Querlyn reads its remaining rows first.

Sorting, filtering, copying and charts work on the rows that are loaded. Where that matters, each topic says how to reach all rows.

Help for Querlyn 0.1.0. All help topics