SQL reviews
Review, approve, and manage AI-generated SQL queries with filtering and keyboard navigation.
SQL Reviews lets you inspect every SQL query generated by the AI before or after execution. The page uses a split-pane layout with a filterable list on the left and a detailed inspector on the right.
Browsing reviews
The left pane shows a paginated list of SQL reviews (20 per page). Each entry displays a query snippet, status badge, complexity indicator, and associated connection. Click any review to open it in the inspector.
Filtering
Stack multiple filters to narrow down reviews.
| Filter | Options |
|---|---|
| Search | Free-text search across query content |
| Status | Pending, Approved, Rejected, Reviewed |
| Complexity | Low, Medium, High, Unknown |
| Sync Status | Synced, Disconnected |
| Connection | Filter by data source |
| Table | Filter by referenced table |
| Tag | Filter by assigned tags |
| Date Range | From and To date pickers |
| Sort | Created date or Context injection count |
Active filters appear visually, and the total count updates as you filter. Click Reset to clear all filters.
Keyboard navigation
Use the following shortcuts to navigate the review list.
| Key | Action |
|---|---|
| Arrow Up / Down | Navigate through the review list |
| Enter | Open selected review in the inspector |
| Escape | Close the inspector |
Reviewing a query
The inspector panel shows the following details for a selected review:
- Full SQL query with syntax highlighting
- Status and complexity badges
- Connection and table references
- Context injection details showing what knowledge was used
Changing review status
Use the action buttons to change a review's status.
- Approve — Mark the query as safe and correct
- Reject — Flag the query as problematic
- Mark as Reviewed — Acknowledge the query without approving or rejecting
You can click filter badges within the inspector (for example, connection name or complexity level) to quickly filter the list to similar reviews.
Deep linking
Each review has a unique URL. You can share a direct link to a specific review, and it opens with the inspector pre-loaded.
Docs