Docs/Query Editor
Query Editor#
QueryMind includes a powerful SQL editor with syntax highlighting, autocomplete, and more.
Editor Features#
Syntax Highlighting#
Full SQL syntax highlighting for:
- Keywords (SELECT, FROM, WHERE, etc.)
- Table and column names
- Strings and numbers
- Comments
Autocomplete#
Press Ctrl+Space to trigger autocomplete:
- Table names from your schema
- Column names when typing after a table
- SQL keywords and functions
- Snippets for common patterns
Multiple Tabs#
- Open multiple query tabs
- Each tab maintains its own query and results
- Tabs are preserved across sessions
Keyboard Shortcuts#
| Action | Mac | Windows/Linux |
|---|---|---|
| Execute query | Cmd+Enter | Ctrl+Enter |
| Execute selected | Cmd+Shift+Enter | Ctrl+Shift+Enter |
| Format SQL | Cmd+Shift+F | Ctrl+Shift+F |
| Comment line | Cmd+/ | Ctrl+/ |
| Autocomplete | Ctrl+Space | Ctrl+Space |
Executing Queries#
Run Entire Query#
Press Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux) to execute the entire query in the editor.
Run Selection#
- Select the SQL you want to run
- Press
Cmd+Shift+Enter(Mac) orCtrl+Shift+Enter(Windows/Linux) - Only the selected text is executed
Multiple Statements#
Separate multiple statements with semicolons:
SELECT * FROM users;
SELECT * FROM orders;
Each statement runs sequentially, and results are shown in tabs.
Results Panel#
Table View#
- Sortable columns (click header)
- Resizable columns (drag borders)
- Cell selection for copying
- Null values highlighted
Export Options#
Export results to:
- CSV - Comma-separated values
- JSON - JavaScript Object Notation
- Excel - .xlsx format (Pro/Max plans)
Row Count#
The status bar shows:
- Number of rows returned
- Query execution time
- Affected rows for DML statements
Query History#
Access previous queries:
- Click the History icon in the editor toolbar
- Browse or search past queries
- Click to restore a query
History includes:
- Query text
- Execution timestamp
- Database context