db_driver

Versions
7
db_driver()

Retrieve the name of the currently active database driver, such as "mysql" or "pgsql".

Return value

The name of the currently active database driver.

Related topics

▾ 2 functions call db_driver()

system_update_7016 in modules/system/system.install
Remove custom datatype *_unsigned in PostgreSQL.
system_update_7024 in modules/system/system.install
Add the substr_index() function to PostgreSQL.

Code

includes/database/database.inc, line 2100

<?php
function db_driver() {
  return Database::getConnection()->driver();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.