diff options
author | wen <wen@pkgsrc.org> | 2013-12-12 01:30:17 +0000 |
---|---|---|
committer | wen <wen@pkgsrc.org> | 2013-12-12 01:30:17 +0000 |
commit | f801dc97312271ee9d42fa1fd717ece0490ba03a (patch) | |
tree | 036a554e3f02e49b812a8bdd35f4d53f56cf8c6c /databases | |
parent | da2bbe1792f58260d4ce6b0ede412feaa1794433 (diff) | |
download | pkgsrc-f801dc97312271ee9d42fa1fd717ece0490ba03a.tar.gz |
Update to 1.68
Upstream changes:
1.68 Mon Aug 6 22:22:22 PDT 2012
Patch fromFileGetTopLines() and fromFileIsHeader(), which are used by fromFile(). Impact: minor.
Improve performance of fromFileGuessOS()
Improve fromFile(), fromCSV(), csv() to support using \r, \n within a CSV field.
join() now supports {matchNULL => 1, NULLasEmpty => 1}, if one would like to treat NULL as empty string, or
treat NULL as equal (however, not equal to empty string). Both are set to 0 by default.
Suggested by Kyle Horton & Wilson Dave.
Remove inheritance from AutoLoader and Exporter.
Thanks to Brian Wightman
Thanks to Nicholas Andonakis for sharing his code, quite a few ideas in his package inspired the improvements below!
Add new shortcut methods: lastRow(), lastCol(), colName($colNumericIndex)
One can now write
foreach my $i (0..$t->lastRow)
instead of
foreach my $i (0..$t->nofRow-1)
Add iterator(), so that one can now write
my $next = $t_product->iterator();
while (my $row = $next->()) {
# have access to a row as a hash reference, access row number by &$next(1);
$t_product->setElm($next->(1), 'ProductName', 'New! '.$row->{ProductName});
}
addCol() can take the default value for the new column (first argument)
addRow() supports {addNewCol => 1}
moveCol() can take a $newColName.
setElm() can set a value for multiple cells, specified by ref to row array and col array
match_string(), match_pattern(), match_pattern_hash() also produce $parentTable->{MATCH}
# match returns all matched row ids in $t_product->{MATCH} (ref to row ID array)
$t_product->match_pattern_hash('$_{UnitPrice} > 20');
# create a new column, with 'No' as the default value
$t_product->addCol('No', 'IsExpensive');
# use $t_product->{MATCH} to set values for multiple Elements
$t_product->setElm($t_product->{MATCH}, 'IsExpensive', 'Yes');
1.67 Wed Jul 25 11:47:23 PDT 2012
Update Change.txt file to point out $keepRestCol defaults to 1 is only for group()
For pivot(), $keepRestCol is still default to 0 as before.
1.66 Wed Jul 25 11:03:29 PDT 2012
Change the default value of keepRestCol in group() to 1, instead of 0 to be compatible with older versions
Thanks to Kyle Horton
Diffstat (limited to 'databases')
-rw-r--r-- | databases/p5-Data-Table/Makefile | 5 | ||||
-rw-r--r-- | databases/p5-Data-Table/distinfo | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/databases/p5-Data-Table/Makefile b/databases/p5-Data-Table/Makefile index 617dd5133c3..1952a90072f 100644 --- a/databases/p5-Data-Table/Makefile +++ b/databases/p5-Data-Table/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.13 2013/05/31 12:39:52 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2013/12/12 01:30:17 wen Exp $ -DISTNAME= Data-Table-1.65 +DISTNAME= Data-Table-1.68 PKGNAME= p5-${DISTNAME} -PKGREVISION= 2 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/} diff --git a/databases/p5-Data-Table/distinfo b/databases/p5-Data-Table/distinfo index 28a6e1ecd4c..c5a5ad1ae30 100644 --- a/databases/p5-Data-Table/distinfo +++ b/databases/p5-Data-Table/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.4 2012/07/25 14:42:47 wen Exp $ +$NetBSD: distinfo,v 1.5 2013/12/12 01:30:17 wen Exp $ -SHA1 (Data-Table-1.65.tar.gz) = cb902e380e1a9366233acc2dd4168b5c37166a71 -RMD160 (Data-Table-1.65.tar.gz) = 0c4754d4a0bd9dc5e951284e67c1681dc8b1f627 -Size (Data-Table-1.65.tar.gz) = 67513 bytes +SHA1 (Data-Table-1.68.tar.gz) = 8e21ffe77daf7d7d972336a4f35b47948ed0df96 +RMD160 (Data-Table-1.68.tar.gz) = ac087e8ca4602cc0212f2802dc4bb87d160f34a2 +Size (Data-Table-1.68.tar.gz) = 66302 bytes |