Metadata-Version: 2.4
Name: sql-explain-advisor
Version: 0.1.0
Summary: Parse PostgreSQL EXPLAIN (ANALYZE) output and suggest missing indexes + query fixes. Zero-dependency.
Author: Aman Bhawsar
License: MIT
Keywords: postgresql,sql,explain,index,query-optimization,database,performance
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Dynamic: license-file

# sql-explain-advisor
Parse PostgreSQL `EXPLAIN (ANALYZE, BUFFERS)` output and get **missing-index suggestions + query fixes**. Zero dependencies.

```python
from sql_explain_advisor import report
report(sql, explain_output)
# [1] MISSING INDEX on users.email (scanned 1000000->1, sel 0.0001%)
#     CREATE INDEX CONCURRENTLY idx_users_email ON users (email);
```
Detects: low-selectivity Seq Scans (missing index), nested-loop amplification, disk sorts, SELECT * bloat.
Honest: suggestions are heuristic from the plan — always verify with EXPLAIN before/after on your DB.

MIT © Aman Bhawsar
