[Dbix-class] Driver name
Emmanuel Quevillon
tuco at pasteur.fr
Thu Mar 12 16:27:01 GMT 2009
Michael Reddick wrote:
>
>
>
> Is there a rapid and easy way toknow the driver currently used from
> a DBIx::Class::Schema object?
>
>
>
> You could look at schema->storage->connect_info->[0]
>
> michael
Thanks Mickael fro your reply.
Actually schema->storage->connect_info->[1] looks more appropriate :
>From Dumper
'_connect_info' => [
$VAR1,
'dbi:Pg:dbname=bibliolist',
'user',
'pass',
{
'disable_sth_caching' => '1',
'AutoCommit' => '1',
'RaiseError' => '1'
}
],
Regards
--
-------------------------
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