• Stars
    star
    184
  • Rank 208,523 (Top 5 %)
  • Language
    PHP
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compile PostgreSQL and MySQL table information into a PlantUML description.

Database to PlantUML

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

Output with PostgreSQL

… 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

Output with MySQL

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!

More Repositories

1

inline-c-rs

Write and execute C code inside Rust.
Rust
135
star
2

gutenberg-parser-rs

An experimental Rust parser for WordPress Gutenberg post format
Rust
86
star
3

LaMaisonVivante

Home Automation programs for my self-sufficient house
Rust
65
star
4

Marvirc

Marvirc is a dead simple, extremely modular and blazing fast IRC bot (yup, that's it).
PHP
44
star
5

weld

Experimental stuff. Don't spend your time here for the moment.
Rust
26
star
6

code-tour-rs

Enhanced example-based learning, i.e. awesome example user experience
Rust
23
star
7

PHP-live-execution

PHP Live Execution, just a showcase of WebSocket + FastCGI combined.
PHP
22
star
8

xcat

eXtended CAT: show images, PDF, videos, SVG, HTML, documents etc. in your terminal!
Shell
11
star
9

miam.js

miam.js is a parser combinator framework written in TypeScript.
TypeScript
9
star
10

atoum-instrumentation

The atoum\instrumentation library. Instrumentation for PHP (moles, code coverage…)
PHP
7
star
11

CI

Draft of the Hoa's CI.
PHP
4
star
12

ocppx

OCPP experiments
Rust
2
star
13

Swiss_transport

Swiss transport application for Firefox OS
HTML
2
star
14

Atoum-website

POC for atoum's website
HTML
2
star
15

ellalang

A computer programming language interpreter written in Rust
Rust
2
star
16

Hoathis-Lua

The Hoathis\Lua library: a Lua interpreter and compiler based on Hoa\Compiler.
PHP
2
star
17

atoum-teamcity-extension

Add TeamCity support for atoum
PHP
1
star
18

Atoum-PraspelExtension-Sandbox

Atoum\PraspelExtension sandbox
PHP
1
star
19

atoum-http-extension

The atoum/http-extension.
PHP
1
star
20

atoum-apiblueprint-extension

Compile API Blueprint files into executable tests with atoum
PHP
1
star
21

LiipTalks

All my Liip talks
HTML
1
star
22

ForumPHP2016

ForumPHP2016 presentation and content
JavaScript
1
star
23

mnt.io

My website.
JavaScript
1
star
24

PHPSpecification

The PHP Specification.
1
star
25

sonde-rs

A library to compile USDT probes into a Rust library
Rust
1
star