On Nov 23, 2006, at 12:32 AM, John Siracusa wrote:
> If you want all of your My::Product objects to share the same Rose::DB
> object (or maybe just share the same DBI $dbh among many Rose::DB  
> objects)
> you can do that by overriding init_db(), or by using a module that
> transparently shares DBI $dbh handles (e.g., Apache::DBI).  Here  
> are some
> examples:

You can also use a factory pattern to manage DB connections by  
making / caching / managing rose::db objects, then just passing them  
into rose::db::object objects with the db parameter.

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to