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. Help › Welcome and Help › Open the Welcome Notebook open them again at any time.

Step 1: add a connection

  1. Choose File › New Connection…, or Add Connection… in the sidebar.
  2. Choose the kind of database under Database engine, and say where it is and who you sign in as.
  3. Choose an Environment. For a database that matters, choose Production; Querlyn is then more careful with it.
  4. 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 File › Import Connections…. 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 Command Palette › Database: Paste Connection URL. 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

  1. Press ⌘T on macOS or Ctrl+T on Windows and Linux for a query tab.
  2. Look at the bar above the editor. If it says No connection, click it and choose your connection.
  3. 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.
  4. 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 Query › Open Data: 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.

ToDo this
SortClick a column's header.
Find rowsPress ⌘F on macOS or Ctrl+F on Windows and Linux with the keyboard in the results, and type.
See one long value in fullSelect the cell and press Space.
CopySelect cells and press ⌘C on macOS or Ctrl+C on Windows and Linux.
Save to a fileFile › Export Results…

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 File › Save As… 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: Help › Keyboard Shortcuts. See Change keyboard shortcuts.

Where to go next

You want toRead
Know what each part of the window isFind your way around the window
Reach a database behind a bastion or in a clusterReach a database through SSH, Kubernetes and SSM tunnels
Change data in a tableEdit rows in a result
Understand a slow querySee a query's execution plan
Change a tableCreate and change tables
Load a file into a tableImport data from a file
Join results from two databasesQuery your results and join across connections
Ask many databases the same questionRun a query on several connections
Keep the keys of DataGrip, VS Code or TablePlusChange keyboard shortcuts
Know what a feature does on your databaseWhat works on each database

Help for Querlyn 0.1.0. All help topics