All Projects → JustinPealing → Html Query Plan

JustinPealing / Html Query Plan

Licence: mit
Display SQL Server Execution Plans in HTML

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Html Query Plan

Dbr
Additions to Go's database/sql for super fast performance and convenience. (fork of gocraft/dbr)
Stars: ✭ 140 (-5.41%)
Mutual labels:  sql
Opentick
A fast tick database for financial timeseries data, built on FoundationDB with simplified SQL layer
Stars: ✭ 144 (-2.7%)
Mutual labels:  sql
Django Sql Explorer
Easily share data across your company via SQL queries. From Grove Collab.
Stars: ✭ 1,958 (+1222.97%)
Mutual labels:  sql
Prometheus Sql
Service that exposes Prometheus metrics for a SQL result set.
Stars: ✭ 140 (-5.41%)
Mutual labels:  sql
Sequelize Ui
Browser-based GUI for previewing and generating Sequelize project files.
Stars: ✭ 142 (-4.05%)
Mutual labels:  sql
Autobuilddocfromdb
使用SQL文件自动生成markdown格式的数据库文档。
Stars: ✭ 144 (-2.7%)
Mutual labels:  sql
Django Postgres Copy
Quickly import and export delimited data with Django support for PostgreSQL's COPY command
Stars: ✭ 139 (-6.08%)
Mutual labels:  sql
Flutter client php backend
Sample app demonstrating usage of Flutter Framework to Create Android & IOS App Using Rest API Created In PHP
Stars: ✭ 148 (+0%)
Mutual labels:  sql
Data Science Question Answer
A repo for data science related questions and answers
Stars: ✭ 2,000 (+1251.35%)
Mutual labels:  sql
Sqlcell
SQLCell is a magic function for the Jupyter Notebook that executes raw, parallel, parameterized SQL queries with the ability to accept Python values as parameters and assign output data to Python variables while concurrently running Python code. And *much* more.
Stars: ✭ 145 (-2.03%)
Mutual labels:  sql
Laravel Db Profiler
Database Profiler for Laravel Web and Console Applications.
Stars: ✭ 141 (-4.73%)
Mutual labels:  sql
Oxidtools
200 TOOLS BY 0XID4FF0X FOR TERMUX
Stars: ✭ 143 (-3.38%)
Mutual labels:  sql
Stampede
The ToroDB solution to provide better analytics on top of MongoDB and make it easier to migrate from MongoDB to SQL
Stars: ✭ 1,754 (+1085.14%)
Mutual labels:  sql
Builder
Lightweight and fast SQL builder for Go language, moved to https://gitea.com/xorm/builder
Stars: ✭ 140 (-5.41%)
Mutual labels:  sql
Poli
An easy-to-use BI server built for SQL lovers. Power data analysis in SQL and gain faster business insights.
Stars: ✭ 1,850 (+1150%)
Mutual labels:  sql
Stratosdb
☄️ ☁️ An All-in-One GUI for Cloud SQL that can help users design and test their AWS RDS Instances
Stars: ✭ 140 (-5.41%)
Mutual labels:  sql
Sql tracker
Rails SQL Query Tracker
Stars: ✭ 144 (-2.7%)
Mutual labels:  sql
Plyql
MySQL-like queries for Druid built on top of Plywood
Stars: ✭ 148 (+0%)
Mutual labels:  sql
Efcore.bulkextensions
Entity Framework Core Bulk Batch Extensions for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, SQLite
Stars: ✭ 2,295 (+1450.68%)
Mutual labels:  sql
Go Mysqlstack
MySQL protocol library implementing in Go (golang)
Stars: ✭ 145 (-2.03%)
Mutual labels:  sql

html-query-plan

html-query-plan is a JavaScript library for showing Microsoft SQL Server execution plans in HTML.

html-query-plan screenshot

To use in a web page:

  • Find the latest release here.
  • 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).
<div id="container"></div>
<script>
    QP.showPlan(document.getElementById("container"), '<ShowPlanXML...');
</script> 

See the examples folder for complete examples.

Options

Additional options can be passed using the 3rd argument:

<div id="container"></div>
<script>
    var options = {
        jsTooltips: false
    };
    QP.showPlan(document.getElementById("container"), '<ShowPlanXML...', options);
</script> 
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:

<div id="container">
    <!-- Insert XSLT output here -->
</div>
<script>
    QP.drawLines(document.getElementById("container"));
</script>

Browser Support

Should work just fine in any modern browser. Tested in Chrome, Firefox and IE9+. IE8 and earlier have known issues.

Icons

Meaning of the "overlay" icons for nodes:

Icon Description
Batch Icon Either the actual execution mode was "Batch" (for actual execution plans), or the estimated execution mode was "Batch" (for estimated plans).
Parallel Icon The node was executed in parallel.
Warning Icon 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 webpack && NODE_ENV=production npm run webpack

Sponsor

A big thankyou to Brent Ozar Unlimited (who make Paste The Plan) for sponsoring development of html-query-plan.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].