auto-dia.pl - Automatically create a diagram from a database schema
./auto-dia.pl -d|--db=db_parser [options] schema.sql Options: -o|--output Output file name (default STDOUT) -i|--image Output image type (default PNG) -t|--title Title to give schema -c|--cols Number of columns -n|--no-lines Don't draw lines -s|--skip Fields to skip in natural joins --join-pk-only Perform natural joins from primary keys only
This script will create a picture of your schema. Only the database driver argument (for SQL::Translator) is required. If no output file name is given, then image will be printed to STDOUT, so you should redirect the output into a file.
Ken Y. Clark <kclark@cpan.org>
To install SQL::Translator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Translator
CPAN shell
perl -MCPAN -e shell install SQL::Translator
For more information on module installation, please visit the detailed CPAN module installation guide.