lib/Pg/Loader/Options.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 88.0% 22 / 25 CC 1 SCAR 1.5
CC
1
Cov
94%
get_options
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« script/pgloader.pl ↑ Summary lib/Pg/Loader.pm »
1 package Pg::Loader::Options;
2 # Copyright (C) 2011, Ioannis
3  
4 2 ▶use Getopt::Compact;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use 5.010000;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 our $VERSION = '0.1';
11  
12 2 our @EXPORT = qw( get_options );
13  
14  
15 0 ▶sub get_options {
Subroutine get_options: not called CC=1 SCAR=6.9
Pod undocumented
16 0 new Getopt::Compact
17 args => '[section]...',
18 modes => [qw(quiet debug verbose )],
19 struct => [ [ [qw(c config)], 'config file', '=s' ],
20 [ [qw(t relation)],'schema.table' , '=s' ],
21 [ [qw(l loglevel)],'loglevel', '=i' ],
22 [ [qw(L Logfile)], 'Logfile', '=s' ],
23 [ [qw(s summary)], 'summary' ],
24 [ [qw(e every)], 'sets copy_every=1' ],
25 [ [qw(n dry_run)], 'dry_run' ],
26 [ [qw(D disable_triggers)],'disable triggers' ],
27 [ [qw(T truncate)],'truncate table before loading'],
28 [ [qw(V vacuum)], 'vacuum analyze' ],
29 [ [qw(C count)], 'num of lines to process','=s' ],
30 [ [qw( version)], 'version' , ],
31 [ [qw(F from)], 'process from this line number'],
32 [ [qw(i indexes)], 'disable indexes during COPY '],
33 [ [qw(sample)], 'generate sample config file' ],
34 ]
35 }
36  
37 2 1;
38 __END__
« script/pgloader.pl ↑ Summary lib/Pg/Loader.pm »