Re: Implemented idea, feedback needed/welcome

Jens Rehsack <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
2010/8/4 H.Merijn Brand <[email protected]>:
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.