2017 © Pedro Peláez
 

library database-to-plantuml

Extract database table information into a PlantUML description.

image

hywan/database-to-plantuml

Extract database table information into a PlantUML description.

  • Monday, September 25, 2017
  • by Hywan
  • Repository
  • 4 Watchers
  • 77 Stars
  • 76 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 6 Versions
  • 21 % Grown

The README.md

Database to PlantUML

This utility renders a graphical 2D visualisation of a database., (*1)

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:, (*2)

  • PNG,
  • SVG,
  • EPS,
  • PDF,
  • VDX,
  • XMI,
  • HTML,
  • TXT,
  • UTXT,
  • LaTeX.

Installation

With Composer, simply run the following command:, (*3)

$ composer install

If you would like to use it as a dependency of your project, then:, (*4)

$ composer require hywan/database-to-plantuml

To use the plantuml backend, you can use the JAR in resource/plantuml.jar., (*5)

Examples with…

… PostgreSQL

Taking as an example the famous employees use case:, (*6)

# 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

Output with PostgreSQL, (*7)

… MySQL

With the same employees use case:, (*8)

# 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

Output with MySQL, (*9)

Note: Outputs differ because the employees examples are not exactly the same. They are here to illustrate the tool only., (*10)

License

BSD-3-License, but seriously, do what ever you want!, (*11)

The Versions

25/09 2017

dev-master

9999999-dev https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires

 

06/09 2017

1.1.0

1.1.0.0 https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires

 

06/09 2017

dev-pgsql

dev-pgsql https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires

 

03/07 2017

1.0.2

1.0.2.0 https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires

 

01/07 2017

1.0.1

1.0.1.0 https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires

 

30/06 2017

1.0

1.0.0.0 https://github.com/Hywan/Database-to-PlantUML

Extract database table information into a PlantUML description.

  Sources   Download

BSD-3-Clause

The Requires