On Mon, 16 Aug 2010 12:20:20 +0200, Tim Bunce tim.bu...@pobox.com
wrote:
On Wed, Aug 04, 2010 at 10:51:41PM +0200, H.Merijn Brand wrote:
My intention was/is to have a DBI replacement for DB_File, so the
*only* thing I have to change to use it is
tie my %hash, DB_File, file.db,
http://www.xs4all.nl/~hmbrand/TD.tgz
use DBI;
use Tie::DBD;
my $dbh = DBI-connect (dbi:Pg:, ...);
tie my %hash, Tie::DBD, $dbh;
tie my %hash, Tie::DBD, $dbh, foo;
$hash{key} = $value; # INSERT
$hash{key} = 3; # UPDATE
delete $hash{key};# DELETE
2010/8/4 H.Merijn Brand h.m.br...@xs4all.nl:
http://www.xs4all.nl/~hmbrand/TD.tgz
use DBI;
use Tie::DBD;
my $dbh = DBI-connect (dbi:Pg:, ...);
tie my %hash, Tie::DBD, $dbh;
tie my %hash, Tie::DBD, $dbh, foo;
$hash{key} = $value; # INSERT
$hash{key} = 3; #
On Wed, 4 Aug 2010 19:50:36 +0200, Jens Rehsack
rehs...@googlemail.com wrote:
2010/8/4 H.Merijn Brand h.m.br...@xs4all.nl:
http://www.xs4all.nl/~hmbrand/TD.tgz
use DBI;
use Tie::DBD;
my $dbh = DBI-connect (dbi:Pg:, ...);
tie my %hash, Tie::DBD, $dbh;
tie my
On Wed, 4 Aug 2010 19:50:36 +0200, Jens Rehsack
rehs...@googlemail.com wrote:
2010/8/4 H.Merijn Brand h.m.br...@xs4all.nl:
http://www.xs4all.nl/~hmbrand/TD.tgz
New version available as http://www.xs4all.nl/~hmbrand/Tie-DBD-0.01.tgz
t/10_hash.t still has to be changed
use DBI;
use