SQL Crack

VS Code extension that draws SQL query flow, dependencies and column lineage

Image 1 of 1: Query flow diagram with a column lineage path traced from an output column back to its source table

Parses SQL statically, without running it or connecting to a database, into flow diagrams of tables, joins, filters and aggregates, traces each output column back through the query, and maps cross-file dependencies, lineage and change impact across a workspace, dbt and Jinja templates included.

Trade-offs

  • Static analysis only: no SQL is executed and no database is connected. It works on any file offline, and performance hints are heuristics, not query plans.
  • When AST parsing fails, it falls back to regex extraction for a best-effort diagram, and retries with another dialect when it detects that dialect's syntax.
  • Graphs over 100 nodes switch to clustering to keep rendering responsive, and search and keyboard navigation then follow the clustered graph.

Q&A2

Jinja such as {{ ref() }}, {{ source() }} and {% if %} blocks is rewritten to valid SQL before parsing, so dbt models visualize like plain SQL.

Reviews

Loading reviews

    More in VS Code

    See all 7 →
    • gitpaneMulti-repo Git dashboard for the terminal and the VS Code Explorer
    • Localization Resource ManagerLocalization files from one binary, as a CLI, terminal UI, web UI or in VS Code
    • KiiraType-checks the TypeScript code fences in Markdown against the real project
    • ERD StudioLogical data modelling canvas in VS Code, stored as DBML in the repo
    • CodeVisualizerVS Code extension that draws function flowcharts and codebase dependency graphs
    • uv-vscodeVS Code extension that makes uv scripts and dependencies first-class

    More in SQL

    See all 11 →
    • cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • dbxliteBrowser SQL workbench on DuckDB for local files, BigQuery and Snowflake
    • DataZenDesktop database workspace for developers and AI agents
    • sqlmuxtmux-style terminal database client with Vim keybindings
    • SlothDBExperimental embedded SQL engine in C++20, from scratch

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages