#
# 2) edit the DBI->connect() calls in this program so that it can
# connect to your database.
-my $dbh = DBI->connect('DBI:Pg:');
# Get the input records from either standard input or the database.
my @input;
}
}
} else {
+ my $dbh = DBI->connect('DBI:Pg:');
@input = @{$dbh->selectall_arrayref($q)};
+ $dbh->disconnect();
}
foreach my $r (@input) {
}
$lol[$lists++] = $records if ($count); # Last batch is likely to be
# small.
-$dbh->disconnect();
# We're going to reuse $count to keep track of the total number of
# batches processed.