On Thu, May 10 2012, Dave Howorth <[email protected]> wrote:

> Given a resultset or schema object, how do I find the DSN to which it
> is connected? (or equivalent information about host & database name
> etc)

$schema->storage->connect_info->{dsn};
$rs->result_source->storage->connect_info->{dsn};

HTH

    patrick

-- 
Patrick Meidl ........................ +43 1 9688226 (home)
Pazmanitengasse 4/10 ................. +43 680 2072780 (mobile)
1020 Wien ............................ [email protected]
Austria .............................. http://pmeidl.homelinux.net/
--


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to