Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies = [
"pglast==7.2.0",
"attrs>=25.3.0",
"psycopg-pool>=3.2.6",
"instructor>=1.7.9",
]
license = "mit"
license-files = ["LICENSE"]
Expand Down
22 changes: 0 additions & 22 deletions src/postgres_mcp/dta/__init__.py

This file was deleted.

6 changes: 3 additions & 3 deletions src/postgres_mcp/explain/explain_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from ..artifacts import ErrorResult
from ..artifacts import ExplainPlanArtifact
from ..sql import IndexConfig
from ..sql import IndexDefinition
from ..sql import SafeSqlDriver
from ..sql import SqlBindParams
from ..sql import check_postgres_version_requirement
Expand Down Expand Up @@ -114,7 +114,7 @@ async def explain_with_hypothetical_indexes(

# Convert the index definitions to IndexConfig objects
indexes = frozenset(
IndexConfig(
IndexDefinition(
table=idx["table"],
columns=tuple(idx["columns"]),
using=idx.get("using", "btree"),
Expand Down Expand Up @@ -185,7 +185,7 @@ async def _run_explain_query(self, query: str, analyze: bool = False, generic_pl
async def generate_explain_plan_with_hypothetical_indexes(
self,
query_text: str,
indexes: frozenset[IndexConfig],
indexes: frozenset[IndexDefinition],
use_generic_plan: bool = False,
dta=None,
) -> dict[str, Any]:
Expand Down
Loading