You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add ER diagram visualization for database schemas
- Right-click a schema node → "Show ER Diagram" opens an interactive
React Flow-based diagram showing tables, columns, PK/FK markers,
and foreign key relationships with column-level connections
- Dagre layout engine for automatic positioning that minimizes
edge crossings
- Per-table color coding with colored relationship edges
- Focus mode: click a table or use the search field to highlight
it and its connected tables, dimming everything else
- Foreign key queries added for PostgreSQL, MySQL, MSSQL, and SQLite
- Fixed pre-existing PG driver notice listener leak
constexpected=`SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'table' AND TABLE_CATALOG = 'catalog' AND TABLE_SCHEMA = 'schema' AND something = 'smtg'`;
19
19
expect(result).toBe(expected);
20
-
})
20
+
});
21
+
22
+
it(`should generate foreign key queries with schema and database params`,()=>{
${p=>p.database ? `${escapeTableName({database: p.database,schema: "INFORMATION_SCHEMA",label: "REFERENTIAL_CONSTRAINTS"})}` : 'INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS'} AS C
202
+
JOIN ${p=>p.database ? `${escapeTableName({database: p.database,schema: "INFORMATION_SCHEMA",label: "TABLE_CONSTRAINTS"})}` : 'INFORMATION_SCHEMA.TABLE_CONSTRAINTS'} AS FK
203
+
ON C.CONSTRAINT_NAME = FK.CONSTRAINT_NAME AND C.CONSTRAINT_SCHEMA = FK.CONSTRAINT_SCHEMA
0 commit comments