function db_driver

7.x database.inc db_driver()
8.x 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()
system_update_7016 in drupal/modules/system/system.install
Remove custom datatype *_unsigned in PostgreSQL.
update_prepare_d7_bootstrap in drupal/includes/update.inc
Performs extra steps required to bootstrap when using a Drupal 6 database.

File

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

Code

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