Query Builder
Welcome to the Query Builder! This guide will walk you through the main features and interface of the Query tab in our reporting app. You’ll learn how to write and run SQL queries, explore results in different views, tweak parameters, and more.
Accessing the Query Tool
- Navigate to your report in the app.
- Click on the Queries section in the sidebar.
- Select the query you want to work on (or create a new one).
Note: You’ll see a set of tabs across the top—Run, Query, Table, Params, Rendered Query, Run History, and Download Results.
Query Tab
This is the primary workspace for writing and editing SQL queries.
- The top half is a code editor (Monaco) where you can type or paste SQL.
- The bottom half displays results in a table once you run the query.
- You can drag the horizontal divider to resize editor vs. results.

Steps to run a query:
- Write your SQL in the editor.
- Click the Run tab (▶️) or press Ctrl/Cmd + Enter.
- Results will appear below; columns are sortable.
Table Tab
View your last query results in a full-screen table:
- Pagination is fixed to 50 rows per page.
- You can sort by any column header.

Params Tab
If your query uses parameters (defined in YAML), the Params tab lets you:
- Fill in or adjust parameter values via a form.
- Re-run the query with new values to see updated results.

Rendered Query Tab
See the actual SQL sent to the database after Liquid templating:
- Read-only editor.
- Handy for debugging or copying the final statement.

Options Drawer (Settings & Schema)
Click the ⚙️ icon in the top-right to open the drawer:
- Database Connection: Switch between your configured connections.
- Database Schema: Browse tables and columns for auto-completion.
- Query Name: Rename your query on the fly.

Query Scheduling
- Schedule: Set up a schedule for your query to run automatically.
- Notifications: Check how to set up alert for that will be triggered when the query runs and conditions are met.

Keyboard Shortcuts
- Ctrl/Cmd + Enter: Run the current query (or selected text).
- Drag Divider: Click and drag the gray bar between editor and results to resize.
Liquid Templating (Preview)
Under the hood, we use Liquid to inject parameters into your SQL.
We’ll dig deeper into Liquid templating—how to write assign
statements, use filters, and more—in the next section.
End of Query Tool guide. Happy querying!