Available database drivers

at 2011-01-16 in DatabasesExamples by friebe (0 comments)

Here's how to find out which database drivers are available (keys) - and what classes they're implemented by (values):

  Console::writeLine(DriverManager::getInstance()->drivers);
This will yield, depending on the PHP installation and configuration, something along the lines of:

  [
    mysql => lang.XPClass<rdbms.mysql.MySQLConnection>
    pgsql => lang.XPClass<rdbms.pgsql.PostgreSQLConnection>
    sqlite => lang.XPClass<rdbms.sqlite.SQLiteConnection>
  ]



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «Available».