The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

dbigraph.pl - graph database tables and their relations

SYNOPSIS

dbigraph.pl --dbd=Pg --dbname=mydb --user=marcel | xv -

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

DESCRIPTION

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

OPTIONS

This section describes the supported command line options. Minimum matching is supported.

--dbd

Database drive to use, e.g. 'Pg'. Only if given together with the --dbname option will this be used for the DSN.

--dbname

Database name to use. Only if given together with the --dbd option will this be used for the DSN.

--dsn

DSN to use, e.g. 'dbi:Pg:mydb'. Only used if --dbd and --dbname aren't given.

--user

Username to use for connecting to the database.

--pass

Password to use for connecting to the database.

--as

Output format, e.g. 'gif', 'png', etc. Defaults to 'png' if not given.

--help

Print a brief help message and exit.

--man

Print the manual page and exit.

--verbose

Print information messages as we go along.

BUGS

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

AUTHOR

Marcel Grünauer <marcel@codewerk.com>

COPYRIGHT

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.

SEE ALSO

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