This is the Cpan distribution of the GraphViz::DBI::FromSchema Perl module.
GraphViz::DBI::FromSchema generates a database diagram, automatically getting
the foreign key relationships from the database schema.
use DBI;
use GraphViz::DBI::FromSchema;
my $db = DBI->connect(@dsn_etc);
my $filename = 'DB_diagram.ps';
open my $file, '>', $filename or die "Opening $filename failed: $!\n";
print $file GraphViz::DBI::FromSchema->new($db)->graph_tables->as_ps;
== Installation ==
GraphViz::DBI::FromSchema can be installed using the Cpan client:
cpan -i GraphViz::DBI::FromSchema
or by unzipping this distribution and running Build.PL and then Build:
perl Build.PL
./Build test
./Build install
or, if you have a make program, by running Makefile.PL then make: