ERD Mapbender25
From MapbenderWiki
Contents |
[edit]
Verwendete Tools zur Erstellung
- PostgreSQL Autodoc
- Dia
[edit]
Installation Kubuntu
sudo apt-get install postgresql-autodoc sudo apt-get install dia
[edit]
Generierung einer dia-Datei mit PostgreSQL Autodoc
Example:
postgresql_autodoc -d YOURDB -u postgres -f YOURDB
OPTIONS:
-d <dbname> Specify database name to connect to (default: $database) -f <file> Specify output file prefix (default: $database) -h <host> Specify database server host (default: localhost) -p <port> Specify database server port (default: 5432) -u <username> Specify database username (default: $dbuser) --password=<pw> Specify database password (default: blank) -l <path> Path to the templates (default: /usr/share/postgresql-autodoc) -t <output> Type of output wanted (default: All in template library) -s <schema> Specify a specific schema to match. Technically this is a regular expression but anything other than a specific name may have unusual results.
Anschliessend die *.dia Datei im 'Dia'-Programm bearbeiten (=> Save as *.png). Oder Standard automatische erstellung eines ERD in png-Format anstossen:
dot -T png -o YOURDB.png YOURDB.dot
[edit]

