GraphViz::DBI::FromSchemaCreate a diagram of database tables, using the foreign key information in the schema | |
Download |
GraphViz::DBI::FromSchema Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Pipex Communications UK Ltd
- Publisher web site:
- http://search.cpan.org/~smylers/
GraphViz::DBI::FromSchema Tags
GraphViz::DBI::FromSchema Description
Create a diagram of database tables, using the foreign key information in the schema GraphViz::DBI::FromSchema is a Perl module to create a diagram of database tables, using the foreign key information in the schema.SYNOPSIS 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: $! "; print $file GraphViz::DBI::FromSchema->new($db)->graph_tables->as_ps;This module creates a diagram of the tables in a database, listing the fields in each table and with arrows indicating foreign keys between tables.GraphViz::DBI provides functionality for doing this. By default it identifies foreign keys based on fields being named in a particular way, and suggests subclassing it to implement different heuristics. This module is a subclass which uses the DBI to interrogate the database about the foreign keys defined for each table -- which, for databases which support referential integrity, should work irrespective of your naming scheme.The interface is identical to GraphViz::DBI's, so see its documentation for details. Requirements: · Perl
GraphViz::DBI::FromSchema Related Software