How the ERD Diagram Tool Works
AnyTool parses SQL DDL with node-sql-parser (per-dialect for MySQL, PostgreSQL, SQLite, and SQL Server) to build a table model, reading both inline column REFERENCES and table-level FOREIGN KEY constraints and inferring relationships from *_id naming. It then draws an interactive entity-relationship diagram with crow's-foot cardinality (1:1, 1:N, N:M) and PK/FK badges on a canvas that supports drag-to-move, zoom/pan, and manual schema editing. A forgiving regex fallback still renders dirty or partial SQL, and diagrams export to PNG/SVG with state encoded in a shareable URL.
- SQL DDL to ERD across multiple dialects
- Inline and table-level foreign keys, plus *_id inference
- Crow's-foot cardinality with PK/FK badges
- Drag-to-move, zoom/pan, and manual editing
- PNG/SVG export and shareable URL with regex fallback
