| 1 | 2 | ▶ | use utf8; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | package DBIx::DR::PlPlaceHolders; | ||||||||||||||||||||||||||||
| 6 | 2 | ▶ | use Mouse; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 2 | extends 'DBIx::DR::PerlishTemplate'; | |||||||||||||||||||||||||||
| 8 | 2 | ▶ | use DBIx::DR::ByteStream; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 2 | ▶ | use Carp (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 2 | ▶ | use File::Spec (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | 2 | ▶ | use Digest::MD5 (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | 2 | ▶ | use Encode qw(encode); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 2 | has sql_dir => (is => 'bare', isa => 'Str'); | |||||||||||||||||||||||||||
| 16 | 2 | has file_suffix => (is => 'rw', isa => 'Str', default => '.sql.ep'); | |||||||||||||||||||||||||||
| 17 | 2 | ▶ | has helpers => (is => 'ro', isa => 'HashRef', default => sub {{}}); | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 28 | ▶ | sub sql_dir { | ||||||||||||||||||||||||||
|
Subroutine
sql_dir: called CC=4 SCAR=14.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 20 | 28 | my ($self, $dir) = @_; | |||||||||||||||||||||||||||
| 21 | 28 | ▶ | if (defined $dir) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 22 | 2 | ▶ | Carp::croak "Diectory $dir is not found or a dir" unless -d $dir; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 23 | 1 | $self->{sql_dir} = File::Spec->rel2abs($dir); | |||||||||||||||||||||||||||
| 24 | } elsif(@_ >= 2) { | ||||||||||||||||||||||||||||
| 25 | 0 | $self->{sql_dir} = undef; | |||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | 27 | return $self->{sql_dir}; | |||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | 3 | ▶ | sub BUILD { | ||||||||||||||||||||||||||
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 31 | 3 | my ($self) = @_; | |||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | # add default helpers | ||||||||||||||||||||||||||||
| 34 | $self->set_helper( | ||||||||||||||||||||||||||||
| 35 | 1 | ▶ | include => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 36 | 1 | my ($tpl, $file, @args) = @_; | |||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | 1 | my $res = ref($self)->new( | |||||||||||||||||||||||||||
| 39 | pretokens => $self->prepretokens, | ||||||||||||||||||||||||||||
| 40 | prepretokens => $self->prepretokens, | ||||||||||||||||||||||||||||
| 41 | helpers => $self->helpers, | ||||||||||||||||||||||||||||
| 42 | sql_dir => $self->sql_dir, | ||||||||||||||||||||||||||||
| 43 | file_suffix => $self->file_suffix, | ||||||||||||||||||||||||||||
| 44 | )->sql_transform( | ||||||||||||||||||||||||||||
| 45 | -f => $file, | ||||||||||||||||||||||||||||
| 46 | @args | ||||||||||||||||||||||||||||
| 47 | ); | ||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | 1 | $tpl->immediate($res->sql); | |||||||||||||||||||||||||||
| 51 | 1 | $tpl->add_bind_value($res->bind_values); | |||||||||||||||||||||||||||
| 52 | 1 | return DBIx::DR::ByteStream->new(''); | |||||||||||||||||||||||||||
| 53 | }, | ||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||
| 55 | 5 | ▶ | list => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 56 | 5 | my ($tpl, @args) = @_; | |||||||||||||||||||||||||||
| 57 | 5 | $tpl->immediate(join ',' => map '?', @args); | |||||||||||||||||||||||||||
| 58 | 5 | $tpl->add_bind_value(@args); | |||||||||||||||||||||||||||
| 59 | 5 | return DBIx::DR::ByteStream->new(''); | |||||||||||||||||||||||||||
| 60 | }, | ||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||
| 62 | 6 | ▶ | hlist => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 63 | 6 | my ($tpl, @args) = @_; | |||||||||||||||||||||||||||
| 64 | 6 | ▶ | if ('ARRAY' eq ref $args[0]) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 65 | 5 | my $filter = shift @args; | |||||||||||||||||||||||||||
| 66 | 5 | $tpl->immediate( | |||||||||||||||||||||||||||
| 67 | join ',' => ( | ||||||||||||||||||||||||||||
| 68 | '(' . | ||||||||||||||||||||||||||||
| 69 | join(',' => ('?')x @$filter) . | ||||||||||||||||||||||||||||
| 70 | ')' | ||||||||||||||||||||||||||||
| 71 | )x @args | ||||||||||||||||||||||||||||
| 72 | ); | ||||||||||||||||||||||||||||
| 73 | 5 | for my $a (@args) { | |||||||||||||||||||||||||||
| 74 | 15 | $tpl->add_bind_value( map { $a->{$_} } @$filter ); | |||||||||||||||||||||||||||
| 75 | } | ||||||||||||||||||||||||||||
| 76 | 4 | return DBIx::DR::ByteStream->new(''); | |||||||||||||||||||||||||||
| 77 | } | ||||||||||||||||||||||||||||
| 78 | $tpl->immediate( | ||||||||||||||||||||||||||||
| 79 | join ',' => map { | ||||||||||||||||||||||||||||
| 80 | 1 | '(' . | |||||||||||||||||||||||||||
| 81 | join(',' => ('?') x keys %$_) . | ||||||||||||||||||||||||||||
| 82 | ')' | ||||||||||||||||||||||||||||
| 83 | } @args | ||||||||||||||||||||||||||||
| 84 | ); | ||||||||||||||||||||||||||||
| 85 | 1 | $tpl->add_bind_value(map { values %$_ } @args); | |||||||||||||||||||||||||||
| 86 | 1 | return DBIx::DR::ByteStream->new(''); | |||||||||||||||||||||||||||
| 87 | }, | ||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||
| 89 | 1 | ▶ | stacktrace => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=7 SCAR=20.1
| |||||||||||||||||||||||||||||
| 90 | 1 | my ($tpl, $skip, $depth, $sep) = @_; | |||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||
| 92 | 1 | ▶ | $depth ||= 32; | ||||||||||||||||||||||||||
|
Condition50%1/2
$depth ||= 32
MC/DC0%0/1
$depth ||= 32
$depth
Truth table50%1/2
A
A= $depth
| |||||||||||||||||||||||||||||
| 93 | 1 | ▶ | $skip ||= 0; | ||||||||||||||||||||||||||
|
Condition50%1/2
$skip ||= 0
MC/DC0%0/1
$skip ||= 0
$skip
Truth table50%1/2
A
A= $skip
| |||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||
| 95 | 1 | $skip += 7; | |||||||||||||||||||||||||||
| 96 | 1 | $depth += 6; | |||||||||||||||||||||||||||
| 97 | 1 | ▶ | $sep = ", " unless defined $sep; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||
| 99 | 1 | my @stack; | |||||||||||||||||||||||||||
| 100 | |||||||||||||||||||||||||||||
| 101 | 1 | ▶ | for (my $i = $skip ? $skip - 1 : 0; $i < $depth; $i++) { | ||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||
| 102 | 1 | my @line = caller $i; | |||||||||||||||||||||||||||
| 103 | 1 | ▶ | last unless @line; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 104 | 1 | push @stack => sprintf '%s:%s', @line[1,2]; | |||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||
| 106 | 1 | return DBIx::DR::ByteStream->new(join $sep, @stack); | |||||||||||||||||||||||||||
| 107 | }, | ||||||||||||||||||||||||||||
| 108 | 3 | ); | |||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||
| 110 | 3 | $self; | |||||||||||||||||||||||||||
| 111 | } | ||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||
| 114 | 50 | ▶ | sub sql_transform { | ||||||||||||||||||||||||||
|
Subroutine
sql_transform: called CC=14 SCAR=26.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 115 | 50 | my $self = shift; | |||||||||||||||||||||||||||
| 116 | 50 | my ($sql, %opts); | |||||||||||||||||||||||||||
| 117 | |||||||||||||||||||||||||||||
| 118 | 50 | my $pt; | |||||||||||||||||||||||||||
| 119 | |||||||||||||||||||||||||||||
| 120 | 50 | ▶ | if (@_ % 2) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 121 | 36 | ($sql, %opts) = @_; | |||||||||||||||||||||||||||
| 122 | 36 | delete $opts{-f}; | |||||||||||||||||||||||||||
| 123 | } else { | ||||||||||||||||||||||||||||
| 124 | 14 | %opts = @_; | |||||||||||||||||||||||||||
| 125 | 14 | ▶ | Carp::croak $self->usage unless $opts{-f}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 126 | 13 | my $file = $opts{-f}; | |||||||||||||||||||||||||||
| 127 | |||||||||||||||||||||||||||||
| 128 | 13 | ▶ | $file = File::Spec->catfile($self->sql_dir, $file) | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->sql_dir and not $file =~ m[^/]
MC/DC50%1/2
$self->sql_dir and not $file =~ m[^/]
$self->sql_dir
not $file =~ m[^/]
Truth table66%2/3
A and not(B)
A= $self->sql_dirB= not $file =~ m[^/]
| |||||||||||||||||||||||||||||
| 129 | if $self->sql_dir and $file !~ m{^/}; | ||||||||||||||||||||||||||||
| 130 | 13 | my $resuffix = quotemeta $self->file_suffix; | |||||||||||||||||||||||||||
| 131 | 13 | ▶ | $file .= $self->file_suffix | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->file_suffix and not $file =~ /$resuffix$/
MC/DC50%1/2
$self->file_suffix and not $file =~ /$resuffix$/
$self->file_suffix
not $file =~ /$resuffix$/
Truth table66%2/3
A and not(B)
A= $self->file_suffixB= not $file =~ /$resuffix$/
| |||||||||||||||||||||||||||||
| 132 | if $self->file_suffix and $file !~ /$resuffix$/; | ||||||||||||||||||||||||||||
| 133 | |||||||||||||||||||||||||||||
| 134 | 13 | my @fstat = stat $file; | |||||||||||||||||||||||||||
| 135 | 13 | ▶ | Carp::croak "Can't find file $file" unless @fstat; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 136 | 12 | $opts{-f} = $file; | |||||||||||||||||||||||||||
| 137 | } | ||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||
| 140 | 48 | ▶ | my $namespace = $opts{-f} || $sql; | ||||||||||||||||||||||||||
|
Condition66%2/3
$opts{'-f'} || $sql
MC/DC0%0/2
$opts{'-f'} || $sql
$opts{'-f'}
$sql
Truth table66%2/3
A || B
A= $opts{'-f'}B= $sql
| |||||||||||||||||||||||||||||
| 141 | 48 | ▶ | $namespace = encode utf8 => $namespace if utf8::is_utf8($namespace); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 142 | 48 | $namespace = Digest::MD5::md5_hex($namespace); | |||||||||||||||||||||||||||
| 143 | 48 | $self->{namespace} = __PACKAGE__ . '::Sandbox::t' . $namespace; | |||||||||||||||||||||||||||
| 144 | |||||||||||||||||||||||||||||
| 145 | 48 | $self -> clean_prepends | |||||||||||||||||||||||||||
| 146 | -> clean_preprepends | ||||||||||||||||||||||||||||
| 147 | ; | ||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||
| 149 | 48 | for my $name (keys %{ $self->helpers }) { | |||||||||||||||||||||||||||
| 150 | 228 | $self->preprepend( | |||||||||||||||||||||||||||
| 151 | 'BEGIN{ ' . | ||||||||||||||||||||||||||||
| 152 | "*" . $name . '= sub {' . | ||||||||||||||||||||||||||||
| 153 | '$_PTPL->call_helper(q{' . $name . '}, @_)' . | ||||||||||||||||||||||||||||
| 154 | '} ' . | ||||||||||||||||||||||||||||
| 155 | '}' | ||||||||||||||||||||||||||||
| 156 | ); | ||||||||||||||||||||||||||||
| 157 | } | ||||||||||||||||||||||||||||
| 158 | |||||||||||||||||||||||||||||
| 159 | 48 | my @args; | |||||||||||||||||||||||||||
| 160 | 48 | for (keys %opts) { | |||||||||||||||||||||||||||
| 161 | 54 | ▶ | next unless /^\w/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 162 | 31 | $self->prepend("my \$$_ = shift"); | |||||||||||||||||||||||||||
| 163 | 31 | push @args, $opts{$_}; | |||||||||||||||||||||||||||
| 164 | } | ||||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||
| 166 | 48 | ▶ | if ($sql) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 167 | 36 | $self->render($sql, @args); | |||||||||||||||||||||||||||
| 168 | } else { | ||||||||||||||||||||||||||||
| 169 | 12 | $self->render_file($opts{-f}, @args); | |||||||||||||||||||||||||||
| 170 | } | ||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||
| 172 | 42 | my $res = | |||||||||||||||||||||||||||
| 173 | DBIx::DR::PlPlaceHolders::TransformResult->new(rtemplate => $self); | ||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||
| 175 | # clean memory | ||||||||||||||||||||||||||||
| 176 | 42 | $self->{sql} = ''; | |||||||||||||||||||||||||||
| 177 | 42 | $self->{variables} = []; | |||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||
| 179 | 42 | $res; | |||||||||||||||||||||||||||
| 180 | } | ||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||
| 183 | 17 | ▶ | sub call_helper { | ||||||||||||||||||||||||||
|
Subroutine
call_helper: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||||||||||||||||||
| 184 | 17 | my ($self, $name, @args) = @_; | |||||||||||||||||||||||||||
| 185 | Carp::croak "Helper '$name' is not found or has already been removed" | ||||||||||||||||||||||||||||
| 186 | 17 | ▶ | unless exists $self->helpers->{ $name }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 187 | 17 | $self->helpers->{ $name }->($self, @args); | |||||||||||||||||||||||||||
| 188 | } | ||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||
| 191 | 6 | ▶ | sub set_helper { | ||||||||||||||||||||||||||
|
Subroutine
set_helper: called CC=5 SCAR=16.5
Pod
undocumented
| |||||||||||||||||||||||||||||
| 192 | 6 | my ($self, %opts) = @_; | |||||||||||||||||||||||||||
| 193 | 6 | ▶ | Carp::croak $self->usage unless %opts; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 194 | 5 | ▶ | while (my ($n, $s) = each %opts) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 195 | 15 | ▶ | Carp::croak $self->usage unless 'CODE' eq ref $s and $n =~ /^\w/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
"CODE" eq ref $s and $n =~ /^\w/
MC/DC0%0/2
"CODE" eq ref $s and $n =~ /^\w/
"CODE" eq ref $s
$n =~ /^\w/
Truth table33%1/3
A and B
A= "CODE" eq ref $sB= $n =~ /^\w/
| |||||||||||||||||||||||||||||
| 196 | 15 | $self->helpers->{ $n } = $s ; | |||||||||||||||||||||||||||
| 197 | } | ||||||||||||||||||||||||||||
| 198 | 5 | $self; | |||||||||||||||||||||||||||
| 199 | } | ||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||
| 201 | 2 | ▶ | sub usage { | ||||||||||||||||||||||||||
|
Subroutine
usage: called CC=3 SCAR=11.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 202 | 2 | my ($self) = @_; | |||||||||||||||||||||||||||
| 203 | 2 | my @caller = caller 1; | |||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||
| 205 | 2 | ▶ | return 'Usage: $ph->sql_transform($sql | -f => $sql_file, ...)' | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 206 | if $caller[3] =~ /sql_transform$/; | ||||||||||||||||||||||||||||
| 207 | 1 | ▶ | return 'Usage: $ph->set_helper($name => sub { ... })' | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 208 | if $caller[3] =~ /set_helper$/; | ||||||||||||||||||||||||||||
| 209 | |||||||||||||||||||||||||||||
| 210 | 0 | return $caller[3]; | |||||||||||||||||||||||||||
| 211 | } | ||||||||||||||||||||||||||||
| 212 | |||||||||||||||||||||||||||||
| 213 | package DBIx::DR::PlPlaceHolders::TransformResult; | ||||||||||||||||||||||||||||
| 214 | 2 | ▶ | use Mouse; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||
| 216 | 2 | has rtemplate => (is => 'ro', isa => 'Object', weak_ref => 1); | |||||||||||||||||||||||||||
| 217 | 2 | has sql => (is => 'ro', isa => 'Str'); | |||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||
| 219 | 42 | ▶ | sub BUILD { | ||||||||||||||||||||||||||
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 220 | 42 | my ($self) = @_; | |||||||||||||||||||||||||||
| 221 | 42 | $self->{sql} = $self->rtemplate->sql; | |||||||||||||||||||||||||||
| 222 | 42 | $self->{bind_values} = $self->rtemplate->variables; | |||||||||||||||||||||||||||
| 223 | } | ||||||||||||||||||||||||||||
| 224 | |||||||||||||||||||||||||||||
| 225 | 43 | ▶ | sub bind_values { | ||||||||||||||||||||||||||
|
Subroutine
bind_values: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 226 | 43 | my ($self) = @_; | |||||||||||||||||||||||||||
| 227 | 43 | ▶ | return @{ $self->{bind_values} } if wantarray; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 228 | 24 | ▶ | return $self->{bind_values} || []; | ||||||||||||||||||||||||||
|
Condition50%1/2
$self->{'bind_values'} || []
MC/DC0%0/1
$self->{'bind_values'} || []
$self->{'bind_values'}
Truth table50%1/2
A
A= $self->{'bind_values'}
| |||||||||||||||||||||||||||||
| 229 | } | ||||||||||||||||||||||||||||
| 230 | |||||||||||||||||||||||||||||
| 231 | 2 | 1; | |||||||||||||||||||||||||||
| 232 | |||||||||||||||||||||||||||||
| 233 | =head1 NAME | ||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||
| 235 | DBIx::DR::PlPlaceHolders - template converter for L<DBIx::DR>. | ||||||||||||||||||||||||||||
| 236 | |||||||||||||||||||||||||||||
| 237 | =head1 COPYRIGHT | ||||||||||||||||||||||||||||
| 238 | |||||||||||||||||||||||||||||
| 239 | Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org> | ||||||||||||||||||||||||||||
| 240 | Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru> | ||||||||||||||||||||||||||||
| 241 | |||||||||||||||||||||||||||||
| 242 | This program is free software, you can redistribute it and/or | ||||||||||||||||||||||||||||
| 243 | modify it under the terms of the Artistic License. | ||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||
| 245 | =cut | ||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||