function db_driver

db_driver()

Retrieves the name of the currently active database driver.

Return value

The name of the currently active database driver.

Related topics

File

includes/database/database.inc, line 2656
Core systems for the database layer.

Code

function db_driver() {
  return Database::getConnection()->driver();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_driver/7.x