explain_query
Get the execution plan for a SQL query to analyze performance. Optionally run EXPLAIN ANALYZE to execute the query and measure actual timing.
Instructions
Return the EXPLAIN execution plan for a SQL query. Set analyze=True to run EXPLAIN ANALYZE (this actually executes the query).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| analyze | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |