explain_query
Analyze SQL query performance by retrieving execution plans from Postgres, MySQL, or SQLite databases. Identify and resolve slow queries efficiently.
Instructions
Run EXPLAIN ANALYZE (Postgres) or EXPLAIN (MySQL/SQLite) on a SELECT query to show the execution plan. Useful for diagnosing slow queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT statement to explain | |
| params | No | Positional parameters matching the query | |
| connection | No | Named connection to use. Defaults to the default connection. |