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; # UPDATE > delete $hash{key}; # DELETE > $value = $hash{key}; # SELECT > > Please edit t/10_hash.t to do what you need to do to connect to Postgres > or Oracle. Support for MySQL, CSV, SQLite etc for later > > The reasoning behind this is that I have a small machine that connects > to a database and does a lot of calculations. To `cache' calculated > results, it uses a hash, which has outgrown the available memory space, > so I tied that with "DB_File" to disk. The system however didn't give > me enough space to store that, and the database server is huge and fast
Hi Merijn, how does your module differ from Tie::DBI (http://search.cpan.org/dist/Tie-DBI/)? Or is it just a try to have a new start, because of the inactivity at Tie::DBI? Jens