| 1 | package Daje::Workflow::GenerateSQL::Base::Common; | ||||||||||
| 2 | 1 | ▶ | use Mojo::Base -base, -signatures; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 1 | has 'json' ; | |||||||||
| 5 | 1 | has 'templates' ; | |||||||||
| 6 | 1 | has 'sql' ; | |||||||||
| 7 | 1 | has 'index' => 0; | |||||||||
| 8 | 1 | has 'version' ; | |||||||||
| 9 | 1 | has 'error'; | |||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub shift_section ($self, $array) { | ||||||||
|
Subroutine
shift_section: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 12 | 0 | my $result = {}; | |||||||||
| 13 | 0 | my $test = ref $array; | |||||||||
| 14 | 0 | ▶ | if (ref $array eq 'ARRAY') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | $result = shift(@{$array}); | |||||||||
| 16 | } | ||||||||||
| 17 | 0 | return $result; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub set_sql($self, $sqlin) { | ||||||||
|
Subroutine
set_sql: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | 0 | $self->sql($sqlin); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | #################### pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||||||||||
| 38 | |||||||||||
| 39 | =head1 NAME | ||||||||||
| 40 | |||||||||||
| 41 | Daje::Workflow::GenerateSQL::Base::Common | ||||||||||
| 42 | |||||||||||
| 43 | |||||||||||
| 44 | =head1 DESCRIPTION | ||||||||||
| 45 | |||||||||||
| 46 | pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | =head1 REQUIRES | ||||||||||
| 50 | |||||||||||
| 51 | L<Mojo::Base> | ||||||||||
| 52 | |||||||||||
| 53 | |||||||||||
| 54 | =head1 METHODS | ||||||||||
| 55 | |||||||||||
| 56 | =head2 set_sql($self, | ||||||||||
| 57 | |||||||||||
| 58 | set_sql($self,(); | ||||||||||
| 59 | |||||||||||
| 60 | =head2 shift_section | ||||||||||
| 61 | |||||||||||
| 62 | shift_section(); | ||||||||||
| 63 | |||||||||||
| 64 | |||||||||||
| 65 | =cut | ||||||||||
| 66 | |||||||||||