On 5/19/06 9:26 PM, Jonathan Vanasco wrote: > i need to do something so that > > sub init_db { NewApp::RoseDB->new } > > isn't actually a database connect
It isn't. Calling new() on a Rose::DB-derived object won't connect to the database. It'll just create the object. > in my very awkward setup, RoseDB should never ever try to connect to > anything. > > I just need to create a dummy Postgres environment and swap in a DBH. Yeah, basically. Just give bogus information for hostname, username, password, etc. The only thing you need to provide accurately is the driver type. Then you can inject your already-connected $dbh into the object and you're off to the races. -John ------------------------------------------------------- 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