SQL::Tr...er::HTML(3)
π NAME π
Okay bestie, this is the User Contributed Perl Documentation page for SQL::Translator::Producer::HTML β yep, the SQL::Tr...er::HTML(3) manual page β and itβs the HTML producer for SQL::Translator. Literally what it says on the tin. β¨
πΈ SYNOPSIS πΈ
use SQL::Translator::Producer::HTML;
π¦ DESCRIPTION π¦
It creates an HTML document describing the tables. Periodt.
The HTML it produces is composed of a number of tables:
π Links π
A link table sits at the top of the output, and it contains anchored links to elements in the rest of the document. Very main character energy, honestly.
If the nolinktable producer arg is present, then this table is not produced. Bye, links table. π
π§ Tables π§
Each table in the schema has its own HTML table. The top row is a row of <th> elements, with a class of FieldHeader; these elements are Field Name, Data Type, Size, Default Value, Other and Foreign Key. So iconic.
Each successive row describes one field in the table, and has a class of FieldCell$item, where the $item id corresponds to the label of the column. For example:
<tr>
<td class="FieldCellName"><a name="random-id">id</a></td>
<td class="FieldCellType">int</td>
<td class="FieldCellSize">11</td>
<td class="FieldCellDefault"></td>
<td class="FieldCellOther">PRIMARY KEY, NOT NULL</td>
<td class="FieldCellFK"></td>
</tr>
<tr>
<td class="FieldCellName"><a name="random-foo">foo</a></td>
<td class="FieldCellType">varchar</td>
<td class="FieldCellSize">255</td>
<td class="FieldCellDefault"></td>
<td class="FieldCellOther">NOT NULL</td>
<td class="FieldCellFK"></td>
</tr>
<tr>
<td class="FieldCellName"><a name="random-updated">updated</a></td>
<td class="FieldCellType">timestamp</td>
<td class="FieldCellSize">0</td>
<td class="FieldCellDefault"></td>
<td class="FieldCellOther"></td>
<td class="FieldCellFK"></td>
</tr>
Unless the nowrap producer arg is present, the HTML will be enclosed in a basic HTML header and footer. Keeping it cozy. π«Ά
If the pretty producer arg is present, the generated HTML will be nicely spaced and human-readable. Otherwise, it will have very little insignificant whitespace and be generally smaller. Lowkey efficient. π
π AUTHORS π
Ken Youens-Clark <kclark@cpan.org>, Darren Chamberlain <darren@cpan.org>. Absolute icons. π
Thatβs the whole page, bestie: perl v5.42.0, dated 2024-12-12, and itβs the SQL::Tr...er::HTML(3) manual page. Slay and goodbye! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms