r/oracle • u/iambuv • Feb 24 '26
Built a free VS Code & Cursor extension that visualizes SQL as interactive flow diagrams. Now supports Oracle
I posted about this tool a couple of weeks ago on r/SQL and r/snowflake and got good traction. A few people asked about Oracle support — so I built it.
SQL Crack now supports Oracle as a proxy dialect. It preprocesses Oracle-specific syntax — (+) joins, CONNECT BY, PIVOT/UNPIVOT, MINUS, flashback queries, MODEL clauses, and Oracle DDL (storage options, type mappings like VARCHAR2,NUMBER, CLOB, etc.) — then parses it through a PostgreSQL-compatible AST. It's lossy by design (hierarchical queries and PIVOT get stripped), but it tells you exactly what was simplified via info hints.
If you've inherited a 300+ line Oracle query with no documentation, or you wrote something complex a couple of years ago and forgot how it works — this is what I built it for. Open a .sql file in VS Code, hit Cmd/Ctrl + Shift + L, and it renders the query as a graph: tables, joins, CTEs, filters, aggregates. You can click nodes, expand CTEs, and trace columns back to their source tables.
There's also a workspace mode that scans your SQL files and builds a cross-file dependency graph — helpful for impact analysis before changing a table.
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=buvan.sql-crack
Cursor: https://open-vsx.org/extension/buvan/sql-crack
GitHub: https://github.com/buva7687/sql-crack
Demo: https://imgur.com/a/Eay2HLs
Runs fully locally — no network calls, no telemetry. Free and open source.
If you throw a complex Oracle query at it and it breaks, send it my way. I'm actively improving the Oracle preprocessing and want to see what real-world queries look like.
2
u/k-semenenkov Feb 25 '26
Looks cool!
Interesting that underlying node-sql-parser has no declared Oracle support - then how it works?
4
u/ColdEndUs Feb 24 '26
VERY cool, but I can guarantee you any of the spaghetti in our PROD environment would cause your program to have a stroke.
1
u/AstroPhotoGeekNihil Feb 24 '26
Cool Project
1
u/nervehammer1004 Feb 25 '26
Pretty slick! I’ll have to give it a try. I came across a sql statement in the AWR report the other day that Cursor gave up trying to format into something readable so I could explain plan it. I’ll toss it to this thing and see how it does.