Re: Implemented idea, feedback needed/welcome

2010-08-16 Thread H.Merijn Brand
On Mon, 16 Aug 2010 12:20:20 +0200, Tim Bunce 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", O_RDWR|

Re: Implemented idea, feedback needed/welcome

2010-08-16 Thread Tim Bunce
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", O_RDWR|O_CREAT, 0666; > > with > > tie my %hash, "Tie::DBD", $dbh; >

Re: Implemented idea, feedback needed/welcome

2010-08-04 Thread H.Merijn Brand
On Wed, 4 Aug 2010 19:50:36 +0200, Jens Rehsack wrote: > 2010/8/4 H.Merijn Brand : > > 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 Tie::DBD; > > > >    my $dbh = D

Re: Implemented idea, feedback needed/welcome

2010-08-04 Thread H.Merijn Brand
On Wed, 4 Aug 2010 19:50:36 +0200, Jens Rehsack wrote: > 2010/8/4 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

Re: Implemented idea, feedback needed/welcome

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

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};# DELET