Closed jayvdb closed 6 months ago
Could you give me a pg dump so I can reproduce this?
Unfortunately not.
The table DDL for one of the tables, the one mentioned above, is
CREATE TABLE IF NOT EXISTS butane_migrations (
"name" TEXT NOT NULL PRIMARY KEY
);
Thanks @jayvdb This is enough for reproduce. I will fix
I suspect the problem is that because there are no relationships between entities, plantuml doesnt detect the type of diagram, and fails.
The mermaid diagram shows each table separately. i.e. disconnected.
I've added all the relationships, and the mermaid diagram looks well connected. The plantuml is still failing to render.
The plantuml is still failing to render.
I've found at least one reason Plantuml has failed. It now required the "class" keyword. Fixing...
@jayvdb could you try this fix? https://github.com/kurotych/sqlant/pull/24/files#diff-d94002e7bd41ac4a55adfe026b3b0b387c251b5fe1d2857e9aa7cd58f0276212
Thanks a heap for figuring that out. If this crate isnt ready for a release, I can use a git dependency in my Cargo.toml
I will release version 0.3 today
New version is released https://crates.io/crates/sqlant
The generated source is