Execute SQL panel
Write graph queries in tabs, check them, and run them into the graph area.

Query tabs
- Each tab has its own SQL and its own graph. The orange + adds a tab; the × on a tab closes it.
- Right-click a tab for Close all tabs and Close other tabs.
- A warning icon on the tab strip means the current query does not return a graph: add
JSON_GRAPH(...). - Your tabs and their SQL are saved for each database and user, and come back when you reconnect.
The editor
The editor has line numbers and SQL highlighting. Right-click it for:
| Item | What it does |
|---|---|
| Copy, Paste, Undo, Redo | The usual editing commands (also with the keyboard shortcuts). |
| Make font larger / smaller, Bold font | Change the editor's font; the Query results dialog uses the same size. |
| Format SQL | Lay the query out on several indented lines. |
| Clear SQL | Empty the editor. |
| Insert a random demo query | Single hop, 2-nodes hop or 3-nodes-hop: a random valid query built from the decompiled schema. |
Drag the bar under the panel to make it taller; double-click the bar to fit the panel to the query.
Execute
Execute first checks the query with CoraDB's own SQL grammar and the database's schema. If it finds a problem it shows it, and you can fix the query or choose Execute anyways. The result appears in the graph area of the active tab.
When a query returns more nodes than Max nodes displayed in graph (Settings ▸ Options), you are asked whether to show only the first ones or cancel.
Queries that don't return a graph
A query without JSON_GRAPH(...) (for example SELECT * FROM orders) can't be drawn. A warning offers
View data as non-graph structure, which opens the Query results dialog.


- Edit the SQL and click Execute (the SQL is checked first). The text box can be resized.
- Rows are paged (page size in Settings ▸ Options); use the first, previous, next and last page buttons.
- Drag a column edge to resize it; hidden columns come back with Un-hide all columns.
- The dialog can be moved and resized.
Query with AI
Describe what you want in plain language and the AI writes the graph query. See AI features.