NAME
SQL::Translator::Producer::Diagram - ER diagram producer for SQL::Translator
SYNOPSIS
Use via SQL::Translator:
use SQL::Translator;my $t = SQL::Translator->new(from => 'MySQL',to => 'Diagram',producer_args => {# All args are optionalout_file => 'schema.png',# if not provided will return from translate()output_type => 'png', # is default or 'jpeg'title => 'My Schema', # default is filenamefont_size => 'medium', # is default or 'small,' 'large'imap_file => '', # filename to write image map coordsimap_url => '', # base URL for image mapgutter => 30 # is default, px distance b/w colsnum_columns => 5, # the number of columnsno_lines => 1, # do not draw lines to show FKsadd_color => 1, # give it some colorshow_fk_only => 1, # show only fields used in FKsjoin_pk_only => 1, # use only primary keys to figure PKsnatural_join => 1, # intuit FKs if not definedskip_fields => [...], # list* of field names to excludeskip_tables => [...], # list* of table names to excludeskip_tables_like => [...], # list* of regexen to exclude tables}) or die SQL::Translator->error;$t->translate;
* "list" can be either an array-ref or a comma-separated string
AUTHOR
Ken Youens-Clark <[email protected]>.