Help › Get started

Find your way around the window

What each part of the Querlyn window is for, how to move between the parts with the keyboard, and which tab, panel or dialog holds what.

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

The Querlyn window has a sidebar on the left, tabs beside it and a status bar along the bottom. Everything else opens in a tab, in a panel or in a dialog.

+-----------+--------------------------------------------+
| Sidebar   | Tabs                                       |
|           +--------------------------------------------+
| CONNEC-   | The bar above the editor                   |
| TIONS     +--------------------------------------------+
|           | Editor                                     |
| SAVED     |                                            |
| QUERIES   +--------------------------------------------+
|           | Results                                    |
+-----------+--------------------------------------------+
| Status bar                                             |
+--------------------------------------------------------+

The sidebar

The sidebar holds your connections under CONNECTIONS and your saved queries under SAVED QUERIES.

  • A connection opens into its databases, schemas, tables and other objects. See Browse a database.
  • The last entry under CONNECTIONS is Scratch, Querlyn's own database for querying copies of results and files; see Query your results and join across connections.
  • The buttons at the top add a connection, refresh, connect or disconnect, and open Activity, ER Diagram and Compare for what is selected.
  • Right-click anything for what can be done with it.

Press ⌘B on macOS or Ctrl+B on Windows and Linux to hide or show the sidebar, and ⌘0 on macOS or Ctrl+0 on Windows and Linux to move the keyboard into it. Drag its edge to make it wider. The chevron on its edge hides it too, and a hidden sidebar leaves a thin strip on the left that shows it again.

Some tabs have a panel of their own beside what they show: an ER diagram's outline, schema compare's list of objects, help's contents, an execution plan's details, a schema history's list of snapshots and the Teams tab's list. Each hides and shows the same way, with a chevron on its edge and a strip where it was, and its edge drags to make it wider. To use the whole screen, choose Command Palette › View: Toggle Full Screen (⌃⌘F on macOS or F11 on Windows and Linux).

Tabs

Your work is in tabs. A query tab holds an editor and its results, and names its database after its title in lighter text. A table tab, opened by double-clicking a table in the sidebar, holds that table's rows with a WHERE and an ORDER BY field, and is named database.table; see Open a table's rows. Settings, help, a table's structure, a diagram and the other views in the table further down each open in a tab of their own.

ToPress
Open a query tab⌘T on macOS or Ctrl+T on Windows and Linux
Close the tab shown⌘W on macOS or Ctrl+W on Windows and Linux
Go to the next tab⌃⇥ on macOS or Ctrl+Tab on Windows and Linux
Go to the tab before⌃⇧⇥ on macOS or Ctrl+Shift+Tab on Windows and Linux
Go to a tab or a saved query by name⌘P on macOS or Ctrl+P on Windows and Linux

A tab shows marks for what you should know about it: a red dot for a Production connection, a dot for changes not saved, TX while a transaction is open, and how many sessions your transaction blocks or how long it has been open (see Lock waits and timeouts). Right-click a tab to save or close it.

When Querlyn starts, it opens one empty query tab and the table tabs, Kafka topic tabs and consumer group tabs that were open when it quit. Other query tabs are not opened again: keep what you want as a saved query or a file.

⌘P on macOS or Ctrl+P on Windows and Linux (View › Go to Tab or Saved Query…) lists your open tabs and saved queries. Type part of a name and press ↩ on macOS or Enter on Windows and Linux.

A query tab

PartWhat it is forRead more
The bar above the editorRun and the other buttons, the transaction's state, the tab's connection and its databaseWrite and run SQL
The editorWhere you write SQLEdit text in the SQL editor
The results paneRows, messages, plans and charts of what you ranWork with results
ToPress
Put the keyboard in the editor⌘1 on macOS or Ctrl+1 on Windows and Linux
Put the keyboard in the results⌘2 on macOS or Ctrl+2 on Windows and Linux
Hide or show the results pane⌘J on macOS or Ctrl+J on Windows and Linux

The command palette

Nearly everything Querlyn does is a command, and the palette lists them. Press ⇧⌘P on macOS or Ctrl+Shift+P on Windows and Linux, type part of a command's name and press ↩ on macOS or Enter on Windows and Linux.

The palette lists the commands that can run where you are, each with its shortcut. A command that is missing is one that does not apply right now: Commit Transaction, for example, is there only while a transaction is open.

The same commands are in the menu bar, on buttons and in right-click menus. Whichever you use, the same thing happens.

The status bar

The bar along the bottom tells you about the tab in front, from left to right:

  • the connection's environment; PRODUCTION in red for a Production connection,
  • whether the tab commits by itself, and whether a transaction is open,
  • in a query tab, where the cursor is, the kind of SQL the editor expects and the file's line endings,
  • messages about what just happened, with Details when there is more to read; see Read a message in full,
  • Screen Share, which hides names and masks sensitive columns before you share your screen; see Share your screen safely,
  • Console, which opens the statement console,
  • a notice when a refresh found that a schema changed; see See how a schema changed over time,
  • the progress of an import, a backup, a restore or a copy of tables that you hid,
  • the state of sync, of your teams and of your account (sync and teams only while their Preview is on),
  • the theme in use, which opens Command Palette › Preferences: Choose Theme…, and the help button.

A narrow window has no room for all of it. The bar then leaves parts out, whole, in this order: the theme's name, the line endings, the kind of SQL, the tab's name, the connection's name and address, the cursor's place, and last the commit mode, which the bar above the editor shows too. The environment, an open transaction, messages and the buttons at the right always stay. A message cut short shows all of itself when you rest the pointer on it.

Panels

Two panels open inside the window without taking a tab:

PanelOpens withWhat it is
Query history, at the right⇧⌘H on macOS or Ctrl+Shift+H on Windows and Linux (View › Show Query History)What you ran, newest first. See Search the query history.
Statement console, at the bottom⌃` on macOS or Ctrl+` on Windows and Linux (View › Toggle Statement Console)Every statement Querlyn sends, its own included. See See what Querlyn sends.

Other tabs

TabOpens withRead more
A table's rowsQuery › Open Data, or a double-click in the sidebarOpen a table's rows
SettingsQuerlyn › Open SettingsChange settings
HelpHelp › Querlyn HelpGet help
WelcomeHelp › WelcomeGet started with Querlyn
Server ActivityQuery › Server ActivitySee what runs on the server
Users and RolesQuery › Users and Roles, Query › Privileges…Manage users, roles and privileges
A table's structureQuery › Edit Structure…, Query › New Table…Create and change tables
An ER diagramQuery › Show ER DiagramDraw an ER diagram
A schema comparisonQuery › Compare Schemas…Compare two schemas
A data comparisonQuery › Compare Data With…Compare the data of two tables
A schema's historyQuery › Show Schema HistorySee how a schema changed over time
An object's definitionQuery › Show DDL, Query › Show DefinitionShow an object's definition
A scratch queryFile › New Scratch QueryQuery your results and join across connections
Teams (a Preview)Querlyn › Show TeamsWork in a team (Preview)

Dialogs

DialogOpens withRead more
A connectionFile › New Connection…Connect to a database
Import ConnectionsFile › Import Connections…Import connections
ExportFile › Export Results…Export results to a file
Import DataFile › Import Data…, File › Import Data into New Table…Import data from a file
Copy to Another ConnectionFile › Copy to Another Connection…, Query › Copy Result to Table…Copy tables between connections
Back Up, RestoreFile › Back Up…, File › Restore…Back up and restore a database
Run on Several ConnectionsQuery › Run on Several Connections…Run a query on several connections
Query This Result, Add to ScratchQuery › Query This Result…, Query › Add to Scratch As…Query your results and join across connections
Undo JournalQuery › Show Undo Journal…See a change before you commit it
Report a ProblemHelp › Report a Problem…Report a problem
AboutQuerlyn › About QuerlynFind your version
AcknowledgementsHelp › AcknowledgementsOpen-source acknowledgements

In any tab, panel or dialog, ⌘? on macOS or F1 on Windows and Linux opens the help topic for it.

When no tab is open

With every tab closed, the window says No open tabs and offers New Query (⌘T on macOS or Ctrl+T on Windows and Linux) and Open File… (⌘O on macOS or Ctrl+O on Windows and Linux). Your connections and saved queries are still in the sidebar.

Help for Querlyn 0.1.0. All help topics