Re: Implemented idea, feedback needed/welcome

2010-08-16 Thread H.Merijn Brand
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,

Implemented idea, feedback needed/welcome

2010-08-04 Thread H.Merijn Brand
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

Re: Implemented idea, feedback needed/welcome

2010-08-04 Thread Jens Rehsack
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;       #

Re: Implemented idea, feedback needed/welcome

2010-08-04 Thread H.Merijn Brand
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

Re: Implemented idea, feedback needed/welcome

2010-08-04 Thread H.Merijn Brand
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