diotalevi has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking at moving a hand-written OO-RDBMS wrapper to something pre-written like Class::DBI or Alzabo. I'm not commited to anything in particular but at the moment Class::DBI appears to be simple enough to pick up immediately and do a bunch of copy/paste, search/replace operations to turn my class code into Class::DBI code.

Now here's the problem. DBI documents that you can store data under $dbh->{'private_....'}. When using Class::DBI is the same thing safe? It's based on Ima::DBI which appears to be a mostly-plain DBI subclass.

Also, if I was expecting the DBI::db -> {'private_...'} data to be thrown away on each "new" instance of the handle (assume I'm using mod_perl) does that work as well? Both Ima::DBI and Class::DBI mention something about handle caching so I'm not sure how that interacts with any of the private data.