function db_driver

Same name in other branches
  1. 8.9.x core/includes/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 modules/system/system.install
Remove custom datatype *_unsigned in PostgreSQL.
update_prepare_d7_bootstrap in includes/update.inc
Performs extra steps required to bootstrap when using a Drupal 6 database.

File

includes/database/database.inc, line 2740

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.