hywan/database-to-plantuml
最新稳定版本:1.1.0
Composer 安装命令:
composer require hywan/database-to-plantuml
包简介
Extract database table information into a PlantUML description.
README 文档
README
This utility renders a graphical 2D visualisation of a database.
Currently, the only supported frontends are PostgreSQL and
MySQL. There are 2 backends: commonmark and plantuml. The
plantuml backend allows to generate visualisations into the
following formats:
- PNG,
- SVG,
- EPS,
- PDF,
- VDX,
- XMI,
- HTML,
- TXT,
- UTXT,
- LaTeX.
Installation
With Composer, simply run the following command:
$ composer install
If you would like to use it as a dependency of your project, then:
$ composer require hywan/database-to-plantuml
To use the plantuml backend, you can use the JAR in resource/plantuml.jar.
Examples with…
… PostgreSQL
Taking as an example the famous employees use case:
# Import the schema. $ psql -f resource/samples/pgsql-employees.sql postgres # Generate the visualisation. $ bin/database-to-plantuml -d 'pgsql:dbname=employees' -u hywan -s employees | \ java -jar resource/plantuml.jar -verbose -pipe > output.png
… MySQL
With the same employees use case:
# Import the schema. $ mysql -u root < resource/samples/mysql-employees.sql # Generate the visualisation. $ bin/database-to-plantuml -d 'mysql:dbname=employees' -u root -s employees | \ java -jar resource/plantuml.jar -verbose -pipe > output.png
Note: Outputs differ because the employees examples are not exactly
the same. They are here to illustrate the tool only.
License
BSD-3-License, but seriously, do what ever you want!
统计信息
- 总下载量: 7.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 195
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-30