Help › Get started
Get started with Querlyn
Add your first connection, run your first query, look at the result and keep your work, in about five minutes.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Querlyn is a database IDE for the Mac. You connect to your databases, write SQL in an editor that knows your tables, and work with the results. This topic takes you from an empty window to your first result, and shows where to go from there.
The first time Querlyn starts on a computer without connections, it opens a Welcome tab with the first steps as buttons, and beside it the Welcome notebook, which runs on a small sample database you can try things on. and open them again at any time.
Step 1: add a connection
- Choose , or Add Connection… in the sidebar.
- Choose the kind of database under Database engine, and say where it is and who you sign in as.
- Choose an Environment. For a database that matters, choose Production; Querlyn is then more careful with it.
- Choose Test Connection to check that everything is right, then Save & Connect.
The connection appears in the sidebar and opens into its databases, schemas and tables. When it is your first, a query tab on it comes to the front, ready for Step 2. Connect to a database has the details, and a topic for each kind of database.
Three other ways to get a connection:
- From another tool. Bring your connections over with . Passwords are not copied; Querlyn asks for each one the first time you connect. See Import connections.
- From a URL. Copy the URL and run . A URL looks like the example below. See Paste a connection URL.
- No database at hand? Choose SQLite as the engine and type
:memory:as the database file. That gives you an empty database in memory to try things in; it is gone when you disconnect.
postgresql://[email protected]:5432/orders
Step 2: run a query
- Press ⌘T on macOS or Ctrl+T on Windows and Linux for a query tab.
- Look at the bar above the editor. If it says No connection, click it and choose your connection.
- Type a statement. As you type, Querlyn suggests tables, columns and keywords; ↩ on macOS or Enter on Windows and Linux or ⇥ on macOS or Tab on Windows and Linux takes a suggestion.
- Press ⌘↩ on macOS or Ctrl+Enter on Windows and Linux, or choose Run.
SELECT 1 AS answer;
Querlyn runs the statement your cursor is in, not the whole tab, so you can keep several statements in one tab and run them one at a time. To look at a table without writing SQL, double-click it in the sidebar, or select it and choose : it opens in a table tab; see Open a table's rows.
Write and run SQL and Run statements and scripts go further.
Step 3: look at the result
The result appears under the editor.
| To | Do this |
|---|---|
| Sort | Click a column's header. |
| Find rows | Press ⌘F on macOS or Ctrl+F on Windows and Linux with the keyboard in the results, and type. |
| See one long value in full | Select the cell and press Space. |
| Copy | Select cells and press ⌘C on macOS or Ctrl+C on Windows and Linux. |
| Save to a file |
A large result opens at once; more rows load as you scroll. See Work with results.
Step 4: keep your work
A query tab is not saved by itself, and query tabs are not reopened the
next time Querlyn starts (table tabs are). To keep a query, press
⌘S on macOS or Ctrl+S on Windows and Linux and
give it a name: it becomes a saved query, listed in the sidebar. Or
choose to save it as a .sql file.
See Keep queries as saved queries and Open and save SQL files.
Before you connect to production
Read Stay safe on production. In short: mark
the connection as Production, and Querlyn asks before destructive
statements, keeps your changes in a transaction until you commit, and
shows in red where you are. Dry Run shows the rows an UPDATE or
DELETE would change before anything is committed; see
See a change before you commit it.
Find anything
- Any command: press ⇧⌘P on macOS or Ctrl+Shift+P on Windows and Linux and type what you want to do. See The command palette.
- Help for what is on screen: press ⌘? on macOS or F1 on Windows and Linux in any tab or dialog. See Get help.
- Every shortcut: . See Change keyboard shortcuts.
Where to go next
| You want to | Read |
|---|---|
| Know what each part of the window is | Find your way around the window |
| Reach a database behind a bastion or in a cluster | Reach a database through SSH, Kubernetes and SSM tunnels |
| Change data in a table | Edit rows in a result |
| Understand a slow query | See a query's execution plan |
| Change a table | Create and change tables |
| Load a file into a table | Import data from a file |
| Join results from two databases | Query your results and join across connections |
| Ask many databases the same question | Run a query on several connections |
| Keep the keys of DataGrip, VS Code or TablePlus | Change keyboard shortcuts |
| Know what a feature does on your database | What works on each database |
Help for Querlyn 0.1.0. All help topics