packaging one directory
|
1 |
package DBIx::Custom::Result; |
update document
|
2 | |
updatedd pod
|
3 |
use Object::Simple -base; |
cleanup
|
4 | |
packaging one directory
|
5 |
use Carp 'croak'; |
cleanup
|
6 |
use DBIx::Custom::Util qw/_array_to_hash _subname/; |
packaging one directory
|
7 | |
added EXPERIMENTAL DBIx::Cus...
|
8 |
has [qw/filters filter_off sth type_rule_off/], |
updatedd pod
|
9 |
stash => sub { {} }; |
cleanup
|
10 | |
- added DBIx::Custom::Result...
|
11 |
*all = \&fetch_hash_all; |
12 | ||
cleanup
|
13 |
sub filter { |
14 |
my $self = shift; |
|
cleanup
|
15 |
|
16 |
if (@_) { |
|
all filter can receive array...
|
17 |
my $filter = {}; |
cleanup
|
18 |
|
all filter can receive array...
|
19 |
if (ref $_[0] eq 'HASH') { |
20 |
$filter = $_[0]; |
|
21 |
} |
|
22 |
else { |
|
cleanup
|
23 |
$filter = _array_to_hash( |
all filter can receive array...
|
24 |
@_ > 1 ? [@_] : $_[0] |
25 |
); |
|
26 |
} |
|
27 |
|
|
cleanup
|
28 |
foreach my $column (keys %$filter) { |
29 |
my $fname = $filter->{$column}; |
|
fix bug : filter can't over...
|
30 | |
31 |
if (exists $filter->{$column} |
|
32 |
&& defined $fname |
|
33 |
&& ref $fname ne 'CODE') |
|
34 |
{ |
|
cleanup
|
35 |
croak qq{Filter "$fname" is not registered" } . _subname |
cleanup
|
36 |
unless exists $self->filters->{$fname}; |
37 |
|
|
38 |
$filter->{$column} = $self->filters->{$fname}; |
|
39 |
} |
|
cleanup
|
40 |
} |
cleanup
|
41 |
|
added experimental DBIx::Cus...
|
42 |
$self->{filter} = {%{$self->filter}, %$filter}; |
cleanup
|
43 |
|
44 |
return $self; |
|
cleanup
|
45 |
} |
46 |
|
|
added experimental DBIx::Cus...
|
47 |
return $self->{filter} ||= {}; |
48 |
} |
|
49 | ||
packaging one directory
|
50 |
sub fetch { |
changed argument of tag proc...
|
51 |
my $self = shift; |
52 |
|
|
cleanup
|
53 |
# Filter |
added experimental DBIx::Cus...
|
54 |
my $filter = $self->filter; |
55 |
|
|
56 |
# End filter |
|
cleanup
|
57 |
my $end_filter = $self->{end_filter} || {}; |
packaging one directory
|
58 |
|
59 |
# Fetch |
|
changed argument of tag proc...
|
60 |
my @row = $self->{sth}->fetchrow_array; |
packaging one directory
|
61 |
|
cleanup
|
62 |
# No row |
update document
|
63 |
return unless @row; |
added check_filter attribute
|
64 |
|
cleanup
|
65 |
# Filtering |
added experimental iterate_a...
|
66 |
my $columns = $self->{sth}->{NAME}; |
added type_rule method and f...
|
67 |
my $types = $self->{sth}->{TYPE}; |
68 |
my $type_rule = $self->type_rule || {}; |
|
69 |
|
|
cleanup
|
70 |
for (my $i = 0; $i < @$columns; $i++) { |
added EXPERIMENTAL DBIx::Cus...
|
71 |
if (!$self->type_rule_off && (my $rule = $type_rule->{lc($types->[$i])})) |
added type_rule method and f...
|
72 |
{ |
73 |
$row[$i] = $rule->($row[$i]); |
|
74 |
} |
|
75 |
|
|
changed argument of tag proc...
|
76 |
# Filter name |
cleanup
|
77 |
my $column = $columns->[$i]; |
cleanup
|
78 |
my $f = exists $filter->{$column} |
79 |
? $filter->{$column} |
|
cleanup
|
80 |
: $self->{default_filter}; |
added experimental DBIx::Cus...
|
81 |
my $ef = $end_filter->{$column}; |
some changed
|
82 |
|
cleanup
|
83 |
# Filtering |
type_rule can receive filter...
|
84 |
$row[$i] = $f->($row[$i]) if $f && !$self->filter_off; |
85 |
$row[$i] = $ef->($row[$i]) if $ef && !$self->filter_off; |
|
packaging one directory
|
86 |
} |
many many changes
|
87 | |
removed reconnect method
|
88 |
return \@row; |
89 |
} |
|
90 | ||
cleanup
|
91 |
sub fetch_all { |
92 |
my $self = shift; |
|
93 |
|
|
94 |
# Fetch all rows |
|
95 |
my $rows = []; |
|
96 |
while(my $row = $self->fetch) { |
|
97 |
push @$rows, $row; |
|
98 |
} |
|
99 |
return $rows; |
|
100 |
} |
|
101 | ||
removed reconnect method
|
102 |
sub fetch_first { |
103 |
my $self = shift; |
|
104 |
|
|
105 |
# Fetch |
|
106 |
my $row = $self->fetch; |
|
107 |
|
|
cleanup
|
108 |
# No row |
removed reconnect method
|
109 |
return unless $row; |
110 |
|
|
111 |
# Finish statement handle |
|
112 |
$self->sth->finish; |
|
113 |
|
|
114 |
return $row; |
|
115 |
} |
|
116 | ||
packaging one directory
|
117 |
sub fetch_hash { |
changed argument of tag proc...
|
118 |
my $self = shift; |
119 |
|
|
cleanup
|
120 |
# Filter |
added experimental DBIx::Cus...
|
121 |
my $filter = $self->filter; |
122 |
|
|
123 |
# End filter |
|
cleanup
|
124 |
my $end_filter = $self->{end_filter} || {}; |
packaging one directory
|
125 |
|
126 |
# Fetch |
|
changed argument of tag proc...
|
127 |
my $row = $self->{sth}->fetchrow_arrayref; |
packaging one directory
|
128 |
|
129 |
# Cannot fetch |
|
130 |
return unless $row; |
|
added check_filter attribute
|
131 | |
packaging one directory
|
132 |
# Filter |
133 |
my $row_hash = {}; |
|
added experimental iterate_a...
|
134 |
my $columns = $self->{sth}->{NAME}; |
added type_rule method and f...
|
135 |
my $types = $self->{sth}->{TYPE}; |
136 |
my $type_rule = $self->type_rule || {}; |
|
cleanup
|
137 |
for (my $i = 0; $i < @$columns; $i++) { |
update document
|
138 |
|
added type_rule method and f...
|
139 |
# Type rule |
added EXPERIMENTAL DBIx::Cus...
|
140 |
if (!$self->type_rule_off && (my $rule = $type_rule->{lc($types->[$i])})) |
added type_rule method and f...
|
141 |
{ |
142 |
$row->[$i] = $rule->($row->[$i]); |
|
143 |
} |
|
144 |
|
|
changed argument of tag proc...
|
145 |
# Filter name |
cleanup
|
146 |
my $column = $columns->[$i]; |
cleanup
|
147 |
my $f = exists $filter->{$column} |
148 |
? $filter->{$column} |
|
cleanup
|
149 |
: $self->{default_filter}; |
added experimental DBIx::Cus...
|
150 |
my $ef = $end_filter->{$column}; |
add query filter error check
|
151 |
|
cleanup
|
152 |
# Filtering |
type_rule can receive filter...
|
153 |
$row_hash->{$column} = $f && !$self->filter_off ? $f->($row->[$i]) |
154 |
: $row->[$i]; |
|
155 |
$row_hash->{$column} = $ef->($row_hash->{$column}) |
|
156 |
if $ef && !$self->filter_off; |
|
packaging one directory
|
157 |
} |
158 |
|
|
removed reconnect method
|
159 |
return $row_hash; |
packaging one directory
|
160 |
} |
161 | ||
cleanup
|
162 |
sub fetch_hash_all { |
163 |
my $self = shift; |
|
164 |
|
|
165 |
# Fetch all rows as hash |
|
166 |
my $rows = []; |
|
167 |
while(my $row = $self->fetch_hash) { |
|
168 |
push @$rows, $row; |
|
169 |
} |
|
170 |
|
|
171 |
return $rows; |
|
172 |
} |
|
173 | ||
removed reconnect method
|
174 |
sub fetch_hash_first { |
packaging one directory
|
175 |
my $self = shift; |
176 |
|
|
177 |
# Fetch hash |
|
178 |
my $row = $self->fetch_hash; |
|
179 |
|
|
cleanup
|
180 |
# No row |
packaging one directory
|
181 |
return unless $row; |
182 |
|
|
183 |
# Finish statement handle |
|
some changed
|
184 |
$self->sth->finish; |
packaging one directory
|
185 |
|
removed reconnect method
|
186 |
return $row; |
packaging one directory
|
187 |
} |
188 | ||
renamed fetch_rows to fetch_...
|
189 |
sub fetch_hash_multi { |
packaging one directory
|
190 |
my ($self, $count) = @_; |
191 |
|
|
cleanup
|
192 |
# Row count not specified |
cleanup
|
193 |
croak 'Row count must be specified ' . _subname |
packaging one directory
|
194 |
unless $count; |
195 |
|
|
196 |
# Fetch multi rows |
|
197 |
my $rows = []; |
|
198 |
for (my $i = 0; $i < $count; $i++) { |
|
removed reconnect method
|
199 |
my $row = $self->fetch_hash; |
200 |
last unless $row; |
|
201 |
push @$rows, $row; |
|
packaging one directory
|
202 |
} |
203 |
|
|
204 |
return unless @$rows; |
|
removed reconnect method
|
205 |
return $rows; |
packaging one directory
|
206 |
} |
207 | ||
cleanup
|
208 |
sub fetch_multi { |
209 |
my ($self, $count) = @_; |
|
packaging one directory
|
210 |
|
cleanup
|
211 |
# Row count not specifed |
cleanup
|
212 |
croak 'Row count must be specified ' . _subname |
cleanup
|
213 |
unless $count; |
214 |
|
|
215 |
# Fetch multi rows |
|
packaging one directory
|
216 |
my $rows = []; |
cleanup
|
217 |
for (my $i = 0; $i < $count; $i++) { |
218 |
my $row = $self->fetch; |
|
219 |
last unless $row; |
|
removed reconnect method
|
220 |
push @$rows, $row; |
packaging one directory
|
221 |
} |
changed argument of tag proc...
|
222 |
|
cleanup
|
223 |
return unless @$rows; |
removed reconnect method
|
224 |
return $rows; |
packaging one directory
|
225 |
} |
226 | ||
- added DBIx::Custom::Result...
|
227 |
*one = \&fetch_hash_first; |
228 | ||
added EXPERIMENTAL DBIx::Cus...
|
229 |
sub type_rule { |
230 |
my $self = shift; |
|
231 |
|
|
232 |
# Merge type rule |
|
233 |
if (@_) { |
|
234 |
my $type_rule = @_ == 1 ? $_[0] : [@_]; |
|
235 |
$type_rule = _array_to_hash($type_rule) || {}; |
|
236 |
foreach my $data_type (keys %{$type_rule || {}}) { |
|
237 |
croak qq{data type of into section must be lower case or number} |
|
238 |
if $data_type =~ /[A-Z]/; |
|
239 |
my $fname = $type_rule->{$data_type}; |
|
240 |
if (defined $fname && ref $fname ne 'CODE') { |
|
241 |
croak qq{Filter "$fname" is not registered" } . _subname |
|
242 |
unless exists $self->filters->{$fname}; |
|
243 |
|
|
244 |
$type_rule->{$data_type} = $self->filters->{$fname}; |
|
245 |
} |
|
246 |
} |
|
247 |
$self->{type_rule} = {%{$self->type_rule}, %$type_rule}; |
|
248 |
} |
|
249 |
|
|
250 |
return $self->{type_rule} ||= {}; |
|
251 |
} |
|
252 | ||
253 |
sub clear_type_rule { |
|
254 |
my $self = shift; |
|
255 |
$self->{type_rule} = {}; |
|
256 |
return $self; |
|
257 |
} |
|
258 | ||
cleanup
|
259 |
# DEPRECATED! |
260 |
sub end_filter { |
|
261 |
my $self = shift; |
|
262 |
|
|
263 |
if (@_) { |
|
264 |
my $end_filter = {}; |
|
265 |
|
|
266 |
if (ref $_[0] eq 'HASH') { |
|
267 |
$end_filter = $_[0]; |
|
268 |
} |
|
269 |
else { |
|
270 |
$end_filter = _array_to_hash( |
|
271 |
@_ > 1 ? [@_] : $_[0] |
|
272 |
); |
|
273 |
} |
|
274 |
|
|
275 |
foreach my $column (keys %$end_filter) { |
|
276 |
my $fname = $end_filter->{$column}; |
|
277 |
|
|
278 |
if (exists $end_filter->{$column} |
|
279 |
&& defined $fname |
|
280 |
&& ref $fname ne 'CODE') |
|
281 |
{ |
|
282 |
croak qq{Filter "$fname" is not registered" } . _subname |
|
283 |
unless exists $self->filters->{$fname}; |
|
284 |
|
|
285 |
$end_filter->{$column} = $self->filters->{$fname}; |
|
286 |
} |
|
287 |
} |
|
288 |
|
|
289 |
$self->{end_filter} = {%{$self->end_filter}, %$end_filter}; |
|
290 |
|
|
291 |
return $self; |
|
292 |
} |
|
293 |
|
|
294 |
return $self->{end_filter} ||= {}; |
|
295 |
} |
|
296 | ||
cleanup
|
297 |
# DEPRECATED! |
added experimental DBIx::Cus...
|
298 |
sub remove_end_filter { |
299 |
my $self = shift; |
|
300 |
|
|
cleanup
|
301 |
warn "remove_end_filter is DEPRECATED! use filter_off attribute instead"; |
302 |
|
|
added experimental DBIx::Cus...
|
303 |
$self->{end_filter} = {}; |
304 |
|
|
305 |
return $self; |
|
306 |
} |
|
307 | ||
cleanup
|
308 |
# DEPRECATED! |
added experimental DBIx::Cus...
|
309 |
sub remove_filter { |
310 |
my $self = shift; |
|
cleanup
|
311 | |
312 |
warn "remove_filter is DEPRECATED! use filter_off attribute instead"; |
|
added experimental DBIx::Cus...
|
313 |
|
314 |
$self->{filter} = {}; |
|
315 |
|
|
316 |
return $self; |
|
317 |
} |
|
318 | ||
cleanup
|
319 |
# DEPRECATED! |
cleanup
|
320 |
sub default_filter { |
321 |
my $self = shift; |
|
cleanup
|
322 | |
cleanup
|
323 |
warn "default_filter is DEPRECATED!"; |
cleanup
|
324 |
|
325 |
if (@_) { |
|
326 |
my $fname = $_[0]; |
|
327 |
if (@_ && !$fname) { |
|
328 |
$self->{default_filter} = undef; |
|
329 |
} |
|
330 |
else { |
|
many changed
|
331 |
croak qq{Filter "$fname" is not registered} |
cleanup
|
332 |
unless exists $self->filters->{$fname}; |
333 |
|
|
334 |
$self->{default_filter} = $self->filters->{$fname}; |
|
335 |
} |
|
336 |
|
|
337 |
return $self; |
|
338 |
} |
|
339 |
|
|
340 |
return $self->{default_filter}; |
|
341 |
} |
|
342 | ||
cleanup
|
343 |
# DEPRECATED! |
cleanup
|
344 |
has 'filter_check'; |
cleanup
|
345 | |
update document
|
346 |
1; |
347 | ||
packaging one directory
|
348 |
=head1 NAME |
349 | ||
cleanup
|
350 |
DBIx::Custom::Result - Result of select statement |
packaging one directory
|
351 | |
update document
|
352 |
=head1 SYNOPSIS |
cleanup
|
353 | |
354 |
Get the result of select statement. |
|
355 | ||
removed reconnect method
|
356 |
# Result |
357 |
my $result = $dbi->select(table => 'books'); |
|
cleanup
|
358 | |
359 |
Fetch row into array. |
|
removed reconnect method
|
360 |
|
361 |
# Fetch a row into array |
|
362 |
while (my $row = $result->fetch) { |
|
cleanup
|
363 |
my $author = $row->[0]; |
364 |
my $title = $row->[1]; |
|
removed reconnect method
|
365 |
|
version 0.0901
|
366 |
} |
367 |
|
|
cleanup
|
368 |
# Fetch only a first row into array |
removed reconnect method
|
369 |
my $row = $result->fetch_first; |
370 |
|
|
371 |
# Fetch multiple rows into array of array |
|
372 |
while (my $rows = $result->fetch_multi(5)) { |
|
cleanup
|
373 |
my $first_author = $rows->[0][0]; |
374 |
my $first_title = $rows->[0][1]; |
|
375 |
my $second_author = $rows->[1][0]; |
|
376 |
my $second_value = $rows->[1][1]; |
|
377 |
|
|
removed reconnect method
|
378 |
} |
379 |
|
|
380 |
# Fetch all rows into array of array |
|
381 |
my $rows = $result->fetch_all; |
|
cleanup
|
382 | |
383 |
Fetch row into hash. |
|
384 | ||
385 |
# Fetch a row into hash |
|
removed reconnect method
|
386 |
while (my $row = $result->fetch_hash) { |
cleanup
|
387 |
my $title = $row->{title}; |
388 |
my $author = $row->{author}; |
|
removed reconnect method
|
389 |
|
packaging one directory
|
390 |
} |
removed reconnect method
|
391 |
|
cleanup
|
392 |
# Fetch only a first row into hash |
removed reconnect method
|
393 |
my $row = $result->fetch_hash_first; |
394 |
|
|
395 |
# Fetch multiple rows into array of hash |
|
cleanup
|
396 |
while (my $rows = $result->fetch_hash_multi(5)) { |
397 |
my $first_title = $rows->[0]{title}; |
|
398 |
my $first_author = $rows->[0]{author}; |
|
399 |
my $second_title = $rows->[1]{title}; |
|
400 |
my $second_author = $rows->[1]{author}; |
|
removed reconnect method
|
401 |
} |
402 |
|
|
403 |
# Fetch all rows into array of hash |
|
404 |
my $rows = $result->fetch_hash_all; |
|
packaging one directory
|
405 | |
update document
|
406 |
=head1 ATTRIBUTES |
packaging one directory
|
407 | |
cleanup
|
408 |
Filters when a row is fetched. |
409 |
This overwrites C<default_filter>. |
|
removed DESTROY method(not b...
|
410 | |
updated_pod
|
411 |
=head2 C<filter_off> EXPERIMENTAL |
412 | ||
413 |
my $filter_off = $resutl->filter_off; |
|
414 |
$result = $result->filter_off(1); |
|
415 | ||
416 |
Turn filter off. |
|
417 | ||
cleanup
|
418 |
=head2 C<filters> |
419 | ||
420 |
my $filters = $result->filters; |
|
421 |
$result = $result->filters(\%filters); |
|
422 | ||
423 |
Resistered filters. |
|
424 | ||
425 |
=head2 C<sth> |
|
426 | ||
427 |
my $sth = $reuslt->sth |
|
428 |
$result = $result->sth($sth); |
|
429 | ||
430 |
Statement handle of L<DBI>. |
|
431 | ||
added EXPERIMENTAL execute()...
|
432 |
=head2 C<type_rule_off> EXPERIMENTAL |
433 | ||
434 |
my $type_rule_off = $result->type_rule_off; |
|
435 |
$result = $result->type_rule_off(1); |
|
436 | ||
437 |
Turn type rule off. |
|
438 | ||
update document
|
439 |
=head1 METHODS |
440 | ||
renamed build_query to creat...
|
441 |
L<DBIx::Custom::Result> inherits all methods from L<Object::Simple> |
cleanup
|
442 |
and implements the following new ones. |
packaging one directory
|
443 | |
updated pod
|
444 |
=head2 C<all> |
445 | ||
446 |
my $rows = $result->all; |
|
447 | ||
448 |
This is alias for C<fetch_hash_all>. |
|
449 | ||
removed DBIx::Custom commit ...
|
450 |
=head2 C<fetch> |
packaging one directory
|
451 | |
cleanup
|
452 |
my $row = $result->fetch; |
version 0.0901
|
453 | |
cleanup
|
454 |
Fetch a row into array. |
packaging one directory
|
455 | |
removed DBIx::Custom commit ...
|
456 |
=head2 C<fetch_all> |
packaging one directory
|
457 | |
cleanup
|
458 |
my $rows = $result->fetch_all; |
version 0.0901
|
459 | |
removed DESTROY method(not b...
|
460 |
Fetch all rows into array of array. |
packaging one directory
|
461 | |
cleanup
|
462 |
=head2 C<fetch_first> |
463 | ||
464 |
my $row = $result->fetch_first; |
|
465 | ||
466 |
Fetch only a first row into array and finish statment handle. |
|
467 | ||
removed DESTROY method(not b...
|
468 |
=head2 C<fetch_hash> |
packaging one directory
|
469 | |
cleanup
|
470 |
my $row = $result->fetch_hash; |
packaging one directory
|
471 | |
removed DESTROY method(not b...
|
472 |
Fetch a row into hash |
update document
|
473 | |
cleanup
|
474 |
=head2 C<fetch_hash_all> |
475 | ||
476 |
my $rows = $result->fetch_hash_all; |
|
477 | ||
478 |
Fetch all rows into array of hash. |
|
479 | ||
removed DBIx::Custom commit ...
|
480 |
=head2 C<fetch_hash_first> |
removed reconnect method
|
481 |
|
cleanup
|
482 |
my $row = $result->fetch_hash_first; |
packaging one directory
|
483 | |
removed DESTROY method(not b...
|
484 |
Fetch only first row into hash and finish statment handle. |
packaging one directory
|
485 | |
removed DESTROY method(not b...
|
486 |
=head2 C<fetch_hash_multi> |
update document
|
487 | |
cleanup
|
488 |
my $rows = $result->fetch_hash_multi(5); |
update document
|
489 |
|
removed DESTROY method(not b...
|
490 |
Fetch multiple rows into array of hash |
cleanup
|
491 |
Row count must be specified. |
update document
|
492 | |
cleanup
|
493 |
=head2 C<fetch_multi> |
packaging one directory
|
494 | |
cleanup
|
495 |
my $rows = $result->fetch_multi(5); |
496 |
|
|
497 |
Fetch multiple rows into array of array. |
|
498 |
Row count must be specified. |
|
removed DESTROY method(not b...
|
499 | |
cleanup
|
500 |
=head2 C<filter> |
501 | ||
added experimental DBIx::Cus...
|
502 |
$result = $result->filter(title => 'to_something', |
503 |
author => 'to_something'); |
|
added experimental DBIx::Cus...
|
504 | |
all filter can receive array...
|
505 |
$result = $result->filter([qw/title author/] => 'to_something'); |
506 | ||
added experimental DBIx::Cus...
|
507 |
Filters. |
508 |
These each filters override the filters applied by C<apply_filter> of |
|
509 |
L<DBIx::Custom>. |
|
cleanup
|
510 | |
updated pod
|
511 |
=head2 C<one> |
512 | ||
513 |
my $row = $result->one; |
|
514 | ||
515 |
This is alias for C<fetch_hash_first>. |
|
516 | ||
- removed DEPRECATED DBIx::C...
|
517 |
=head2 C<remove_filter> |
added experimental DBIx::Cus...
|
518 | |
519 |
$result->remove_filter; |
|
520 | ||
521 |
Remove filter. End filter is not removed. |
|
522 | ||
- removed DEPRECATED DBIx::C...
|
523 |
=head2 C<stash> |
added experimental DBIx::Cus...
|
524 | |
525 |
my $stash = $result->stash; |
|
526 |
my $foo = $result->stash->{foo}; |
|
527 |
$result->stash->{foo} = $foo; |
|
528 | ||
529 |
Stash is hash reference to save your data. |
|
530 | ||
added EXPERIMENTAL DBIx::Cus...
|
531 |
=head2 C<type_rule> EXPERIMENTAL |
532 | ||
533 |
$result->type_rule( |
|
534 |
# DATE |
|
535 |
9 => sub { ... }, |
|
536 |
# DATETIME or TIMESTAMP |
|
537 |
11 => sub { ... } |
|
538 |
); |
|
539 | ||
540 |
This override L<DBIx::Custom>'s C<type_rule> C<from> section. |
|
541 | ||
EXPERIMENTAL type_rule_off i...
|
542 |
=head2 C<remove_end_filter> DEPRECATED! |
543 | ||
544 |
$result->remove_end_filter; |
|
545 | ||
546 |
Remove end filter. |
|
547 | ||
548 |
=head2 C<end_filter> DEPRECATED! |
|
549 | ||
550 |
$result = $result->end_filter(title => 'to_something', |
|
551 |
author => 'to_something'); |
|
552 | ||
553 |
$result = $result->end_filter([qw/title author/] => 'to_something'); |
|
554 | ||
555 |
End filters. |
|
556 |
These each filters is executed after the filters applied by C<apply_filter> of |
|
557 |
L<DBIx::Custom> or C<filter> method. |
|
558 | ||
packaging one directory
|
559 |
=cut |