Name
DBI::available_drivers
Synopsis
@available_drivers = DBI->available_drivers; @available_drivers = DBI->available_drivers($quiet);
DBI::available_drivers
returns a list of the
available DBD drivers. The function does this by searching the Perl
distribution for DBD modules. Unless a true value is passed as the
argument, the function will print a warning if two DBD modules of the
same name are found in the distribution. In the current Msql-Mysql
modules distribution, the driver for mSQL is named `mSQL’
and the driver for MySQL is named `mysql’.
Example
use DBI; my @drivers = DBI->available_drivers; print "All of these drivers are available:\n" . join("\n",@drivers) . "\nBut we're only interested in mSQL and mysql. :)\n";
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.