# html-query-plan **Repository Path**: LiuJW0914/html-query-plan ## Basic Information - **Project Name**: html-query-plan - **Description**: sqlServer执行计划在线预览 基于https://github.com/JustinPealing/html-query-plan 源码进行bug修复 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-22 - **Last Updated**: 2026-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # html-query-plan html-query-plan is a JavaScript library for showing Microsoft SQL Server execution plans in HTML. 基于https://github.com/JustinPealing/html-query-plan 源码进行bug修复 ![html-query-plan screenshot](screenshot.png "Screenshot") To use in a web page: - Find the latest release [here](https://github.com/JustinPealing/html-query-plan/releases/latest). - Include `qp.css` and `qp.min.js` - Call `QP.showPlan`, passing the container in which to show the plan and the query plan XML (as a string). ```
``` See the `examples` folder for complete examples. **中文文档:** [Web 使用指南](docs/WEB使用指南.md) · [静态部署说明](docs/静态部署说明.md) · [发布与构建约定](docs/发布与构建约定.md) ## Options Additional options can be passed using the 3rd argument: ```
``` | Option | Default | Description | | ---------- | ------- | ----------------------------------- | | jsTooltips | true | Set to `false` to use CSS tooltips. | ## Running XSLT separately Under the covers, html-query-plan is an XSLT 1.0 stylesheet (`qp.xslt`), which can be used to pre-render the plan html. Javascript is still needed to draw the connecting lines. To do this, follow the above steps but call `QP.drawLines` instead: ```
``` ## Browser Support Works in modern browsers with `DOMParser` and `XSLTProcessor` (Chrome, Firefox, Edge, Safari). Internet Explorer is not supported. ## Icons Meaning of the "overlay" icons for nodes: | Icon | Description | | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- | | ![Batch Icon](images/iconbatch.png) | Either the actual execution mode was "Batch" (for actual execution plans), or the estimated execution mode was "Batch" (for estimated plans). | | ![Parallel Icon](images/iconpar.png) | The node was executed in parallel. | | ![Warning Icon](images/iconwarn.png) | There are one or more warnings on the node. | All icons are adapted from the Fat Cow "Farm Fresh" web icons pack, which can be found at http://www.fatcow.com/free-icons. ## Building Run the following commands in bash to output minified and unminified versions in the `dist` folder: npm run build # Sponsor A big thankyou to [Brent Ozar Unlimited](https://www.brentozar.com/) (who make [Paste The Plan](https://www.brentozar.com/pastetheplan/)) for sponsoring development of html-query-plan.