Re: [RDBO] overloading Rose::DB->dbh

2007-02-08 Thread Michael Reece
thanks, jonathan. that is (roughly) the approach i tried after sending my last mail, package Vinq::RDBO::_mysql; use base 'Rose::DB::Object'; use strict; use warnings; use Vinq::Globals qw($dbh); use Vinq::RDB::MySQL; our $MAKING_CLASSES = 0; sub init_db { my $_db

Re: [RDBO] overloading Rose::DB->dbh

2007-02-08 Thread Jonathan Vanasco
On Feb 8, 2007, at 7:24 PM, Michael Reece wrote: > trying every which way to make Rose::DB::Object(s) always use my > custom global $dbh, > i have no idea why your package isn't working (i have a few ideas, but no time to test) i suggest trying this approach, which is essentially what i do:

[RDBO] overloading Rose::DB->dbh

2007-02-08 Thread Michael Reece
trying every which way to make Rose::DB::Object(s) always use my custom global $dbh, package Vinq::RDB::MySQL; use base 'Rose::DB'; use Vinq::Globals qw( $dbh ); __PACKAGE__->use_private_registry; __PACKAGE__->register_db(driver => 'mysql'); sub dbh { $dbh } sub driver {