On May 19, 2006, at 10:16 PM, John Siracusa wrote:

It isn't. Calling new() on a Rose::DB-derived object won't connect to the
database.  It'll just create the object.

oh great.


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.

__PACKAGE__->register_db(
    domain   => 'a',
    type     => 'a',
    driver   => 'pg',
        database => 'a',
        host     => 'localhost',
        username => 'a',
        password => 'a',
);

worked like a charm.

thanks.

| - - - - - - - - - - - - - - - - - - - -
| 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

Reply via email to