[Dbix-class] Driver name

Emmanuel Quevillon tuco at pasteur.fr
Fri Mar 13 08:09:56 GMT 2009


Toby Corkindale wrote:
> Emmanuel Quevillon wrote:
>> Hi all,
>>
>> Is there a rapid and easy way toknow the driver currently used from
>> a DBIx::Class::Schema object?
> 
> my $schema = My::App::Schema->connect;
> print $schema->storage->dbh->{Driver}->{Name};
> 
> 
> -Toby
Thanks Toby,

That did the trick!

-- 
-------------------------
Emmanuel Quevillon
Biological Software and Databases Group
Institut Pasteur
+33 1 44 38 95 98
tuco at_ pasteur dot fr
-------------------------



More information about the DBIx-Class mailing list