How giraphne/sqlvis works
SQLvis is a Python library for turning SQL queries and database schemas into interactive graph visualizations in Jupyter notebooks. Its main workflow is: a notebook user obtains a schema from a SQLite connection, then supplies the query and schema to the visualization API, which embeds the JavaScript renderer and styles in the notebook. The README also describes table joins, column and condition highlighting, nested queries, and SQLVis+ error visualizations; these are represented by the renderer, though its implementation was not sampled. Edges are limited to relationships shown in the README or vis.py excerpt.
Main entry points: vis.py Schema Introspection · visualize.js Query Renderer · styles.css.html Visualization Styles
Components 9
Python API
- SQLvis API
sqlvis/vis.py - Schema Introspection
sqlvis/vis.py
Notebook Output
- Notebook Display
sqlvis/vis.py - Visualization Styles
sqlvis/styles.css.html
Query Rendering
- Query Renderer
sqlvis/visualize.js
Other components
- Notebook User
- SQLite Database
- Pandas
- D3
Connections 10
- Notebook User → Schema Introspection: requests schema
README.md - Schema Introspection → SQLite Database: reads schema
sqlvis/vis.py - Schema Introspection → Pandas: queries through
sqlvis/vis.py - Schema Introspection → Notebook User: returns schema
sqlvis/vis.py - Notebook User → SQLvis API: submits query
README.md - SQLvis API → Notebook Display: displays output
sqlvis/vis.py - Notebook Display → Visualization Styles: loads styles
sqlvis/vis.py - Notebook Display → Query Renderer: loads renderer
sqlvis/vis.py - SQLvis API → Query Renderer: passes query and schema
sqlvis/vis.py - Query Renderer → D3: renders with