line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::DBInfo; |
2
|
4
|
|
|
4
|
|
21292
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
4
|
|
|
|
|
12335
|
|
|
4
|
|
|
|
|
20
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub register { |
7
|
2
|
|
|
2
|
1
|
46
|
my ($self, $app) = @_; |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
|
|
2
|
push @{$app->renderer->classes}, __PACKAGE__; |
|
2
|
|
|
|
|
5
|
|
10
|
2
|
|
|
|
|
21
|
push @{$app->static->classes}, __PACKAGE__; |
|
2
|
|
|
|
|
6
|
|
11
|
2
|
|
|
1
|
|
22
|
$app->routes->any('/dbinfo' => sub { shift->render } ); |
|
1
|
|
|
|
|
7761
|
|
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Mojolicious::Plugin::DBInfo - display DataBase Information |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=for html |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$app->plugin('Mojolicious::Plugin::DBInfo'); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
L is a Mojolicious-Plugin. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
It creates a route |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
/dbinfo |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
where detailed info is dispalyed in formatted HTML. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=over |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=back |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SOURCE REPOSITORY |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
L |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Helmut Wollmersdorfer, Ehelmut.wollmersdorfer@gmail.comE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=for html |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright (C) 2013-2015 by Helmut Wollmersdorfer |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
69
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
__DATA__ |