GraphViz::Dbi::General is a perl module which draws a diagram of a database schema (i.e. foreign key relationships between tables) given a DBI handle.
This is a subclass of GraphViz::DBI, that extends it so that:
You can browse the code itself in web page form: General.pm
Here's some sample output, from a project I'm currently working on:
GraphViz::Dbi::General version 0.1 has just been uploaded to CPAN, and we've already discovered the first typo!
The next version is planned to include some real tests. They'll be postgresql-specific tests, that should automatically be skipped if postgres is not present (or if anything else seems wrong). The installing user will (most likely) have to supply connection information.