| 1 | #!/usr/bin/perl | ||
| 2 | package SQL::QueryBuilder::Pretty::Database::ANSI::Statement; | ||
| 3 | 1 | ▶ | use base qw(SQL::QueryBuilder::Pretty::Rule); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | our $VERSION = '0.01'; | |
| 9 | |||
| 10 | 1 | ▶ | use Carp qw(croak); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 0 | ▶ | sub order { return 80 } |
|
Subroutine
order: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | |||
| 15 | 0 | ▶ | sub match { |
|
Subroutine
match: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 16 | 0 | return qr/ | |
| 17 | (?:SELECT(?:\s+DISTINCT)?) | ||
| 18 | |UPDATE|INSERT\s+INTO | ||
| 19 | /x; | ||
| 20 | } | ||
| 21 | |||
| 22 | 0 | ▶ | sub action { |
|
Subroutine
action: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | 0 | my $self = shift; | |
| 24 | 0 | my $print = shift; | |
| 25 | 0 | my $token = shift; | |
| 26 | |||
| 27 | 0 | $print->var($token); | |
| 28 | 0 | $print->new_line; | |
| 29 | 0 | $print->indent; | |
| 30 | |||
| 31 | 0 | $print->indent_multiplier(2); | |
| 32 | 0 | $print->skip_next_space(1); | |
| 33 | |||
| 34 | 0 | return 1; | |
| 35 | } | ||
| 36 | |||
| 37 | 1 | 1; | |
| 38 | __END__ | ||