1SQL::Translator::ProducUesre:r:HCToMnLt(r3i)buted Perl DSoQcLu:m:eTnrtaantsiloantor::Producer::HTML(3)
2
3
4

NAME

6       SQL::Translator::Producer::HTML - HTML producer for SQL::Translator
7

SYNOPSIS

9         use SQL::Translator::Producer::HTML;
10

DESCRIPTION

12       Creates an HTML document describing the tables.
13
14       The HTML produced is composed of a number of tables:
15
16       Links
17           A link table sits at the top of the output, and contains anchored
18           links to elements in the rest of the document.
19
20           If the nolinktable producer arg is present, then this table is not
21           produced.
22
23       Tables
24           Each table in the schema has its own HTML table.  The top row is a
25           row of <th> elements, with a class of FieldHeader; these elements
26           are Field Name, Data Type, Size, Default Value, Other and Foreign
27           Key.  Each successive row describes one field in the table, and has
28           a class of FieldCell$item, where $item id corresponds to the label
29           of the column.  For example:
30
31               <tr>
32                   <td class="FieldCellName"><a name="random-id">id</a></td>
33                   <td class="FieldCellType">int</td>
34                   <td class="FieldCellSize">11</td>
35                   <td class="FieldCellDefault"></td>
36                   <td class="FieldCellOther">PRIMARY KEY, NOT NULL</td>
37                   <td class="FieldCellFK"></td>
38               </tr>
39
40               <tr>
41                   <td class="FieldCellName"><a name="random-foo">foo</a></td>
42                   <td class="FieldCellType">varchar</td>
43                   <td class="FieldCellSize">255</td>
44                   <td class="FieldCellDefault"></td>
45                   <td class="FieldCellOther">NOT NULL</td>
46                   <td class="FieldCellFK"></td>
47               </tr>
48
49               <tr>
50                   <td class="FieldCellName"><a name="random-updated">updated</a></td>
51                   <td class="FieldCellType">timestamp</td>
52                   <td class="FieldCellSize">0</td>
53                   <td class="FieldCellDefault"></td>
54                   <td class="FieldCellOther"></td>
55                   <td class="FieldCellFK"></td>
56               </tr>
57
58       Unless the nowrap producer arg is present, the HTML will be enclosed in
59       a basic HTML header and footer.
60
61       If the pretty producer arg is present, the generated HTML will be
62       nicely spaced and human-readable.  Otherwise, it will have very little
63       insignificant whitespace and be generally smaller.
64

AUTHORS

66       Ken Youens-Clark <kclark@cpan.org>, Darren Chamberlain
67       <darren@cpan.org>.
68
69
70
71perl v5.28.0                      2013-06-28SQL::Translator::Producer::HTML(3)
Impressum