Class::DBI Testing Testing Class::DBI - Facilitating "Best Practices" #10

1. Grab a YAML dump of your production database schema

% mysqldump -d mydatabase | perl -MSQL::Translator -e
        'my $trans = SQL::Translator->new;
        print $trans->translate(
         from => "MySQL", to => "YAML", 
         data => join("", <STDIN>));'
        > config.yaml
Copyright © 2004 Dan Friedman