schemaspy / schemaspy

Database documentation built easy
http://schemaspy.org
GNU Lesser General Public License v3.0
3.17k stars 311 forks source link

Generate only a png/svg-version of the erd without HTML #643

Open plc-dev opened 4 years ago

plc-dev commented 4 years ago

Expected Behavior

java -jar schemaspy-6.1.0.jar -vizjs -imageformat svg -db ../database/northwind/northwind.sqlite -cat % -s northwind -nohtml resulting in relationships.real.compact.svg, relationships.real.complete.svg, etc... in the output folder.

Current Behavior

Only creating the XML-File.

Possible Solution

Provide an additional CLI-command. Maybe -imageonly or -erdonly.

Steps to Reproduce (for bugs)

Run java -jar schemaspy-6.1.0.jar -vizjs -imageformat svg -db ../your_database -cat % -s database -nohtml

npetzall commented 4 years ago

Diagrams are part of the html output and not considered its own output format.

Since they contain links to html pages they would be broken by just allowing them to be created.

We'll keep this as a feature request and see what the future will bring. Since there are also requests for having additional information in the diagrams. Having them as a more decoupled entity might be a good thing with additional options.