From: Lennon Day-Reynolds Date: 2003-03-02T08:46:40+09:00 Subject: Re: Anything like Class::DBI from Perl I have a simple binding library which lets you do something like the following: --- class Foo attr_reader :bar, baz attr_writer :bar, :baz end Persist::bind(Foo, 'foo_table', :bar, :baz) f = Foo.fetch('pkey_value') f.bar = 3 f.store Foo.select('where bar > ?', 2) {|foo_obj| p foo_obj } --- It handles about 80% of the database queries I use in a moderately complex (~20kloc) business application, with the remaining bits done in basic DBI calls. I've also been experimenting with a thread-safe LRU cache for objects, so that at least multiple concurrent reads of a database-bound data object don't have to make a full round trip to the database for each instance. Right now, it's not really package as a standalone library, but I'd be happy to go back over the code, clean it up, and either post it here or on RAA for others to try out. Lennon Day-Reynolds lennon@day-reynolds.com On Sun, 2 Mar 2003 03:47:51 +0900 "Shashank Date" wrote: > > "Seth Kurtzberg" wrote in message > > I'm working on something something similar but it isn't ready yet. > > I will be interested in this work ... if you are still in need of > beta-testers please sign me in. > Thanks, > -- shanko > > > >