File Coverage

blib/lib/Module/Build/Database/PostgreSQL/Templates.pm
Criterion Covered Total %
statement 0 5 0.0
branch n/a
condition n/a
subroutine 0 2 0.0
pod 0 2 0.0
total 0 9 0.0


line stmt bran cond sub pod time code
1             =head1 NAME
2              
3             Module::Build::Database::PostgreSQL::Templates - PostgreSQL documentation templates
4              
5             =head1 DESCRIPTION
6              
7             Templates used to generate documentation for a postgres database.
8              
9             =cut
10              
11             package Module::Build::Database::PostgreSQL::Templates;
12             our $VERSION = '0.57';
13              
14             sub filenames {
15 0     0 0   return qw/header.tmpl footer.tmpl html.tmpl pod.tmpl dot.tmpl/;
16             }
17              
18             sub file_contents {
19 0     0 0   my $class = shift;
20 0           my $filename = shift;
21 0           our %contents;
22 0           return $contents{$filename};
23             }
24              
25             our %contents = ( "footer.tmpl" => <<'END_FOOTER', "header.tmpl" =><< 'END_HEADER', "html.tmpl" =><<'END_HTML', "pod.tmpl" =><< 'END_POD', "dot.tmpl" =><< 'END_DOT' );
26              
27            
28             END_FOOTER
29            
30            
31             "http://www.w3.org/TR/html4/strict.dtd">
32              
33            
34            
35             Index for <!-- TMPL_VAR ESCAPE="HTML" name="database" -->
36            
37            
135            
136            
137            
138            
139            
140            
141              
142              
143             END_HEADER
144             _CUT: index.html
145            
146              
147            
148            
149            
150            
151              
152            
153            
154             _CUT: contents.html
155            
156            
160            
161            
162            
163            
164            
165            
166            
167            
168            
169             ">
170            
171            
172            
173            
174            
175              
176            
177             _CUT: default.html
178            
179             Please select an item from the frame on the left.
180            
181            
182            
183            
184             _CUT: viewtable_..html
185            
186            

View:Table:

187            
188             ">.">
189            
190            
191            

192            
193              
194              
195             tr0tr1">
196            
. Structure
197            
198             F-Key
199             Name
200             Type
201             Description
202            
203            
204            
205            
206            
207            
208             ">..#
209            
210            
211            
212            
213            
214            
215            
216             PRIMARY KEY
217            
218              
219            
220             UNIQUE#
221            
222            
223              
224             NOT NULL
225             DEFAULT
226            
227            

228            
229            
230            
231            
232              
233            
234            
235            

Table . Inherits

236            
237            
238             ">.,
239            
240            

241            
242              
243            
244            
245            

 

246             tr0tr1">
247            
. Constraints
248            
249             Name
250             Constraint
251            
252            
253            
254            
255            
256            
257            
258            
259            
260              
261            
262            
263            

Tables referencing this one via Foreign Key Constraints:

264            
265             ..html">.
266            
267            
268              
269            
270            
271            
272            
273              
274            
275            
276            
277            
278              
279            
280            
281            

 

282             tr0tr1">
283            
Permissions which apply to .
284            
285             User
286            
Select
287            
Insert
288            
Update
289            
Delete
290            
Reference
291            
Rule
292            
Trigger
293            
294            
295            
296            
297            
♦
298            
♦
299            
♦
300            
♦
301            
♦
302            
♦
303            
♦
304            
305            
306            
307            
308              
309            
310            
311              
312            
313            
314             _CUT: func_..html
315            
316            

Function:

317             ">.">
318            
319            

Returns:

320            

Language:

321            

322            
323            
324            
325              
326            
327             END_HTML
328            
329             _CUT: viewtable_.pod
330             =head1 NAME
331              
332            
333              
334             =head1 DESCRIPTION
335              
336            
337              
338             =head1 FIELDS
339              
340             () -
341            
342              
343             =head1 SCHEMA
344              
345             _DB: \d+
346              
347             =cut
348              
349            
350            
351              
352              
353             END_POD
354              
355             digraph g {
356             graph [
357             rankdir = "LR",
358             concentrate = true,
359             ratio = auto
360             ];
361             node [
362             fontsize = "10",
363             shape = record
364             ];
365             edge [
366             ];
367            
368             "." [shape = plaintext, label = <
\N
" > PK FK ">
> ];
369            
370              
371            
372             ".":rtcol -> ".":ltcol [label=""];
373             }
374              
375             END_DOT
376