[Dbix-class] schema -> dsn?
Patrick Meidl
patrick at pantheon.at
Thu May 10 14:38:39 GMT 2012
On Thu, May 10 2012, Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk> 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 ............................ patrick at pantheon.at
Austria .............................. http://pmeidl.homelinux.net/
--
More information about the DBIx-Class
mailing list