Genezzo::Row::RSTab 0.64 review
Download
|
|
Genezzo::Row::RSTab.pm is a Perl module with Row Source TABle tied hash class.
SYNOPSIS
use Genezzo::Row::RSTab;
# see Tablespace.pm -- implementation and usage is tightly tied
# to genezzo engine...
# make a factory for rsfile
my $fac2 = make_fac2('Genezzo::Row::RSFile');
my %args = (
factory => $fac2,
# need tablename, bufcache, etc...
tablename => ...
tso => ...
bufcache => ...
);
my %td_hash;
$tie_val =
tie %td_hash, 'Genezzo::Row::RSTab', %args;
# pushhash style
my @rowarr = ("this is a test", "and this is too");
my $newkey = $tie_val->HPush(@rowarr);
@rowarr = ("update this entry", "and this is too");
$tied_hash{$newkey} = @rowarr;
my $getcount = $tie_val->HCount();
RSTab is a hierarchical pushhash (see Genezzo::PushHash::hph) class that stores perl arrays as rows in a table, writing them into a block (byte buffer) via Genezzo::Row::RSFile and Genezzo::Block::RDBlock.
Requirements:
Perl
Genezzo::Row::RSTab 0.64 keywords