SQL::Translator::Producer::GraphViz - GraphViz producer for SQL::Translator



NAME

SQL::Translator::Producer::GraphViz - GraphViz producer for SQL::Translator


SYNOPSIS

  use SQL::Translator;
  my $trans = new SQL::Translator(
      from => 'MySQL',            # or your db of choice
      to => 'GraphViz',
      producer_args => {
          out_file => 'schema.png',
          add_color => 1,
          show_constraints => 1,
          show_datatypes => 1,
          show_sizes => 1
      }
  ) or die SQL::Translator->error;
  $trans->translate or die $trans->error;


DESCRIPTION

Creates a graph of a schema using the amazing graphviz (see http://www.graphviz.org/) application (via the GraphViz module). It's nifty--you should try it!


PRODUCER ARGS


AUTHOR

Ken Y. Clark <kclark@cpan.org>


SEE ALSO

SQL::Translator, GraphViz

 SQL::Translator::Producer::GraphViz - GraphViz producer for SQL::Translator