Query editor

Write, format, run, explain, and navigate SQL with a fast native editor.

Run SQL

Press ⌘↩ to run the current statement or selected SQL. Multi-statement scripts produce a separate result tab for each statement. Press Esc to request wire-level cancellation for a running query.

Smart autocomplete

Completion reads a background schema index and the statement around the caret. It suggests the right tables and columns for each clause, writes full JOIN lines from foreign keys, and learns the SQL you write most. See Smart autocomplete.

Formatting and templates

Press ⌥⇧F to format SQL. Type a live-template prefix such as sel, ins, or upd, then press Tab to expand it.

Multi-cursor editing

ActionShortcut
Add next occurrence⌘D
Select all occurrences⇧⌘L
Add cursor above or below⌥⌘↑ / ⌥⌘↓
Undo cursor operation⌘U

Query plans

Use Explain or Analyze to inspect a query plan as a navigable tree. Analyze executes the statement, so review it first and avoid it for destructive SQL.

Results

Pin results to preserve them (free Querly keeps four pinned results per query tab), create inline bar, line, or area charts for quick exploration, and use search or column filters without re-running the query. ⌘F in the editor finds in your SQL; ⌘F in the grid searches the results. When a result has a deleted_at column, the trash button hides soft-deleted rows. Export a result to Excel (.xlsx), CSV, JSON, or TSV; the file is named after the tables in the query.

Visual Query Builder

Prefer to start visually? Choose Table → Visual Query Builder…. Add tables, pick columns, and Querly derives the JOINs from foreign keys. The preview runs with a bounded LIMIT, and the result is real SQL you can keep editing.

Assistant

In Querly 1.11 and later, open Assistant next to Details in the side panel. Describe the data you want in plain English, or hold the mic and say it, and the SQL lands in the editor ready to run. A follow-up such as only active rows refines the last SQL. When a query fails, Explain this error shows what's wrong, how to fix it, and fixed SQL you can add to the editor.

On Macs with Apple Intelligence (macOS 26) the Assistant runs on-device: no API key, and nothing leaves your Mac. A cloud provider is optional; see AI Assist settings and Privacy and licensing for what is sent.

Check as you type

A moment after you stop typing, Querly asks the database to plan the statement with EXPLAIN inside a read-only transaction. It never runs the query. The editor footer then says Looks good · about 120 rows, or names the missing table or column. Unfinished statements stay quiet. Turn it off in Settings → SQL Editor → Check queries as you type.

Which statements ran

After a run, each statement gets a tick or a cross in the gutter, with how long it took.

Plans in plain words

Explain Query (⇧⌘E) opens the plan with a short In plain words summary: which tables are read, which steps scan every row, and where an index would help. When the database gives no row estimates (SQLite), Querly says so instead of guessing.

↑↓ move↩ open