esquel
Create mermaid diagrams from SQL scripts.
Uses all CREATE, INSERT, DELETE and UPDATE statements that reference other tables.
Example
The following SQL script
select * from bar;
select * from foo
inner join qux;
delete from foo
where exists (
select 1 from qux
where qux.foo_id = foo.foo_id
);
generates this flowchart:
graph TB
A[bar]
B[fa:fa-eye baz]
C[fa:fa-table foo]
D[qux]
A --> C
C --> B
D --> B
D --> C
Installation