Skip to content

feat: support SQL Server SHOWPLAN XML plans - #2

Merged
debba merged 2 commits into
mainfrom
feat/sqlserver-showplan
Sep 3, 2026
Merged

feat: support SQL Server SHOWPLAN XML plans#2
debba merged 2 commits into
mainfrom
feat/sqlserver-showplan

Conversation

@debba

@debba debba commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds SQL Server to the standalone EXPLAIN site. SHOWPLAN_XML estimated plans and STATISTICS XML actual plans (any ShowPlanXML document) can be pasted and explored like the other engines.

Uses @tabularis/explain 0.2.0 (parser registry, merged in TabularisDB/tabularis#688) and @tabularis/explain-sqlserver 1.0.0-beta.1 (merged in TabularisDB/tabularis-sqlserver-plugin#3).

What changed

  • @tabularis/explain bumped to ^0.2.0 and @tabularis/explain-sqlserver@^1.0.0-beta.1 added. The parser package is imported once in main.tsx so it registers itself before any parsing happens.
  • parse.ts: SQL Server is tried first in auto-detection because the ShowPlanXML root element is unambiguous. Postgres, SQLite and MySQL keep their previous order.
  • PlanInput.tsx: SQL Server appears in the engine picker.
  • Samples: a captured STATISTICS XML plan is available from the sample menu.
  • README and seo.config.json mention SQL Server.
  • Tests: parser detection for a trivial scan fixture, engine picker rendering, and end-to-end parsing of the sample in App.test.tsx and PlanView.test.tsx.

Dependencies

Both packages are published: @tabularis/explain@0.2.0 and @tabularis/explain-sqlserver@1.0.0-beta.1. The temporary tarball overrides and the vendor/ directory used while they were unpublished have been removed and the lockfile resolves both from the registry. minimumReleaseAgeExclude keeps the two exact versions installable despite their age.

Verification

  • pnpm install, pnpm test (4 files, 27 tests) and pnpm build pass against the published packages.
  • Vercel preview deployment builds and the SQL Server sample renders.

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
explain-plan Ready Ready Preview Sep 3, 2026 11:32am UTC

Request Review

@tabularis/explain 0.2.0 and @tabularis/explain-sqlserver 1.0.0-beta.1 are
on npm, so the temporary tarball overrides and the vendored archives are no
longer needed. The lockfile now resolves both from the registry.
@debba
debba merged commit c6d6701 into main Sep 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant