Help › Explore a database

Browse a database

Open a connection in the sidebar, move through its databases, schemas, tables and columns, refresh them, and mark favorites.

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

The sidebar lists your connections under CONNECTIONS. Each connection opens into what the database holds, level by level. Querlyn reads a level from the database when you open it, so a large database does not have to be read before you can start.

Open a connection and look around

Click the arrow beside a connection. It connects, and shows its contents:

LevelWhat it holds
ConnectionIts databases. The one the connection works in is marked current. After them, on databases that have users, a Users and Roles row; see Manage users, roles and privileges. On a database file (SQLite, DuckDB), its database and its main schema open when the connection opens.
DatabaseIts schemas. Schemas the database keeps for itself are marked system.
SchemaFolders by kind of object, each with a count: Tables, Views, Functions and so on.
Table or viewIts columns, with their types. Then, when there are any, the folders Indexes, Foreign Keys, Checks, Triggers and Properties.

Only folders the schema has something for are shown, and only kinds the database has: there is no Sequences folder on MySQL. On MySQL, MariaDB, ClickHouse, MongoDB and Cassandra, what the server calls a database (a keyspace, on Cassandra) is listed right under the connection, and opens like a schema; on Oracle, the users are listed as schemas. On SQL Server, the schemas of the fixed database roles (db_owner and the others) and guest are listed only when they hold something.

A column that is part of the primary key has a gold key icon, and one that is part of a foreign key has a link icon. An index is listed with its columns, and a foreign key with the table it refers to.

A row shows a name and a little more: a column's type, for example. Rest the pointer on a row to read the rest: whether a column allows NULL and its default, a comment on a table or a schema, an index's columns, a connection's address and state. A row whose text does not fit the sidebar shows all of it the same way. For a table's whole structure, open it with Query › Edit Structure… or Query › Show DDL.

While a level is being read, a Loading… row stands in for it. If reading fails, the row says Couldn't load with the reason and a Retry button.

Move with the keyboard

Press ⌘0 on macOS or Ctrl+0 on Windows and Linux to put the keyboard in the sidebar.

KeyWhat it does
↑ on macOS or Up on Windows and Linux, ↓ on macOS or Down on Windows and LinuxMove to the row above or below.
→ on macOS or Right on Windows and LinuxOpen the row; on an open row, go to its first child.
← on macOS or Left on Windows and LinuxClose the row; on a closed row, go to its parent.
↖ on macOS or Home on Windows and Linux, ↘ on macOS or End on Windows and LinuxGo to the first or last row.
↩ on macOS or Enter on Windows and LinuxOn a table or view, open its rows. On other rows, open or close them. On a Couldn't load row, try again.
Typing lettersJump to the next row whose name starts with what you typed.

With the mouse, the arrow opens and closes a row without selecting it, and a double-click on a table or view opens its rows in a table tab; see Open a table's rows.

Do something with what you selected

Right-click a row for the commands that apply to it. The same commands are in the Query menu and act on the selected row.

SelectedCommands
A connectionConnect, Disconnect, New Query on This Connection, Server Activity, Users and Roles, Show ER Diagram, Compare With…, Show Schema History, Take Snapshot Now, Back Up…, Restore…, Edit Connection…, Toggle Read-Only and more; see Manage connections.
A tableOpen Data, Query Data in New Tab, Compare Data With…, Import Data…, Copy to Another Connection…, Edit Structure…, Show DDL, Privileges…, Show ER Diagram, Show Schema History, Copy Name, Toggle Favorite, New Table…, New Query.
A view, function or other objectThe same, with Show Definition in place of Show DDL.
A columnMask Column and Stop Masking Column; see Share your screen safely.
A schema or databaseNew Query, Import Data into New Table…, Copy to Another Connection…, New Table…, Show ER Diagram, Compare With…, Show Schema History, Take Snapshot Now, Privileges…, Back Up…, Restore… and Clear Schema History….

New Query opens a query tab on the database of the row you clicked; see Choose a tab's connection and database.

Command Palette › Database: Copy Name copies the selected object's name, with its schema and quoted where the database needs quotes, ready to paste into SQL.

The buttons at the top of the sidebar act on the selection too: the + menu, Refresh, Connect or Disconnect, Activity, ER Diagram and Compare….

Refresh what you see

Querlyn keeps what it has read, so the sidebar and completion answer at once and do not ask the database again each time. After something changed outside Querlyn, select the connection, database, schema or table and choose Query › Refresh. That part is read again, and what you had open below it opens again.

After a schema change that Querlyn itself ran, such as applying a table design, it refreshes the part that changed by itself.

Mark favorites

Select a table, view or routine and choose Command Palette › Database: Toggle Favorite. A star marks it in the sidebar, and completion offers it before other objects that match equally well. Objects you used recently are preferred in the same way.

What is remembered

Querlyn remembers which rows you had open, for each connection, and opens them again the next time you connect. It also remembers which folders of connections you closed. Both stay on this computer.

Find a table

There is no search box for the sidebar. To get to a table:

  • In the sidebar, open its schema and its Tables folder and type the first letters of its name.
  • In a query tab, start typing its name after FROM; completion finds it in any schema.

View › Go to Tab or Saved Query… (⌘P on macOS or Ctrl+P on Windows and Linux) finds open tabs and saved queries by name. It does not list tables.

Make the sidebar wider

Drag the sidebar's right edge. Double-click the edge to go back to the usual width. Command Palette › View: Widen Sidebar, Command Palette › View: Narrow Sidebar and Command Palette › View: Reset Sidebar Width do the same from the keyboard. ⌘B on macOS or Ctrl+B on Windows and Linux hides and shows the sidebar.

Help for Querlyn 0.1.0. All help topics