- AI Assistant: SQL Advisor - a new tab in the AI assistant dialog, dedicated to analyzing and improving existing SQL queries.
- Ask the AI to explain the query, optimize it for performance, rewrite it using CTEs or
window functions, add comments, find NULL-handling issues, and more. - A built-in suggestions menu offers one-click prompts for the most common advisor tasks.
- The result is shown as a split view: the AI-revised SQL on the left, a formatted explanation on the right.
- A diff feature highlights exactly what the AI changed.
- Workflow integration: whenever a query is generated in the "Generate SQL" tab, the SQL Advisor
automatically starts a new conversation pre-loaded with that query and its /* AI: ... */ context comment,
so you can immediately switch to the Advisor to refine or explain the result.
- Ask the AI to explain the query, optimize it for performance, rewrite it using CTEs or