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 (⌃⌘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.
| To | Press |
|---|---|
| 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 () 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
| Part | What it is for | Read more |
|---|---|---|
| The bar above the editor | Run and the other buttons, the transaction's state, the tab's connection and its database | Write and run SQL |
| The editor | Where you write SQL | Edit text in the SQL editor |
| The results pane | Rows, messages, plans and charts of what you ran | Work with results |
| To | Press |
|---|---|
| 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 , 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:
| Panel | Opens with | What it is |
|---|---|---|
| Query history, at the right | ⇧⌘H on macOS or Ctrl+Shift+H on Windows and Linux () | What you ran, newest first. See Search the query history. |
| Statement console, at the bottom | ⌃` on macOS or Ctrl+` on Windows and Linux () | Every statement Querlyn sends, its own included. See See what Querlyn sends. |
Other tabs
| Tab | Opens with | Read more |
|---|---|---|
| A table's rows | , or a double-click in the sidebar | Open a table's rows |
| Settings | Change settings | |
| Help | Get help | |
| Welcome | Get started with Querlyn | |
| Server Activity | See what runs on the server | |
| Users and Roles | , | Manage users, roles and privileges |
| A table's structure | , | Create and change tables |
| An ER diagram | Draw an ER diagram | |
| A schema comparison | Compare two schemas | |
| A data comparison | Compare the data of two tables | |
| A schema's history | See how a schema changed over time | |
| An object's definition | , | Show an object's definition |
| A scratch query | Query your results and join across connections | |
| Teams (a Preview) | Work in a team (Preview) |
Dialogs
| Dialog | Opens with | Read more |
|---|---|---|
| A connection | Connect to a database | |
| Import Connections | Import connections | |
| Export | Export results to a file | |
| Import Data | , | Import data from a file |
| Copy to Another Connection | , | Copy tables between connections |
| Back Up, Restore | , | Back up and restore a database |
| Run on Several Connections | Run a query on several connections | |
| Query This Result, Add to Scratch | , | Query your results and join across connections |
| Undo Journal | See a change before you commit it | |
| Report a Problem | Report a problem | |
| About | Find your version | |
| Acknowledgements | Open-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