3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use blib; |
use lib 'lib'; |
7 |
|
|
8 |
use WebPAC::Common; |
use WebPAC::Common; |
9 |
use base qw/WebPAC::Common/; |
use base qw/WebPAC::Common/; |
243 |
%{ $arg }, |
%{ $arg }, |
244 |
); |
); |
245 |
|
|
246 |
|
# save for dump and input_module |
247 |
|
$self->{ll_db} = $ll_db; |
248 |
|
|
249 |
unless (defined($ll_db)) { |
unless (defined($ll_db)) { |
250 |
$log->logwarn("can't open database $arg->{path}, skipping..."); |
$log->logwarn("can't open database $arg->{path}, skipping..."); |
251 |
return; |
return; |
389 |
$self->{max_pos} = $to_rec; |
$self->{max_pos} = $to_rec; |
390 |
$log->debug("max_pos: $to_rec"); |
$log->debug("max_pos: $to_rec"); |
391 |
|
|
|
# save for dump |
|
|
$self->{ll_db} = $ll_db; |
|
|
|
|
392 |
return $size; |
return $size; |
393 |
} |
} |
394 |
|
|
395 |
|
sub input_module { $_[0]->{ll_db} } |
396 |
|
|
397 |
=head2 fetch |
=head2 fetch |
398 |
|
|
399 |
Fetch next record from database. It will also displays progress bar. |
Fetch next record from database. It will also displays progress bar. |