[Dbix-class] Getting a database handle

Pedro Melo melo at simplicidade.org
Wed Jan 3 05:03:31 GMT 2007


Hi,

On Jan 3, 2007, at 2:22 AM, Ivan Wills wrote:

> I am using DBIx::Class in a new Catalyst project which will include  
> some
> legacy code that uses plain DBI. Is there a way to get the database
> handle from my schema and pass it on to the legacy code? I could  
> not see
> how to do this from the docs.

$schema->storage->dbh

See perldoc DBIx::Class::Storage::DBI


Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
Jabber ID: melo at simplicidade.org
Use Jabber!





More information about the Dbix-class mailing list