I have my own custom mod_perl framework, and am a bit behind schedule
on something, so i'm looking at rosedb to quicken some DB interaction
here's my issue-
currently, i use separate db handles for reading/writing/logging/session
my workflow is usually this:
$obj = ObjectClass->new()
$obj->set_use_db_writer(); # defaults to $obj->set_us_db_reader();
sub set_use_db_writer{
my ( $self ) = @_;
$self->{'__dbh'}= MyApp::DB::get_handle('writer');
}
if that makes any sense... at instantiation i say if the obj is using
the read or write db. i never load of a read handle , switch to writer.
MyApp::DB is a wrapper class for DB connections. it encapsulates
apache requests into transactions and turns connect/disconnects into
transactions as well (kind of crazy , but it works)
in any event, i still have stuff that uses this functionality, and
am unsure if i can clear it out.
so my question is simply - is there a way for me to explicitly set
the db handle in rosedb objects midstream? can i also wrap whatever
they do in transactions that are unknown to rosedb, and then catch
the sucess/failure?
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object