explainQuery
Get the estimated execution plan for a SELECT query without running it. Understand how the database will execute your SQL to spot performance bottlenecks.
Instructions
Return the estimated execution plan for a SELECT SQL query without actually executing it. The response format depends on the database engine (e.g. MSSQL, PostgreSQL, MySQL) and is returned as-is from the database driver.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT SQL statement whose execution plan should be retrieved | |
| database | No | Database in which to explain the query; omit to use the default |