Skip navigation
Help

db_driver

7 database.inc db_driver()

Retrieves the name of the currently active database driver.

Return value

The name of the currently active database driver.

Related topics

2 calls to db_driver()

File

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

Code

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