line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::DBCritic::Loader; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Loader class for schemas generated from a database connection |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
6
|
|
|
|
|
|
|
#pod |
7
|
|
|
|
|
|
|
#pod use App::DBCritic::Loader; |
8
|
|
|
|
|
|
|
#pod my $schema = App::DBCritic::Loader->connect('dbi:sqlite:foo'); |
9
|
|
|
|
|
|
|
#pod |
10
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod This is a simple subclass of |
13
|
|
|
|
|
|
|
#pod L used by |
14
|
|
|
|
|
|
|
#pod L to dynamically |
15
|
|
|
|
|
|
|
#pod generate a schema based on a database connection. |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod =cut |
18
|
|
|
|
|
|
|
|
19
|
7
|
|
|
7
|
|
49
|
use strict; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
201
|
|
20
|
7
|
|
|
7
|
|
37
|
use utf8; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
57
|
|
21
|
7
|
|
|
7
|
|
169
|
use Modern::Perl '2011'; ## no critic (Modules::ProhibitUseQuotedVersion) |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
64
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our $VERSION = '0.023'; # VERSION |
24
|
7
|
|
|
7
|
|
1248
|
use Moo; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
47
|
|
25
|
|
|
|
|
|
|
extends 'DBIx::Class::Schema::Loader'; |
26
|
|
|
|
|
|
|
__PACKAGE__->loader_options( naming => 'v4', generate_pod => 0 ); |
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |