function db_driver

Retrieves the name of the currently active database driver.

Return value

The name of the currently active database driver.

Related topics

File

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

Code

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