Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
forked fromdalibo/pev2

Postgres Explain Visualizer 2

License

NotificationsYou must be signed in to change notification settings

neondatabase/pev2

 
 

Repository files navigation

A VueJS component to show a graphical vizualization of a PostgreSQL execution plan.

Usage

To use the explain vizualizer you can choose one of the following options:

Dalibo service (recommended)

explain.dalibo.com

This service is provided byDalibo and can help you to share your plans withcolleagues or customers.

Portable (on a USB stick)

PEV2 can be run locally.

Simply downloadpev2.tar.gz,extract the archive and openindex.html in your favorite internet browser.

Local installation using docker

SeeCONTRIBUTING.

Integrated in a web application

PEV2 can be integrated as a component in a web application.

Install it:

npm install pev2

Declare thePEV2 component and use it:

importpev2from"pev2";newVue({el:"#app",data:function(){return{plan:plan,query:query,};},components:{pev2:pev2,},});

Then add thePEV2 component to your template:

<divid="app"><pev2:plan-source="plan":plan-query="query"></pev2></div>

PEV2 requiresBootstrap (CSS) andFontAwesome to work so don't forget toadd the following in you header (or load them with your favorite bundler).

<linkhref="https://unpkg.com/bootstrap@4.5.0/dist/css/bootstrap.min.css"rel="stylesheet"/><linkhref="https://unpkg.com/@fortawesome/fontawesome-free@5.13.0/css/all.css"rel="stylesheet"/>

For a complete example, seethis codesandbox.

Custom theme using SCSS

// index.js// import component without stylesimportPev2from"pev2/components/pev2.common";
// styles.scss// add pev2 vendor styles@import"~tippy.js/dist/tippy.css";@import"~splitpanes/dist/splitpanes.css";// use any theme from highlight.js@import"~highlight.js/styles/github.css";// import pev2 variables@import"~pev2/scss/variables";// redefine variables from '~pev2/scss/variables' file$text-color:red;// import the rest of pev2 scss styles@import"~pev2/scss/pev2";

Disclaimer

This project is a rewrite of the excellentPostgres Explain Visualizer(pev). Kudos go toAlex Tatiyants.

Thepev project was initialy written in early 2016 but seems to beabandoned since then. There was no activity at all for more than 3 years andcounting though there are several issues open and relevant pull requestspending.

The current project has several goals:

  • isolate the plan view component and its dependencies in order to use it inany web app with for example the ability to load a plan without requiringany copy-paste from the user,
  • make it work with recent version of JS frameworks,
  • upgrade Bootstrap to a more recent version,
  • use VueJS just for a matter of taste,
  • maintain the project to match upgrades in PostgreSQL.

Packages

No packages published

Languages

  • TypeScript56.0%
  • Vue36.2%
  • SCSS6.0%
  • PLpgSQL1.2%
  • JavaScript0.3%
  • HTML0.2%
  • Dockerfile0.1%

[8]ページ先頭

©2009-2025 Movatter.jp