On May 18, 2006, at 2:54 PM, John Siracusa wrote:
Sure, there are several ways. The usual way is to register different
data sources in your Rose::DB sublcass:
sweet
$o = My::Whatever->new(...);
$o->db(My::DB->new('reader'));
$o->load;
shibby
Swapping DBI $dbh handles would look like this if done "manually"
$o = My::Whatever->new(...);
$dbh = get_readonly_dbh_somehow(...);
$o->db->dbh($dbh);
$o->load();
$dbh = get_readwrite_dbh_somehow(...);
$o->db->dbh($dbh);
$o->save;
drool.....
AWESOME
thats exactly what i need, so I can handle caching/pooling of db
handles and transaction levels externally
I think that covers most of the "simple" permutations. Anything I
missed?
thanks. this looks really usable. actually, this looks just about
perfect. thank you!
| - - - - - - - - - - - - - - - - - - - -
| RoadSound.com / Indie-Rock.net
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - -
-------------------------------------------------------
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