1SQL::Translator::ProducUesre:r:DCioanUtmrli(b3u)ted PerlSQDLo:c:uTmreanntsaltaitoonr::Producer::DiaUml(3)
2
3
4
6 SQL::Translator::Producer::DiaUml -
7 Produces dia UML diagrams from schema.
8
10 use SQL::Translator;
11 my $translator = SQL::Translator->new(
12 from => 'MySQL',
13 filename => 'foo_schema.sql',
14 to => 'DiaUml',
15 );
16 print $translator->translate;
17
19 Currently you will get one class (with the a table stereotype)
20 generated per table in the schema. The fields are added as attributes
21 of the classes and their datatypes set. It doesn't currently set any of
22 the relationships. It doesn't do any layout, all the classes are in one
23 big stack. However it is still useful as you can use the layout tools
24 in Dia to automatically arrange them horizontally or vertically.
25
26 Producer Args
28 Mark Addison <grommit@users.sourceforge.net>.
29
31 * Add the foreign keys from the schema as UML relations.
32
33 * Layout the classes.
34
36 SQL::Translator.
37
38
39
40perl v5.34.1 2022-05-1S0QL::Translator::Producer::DiaUml(3)