
dbigraph.pl - graph database tables and their relations

dbigraph.pl --dbd=Pg --dbname=mydb --user=marcel | xv -
dbigraph.pl --dsn='dbi:Pg:dbname=mydb' --user=marcel --as=png >mydb.png

This program constructs a GraphViz graph for a database showing tables and connecting them if they are related.

This section describes the supported command line options. Minimum matching is supported.
Database drive to use,
e.g.
'Pg'.
Only if given together with the --dbname option will this be used for the DSN.
Database name to use.
Only if given together with the --dbd option will this be used for the DSN.
DSN to use,
e.g.
'dbi:Pg:mydb'.
Only used if --dbd and --dbname aren't given.
Username to use for connecting to the database.
Password to use for connecting to the database.
Output format, e.g. 'gif', 'png', etc. Defaults to 'png' if not given.
Print a brief help message and exit.
Print the manual page and exit.
Print information messages as we go along.

Some. Possibly. I haven't fully tested it.

Marcel Grünauer <marcel@codewerk.com>

Copyright 2001 Marcel Grünauer. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

GraphViz(3pm), GraphViz::DBI(3pm).